Lines Matching refs:keylen
132 ec->keylen = tkeylen; in ossl_cms_EncryptedContent_init_bio()
141 if (ec->keylen != tkeylen) { in ossl_cms_EncryptedContent_init_bio()
143 if (EVP_CIPHER_CTX_set_key_length(ctx, ec->keylen) <= 0) { in ossl_cms_EncryptedContent_init_bio()
153 OPENSSL_clear_free(ec->key, ec->keylen); in ossl_cms_EncryptedContent_init_bio()
155 ec->keylen = tkeylen; in ossl_cms_EncryptedContent_init_bio()
195 OPENSSL_clear_free(ec->key, ec->keylen); in ossl_cms_EncryptedContent_init_bio()
207 const unsigned char *key, size_t keylen, in ossl_cms_EncryptedContent_init() argument
212 if ((ec->key = OPENSSL_malloc(keylen)) == NULL) in ossl_cms_EncryptedContent_init()
214 memcpy(ec->key, key, keylen); in ossl_cms_EncryptedContent_init()
216 ec->keylen = keylen; in ossl_cms_EncryptedContent_init()
223 const unsigned char *key, size_t keylen) in CMS_EncryptedData_set1_key() argument
227 if (!key || !keylen) { in CMS_EncryptedData_set1_key()
244 return ossl_cms_EncryptedContent_init(ec, ciph, key, keylen, in CMS_EncryptedData_set1_key()