Searched refs:encrypt_key (Results 1 – 2 of 2) sorted by relevance
| /trusted-firmware-m-latest/bl1/bl1_2/scripts/ |
| D | create_bl2_img.py | 50 encrypt_key = encrypt_key_file.read() 55 c = cmac.CMAC(algorithms.AES(encrypt_key)) 69 c = cmac.CMAC(algorithms.AES(encrypt_key)) 76 encrypt_key = encrypt_key_file.read() 92 output_key = hkdf.derive(encrypt_key) 109 def encrypt_binary_blob(blob, counter_val, encrypt_key): argument 110 cipher = Cipher(algorithms.AES(encrypt_key), modes.CTR(counter_val)) 145 … encrypt_key = derive_encryption_key_hkdf(int(args.img_security_counter, 16).to_bytes(4, 'little')) variable 147 … encrypt_key = derive_encryption_key_cmac(int(args.img_security_counter, 16).to_bytes(4, 'little')) 148 ciphertext = encrypt_binary_blob(plaintext, counter_val, encrypt_key)
|
| /trusted-firmware-m-latest/platform/ext/target/arm/rse/common/bl2/ |
| D | create_xip_tables.py | 48 with open(args.encrypt_key, "rb") as in_file: 49 encrypt_key = in_file.read() variable 51 encrypt_key = bytearray([0xfc, 0x57, 0x01, 0xdc, 0x61, 0x35, 0xe1, 0x32, 70 cipher = Cipher(algorithms.AES(encrypt_key), modes.CTR(counter_val))
|