Searched refs:encryption_context (Results 1 – 1 of 1) sorted by relevance
333 EVP_CIPHER_CTX encryption_context; in AesEncrypt() local334 EVP_CIPHER_CTX_init(&encryption_context); in AesEncrypt()335 if (!EVP_EncryptInit_ex(&encryption_context, cipher, nullptr, key_buffer, in AesEncrypt()340 if (!EVP_EncryptUpdate(&encryption_context, output_buffer, &output_size, in AesEncrypt()343 EVP_CIPHER_CTX_cleanup(&encryption_context); in AesEncrypt()349 if (!EVP_EncryptFinal_ex(&encryption_context, output_buffer, &output_size)) { in AesEncrypt()351 EVP_CIPHER_CTX_cleanup(&encryption_context); in AesEncrypt()356 EVP_CIPHER_CTX_cleanup(&encryption_context); in AesEncrypt()