Lines Matching refs:enc
40 int enc, keep_key = 0; in ossl_cms_EncryptedContent_init_bio() local
44 enc = ec->cipher ? 1 : 0; in ossl_cms_EncryptedContent_init_bio()
55 if (enc) { in ossl_cms_EncryptedContent_init_bio()
78 if (EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, enc) <= 0) { in ossl_cms_EncryptedContent_init_bio()
83 if (enc) { in ossl_cms_EncryptedContent_init_bio()
122 if (!enc || !ec->key) { in ossl_cms_EncryptedContent_init_bio()
134 if (enc) in ossl_cms_EncryptedContent_init_bio()
148 if (enc || ec->debug) { in ossl_cms_EncryptedContent_init_bio()
162 if (EVP_CipherInit_ex(ctx, NULL, NULL, ec->key, piv, enc) <= 0) { in ossl_cms_EncryptedContent_init_bio()
166 if (enc) { in ossl_cms_EncryptedContent_init_bio()
250 CMS_EncryptedData *enc = cms->d.encryptedData; in ossl_cms_EncryptedData_init_bio() local
251 if (enc->encryptedContentInfo->cipher && enc->unprotectedAttrs) in ossl_cms_EncryptedData_init_bio()
252 enc->version = 2; in ossl_cms_EncryptedData_init_bio()
253 return ossl_cms_EncryptedContent_init_bio(enc->encryptedContentInfo, in ossl_cms_EncryptedData_init_bio()