Home
last modified time | relevance | path

Searched refs:crypto_op (Results 1 – 1 of 1) sorted by relevance

/optee_os-3.20.0/ta/trusted_keys/
A Dentry.c95 static TEE_Result huk_ae_encrypt(TEE_OperationHandle crypto_op, uint8_t *in, in huk_ae_encrypt() argument
108 res = TEE_AEInit(crypto_op, hdr->iv, IV_SIZE, TAG_SIZE * 8, 0, 0); in huk_ae_encrypt()
112 res = TEE_AEEncryptFinal(crypto_op, in, in_sz, hdr->enc_key, in huk_ae_encrypt()
134 res = TEE_AEInit(crypto_op, hdr->iv, IV_SIZE, TAG_SIZE * 8, 0, 0); in huk_ae_decrypt()
139 res = TEE_AEDecryptFinal(crypto_op, hdr->enc_key, enc_key_len, out, in huk_ae_decrypt()
151 TEE_OperationHandle crypto_op = TEE_HANDLE_NULL; in huk_crypt() local
156 res = TEE_AllocateOperation(&crypto_op, TEE_ALG_AES_GCM, mode, in huk_crypt()
180 res = TEE_SetOperationKey(crypto_op, hkey); in huk_crypt()
185 res = huk_ae_encrypt(crypto_op, in, in_sz, out, out_sz); in huk_crypt()
189 res = huk_ae_decrypt(crypto_op, in, in_sz, out, out_sz); in huk_crypt()
[all …]

Completed in 3 milliseconds