Home
last modified time | relevance | path

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

/system/tpm/attestation/common/
Dcrypto_utility_impl.cc334 EVP_CIPHER_CTX encryption_context; in AesEncrypt() local
335 EVP_CIPHER_CTX_init(&encryption_context); in AesEncrypt()
336 if (!EVP_EncryptInit_ex(&encryption_context, cipher, nullptr, key_buffer, in AesEncrypt()
341 if (!EVP_EncryptUpdate(&encryption_context, output_buffer, &output_size, in AesEncrypt()
344 EVP_CIPHER_CTX_cleanup(&encryption_context); in AesEncrypt()
350 if (!EVP_EncryptFinal_ex(&encryption_context, output_buffer, &output_size)) { in AesEncrypt()
352 EVP_CIPHER_CTX_cleanup(&encryption_context); in AesEncrypt()
357 EVP_CIPHER_CTX_cleanup(&encryption_context); in AesEncrypt()