Lines Matching defs:cipher
60 EVP_CIPHER *cipher = NULL;
74 /* Fetch the cipher implementation */
75 if ((cipher = EVP_CIPHER_fetch(libctx, "AES-256-WRAP", propq)) == NULL)
79 * Initialise an encrypt operation with the cipher/mode, key and IV.
82 if (!EVP_EncryptInit_ex2(ctx, cipher, wrap_key, wrap_iv, /* params */ NULL))
108 EVP_CIPHER_free(cipher);
118 EVP_CIPHER *cipher = NULL;
131 /* Fetch the cipher implementation */
132 if ((cipher = EVP_CIPHER_fetch(libctx, "aes-256-wrap", propq)) == NULL)
136 * Initialise an encrypt operation with the cipher/mode, key and IV.
139 if (!EVP_DecryptInit_ex2(ctx, cipher, wrap_key, wrap_iv, /* params */ NULL))
165 EVP_CIPHER_free(cipher);