Lines Matching defs:enc
294 const void *x, const EVP_CIPHER *enc,
306 ret = PEM_ASN1_write_bio(i2d, name, b, x, enc, kstr, klen, callback, u);
313 const void *x, const EVP_CIPHER *enc,
325 if (enc != NULL) {
326 objstr = EVP_CIPHER_get0_name(enc);
327 if (objstr == NULL || EVP_CIPHER_get_iv_length(enc) == 0
328 || EVP_CIPHER_get_iv_length(enc) > (int)sizeof(iv)
333 || strlen(objstr) + 23 + 2 * EVP_CIPHER_get_iv_length(enc) + 13
355 if (enc != NULL) {
372 if (RAND_bytes(iv, EVP_CIPHER_get_iv_length(enc)) <= 0)
378 if (!EVP_BytesToKey(enc, EVP_md5(), iv, kstr, klen, 1, key, NULL))
386 PEM_dek_info(buf, objstr, EVP_CIPHER_get_iv_length(enc), (char *)iv);
391 || !EVP_EncryptInit_ex(ctx, enc, NULL, key, iv)
492 const EVP_CIPHER *enc = NULL;
544 cipher->cipher = enc = EVP_get_cipherbyname(dekinfostart);
548 if (enc == NULL) {
552 ivlen = EVP_CIPHER_get_iv_length(enc);
561 if (!load_iv(&header, cipher->iv, EVP_CIPHER_get_iv_length(enc)))