Lines Matching defs:cipher
74 EVP_CIPHER *cipher = NULL;
91 /* Fetch the cipher implementation */
92 if ((cipher = EVP_CIPHER_fetch(libctx, "AES-256-GCM", propq)) == NULL)
100 * Initialise an encrypt operation with the cipher/mode, key, IV and
106 if (!EVP_EncryptInit_ex2(ctx, cipher, gcm_key, gcm_iv, params))
141 EVP_CIPHER_free(cipher);
151 EVP_CIPHER *cipher = NULL;
166 /* Fetch the cipher implementation */
167 if ((cipher = EVP_CIPHER_fetch(libctx, "AES-256-GCM", propq)) == NULL)
175 * Initialise an encrypt operation with the cipher/mode, key, IV and
178 if (!EVP_DecryptInit_ex2(ctx, cipher, gcm_key, gcm_iv, params))
213 EVP_CIPHER_free(cipher);