Searched refs:kekcipher (Results 1 – 8 of 8) sorted by relevance
/third_party/openssl/crypto/cms/ |
D | cms_dh.c | 89 EVP_CIPHER *kekcipher = NULL; in dh_cms_set_shared_info() local 124 kekcipher = EVP_CIPHER_fetch(pctx->libctx, name, pctx->propquery); in dh_cms_set_shared_info() 125 if (kekcipher == NULL in dh_cms_set_shared_info() 126 || EVP_CIPHER_get_mode(kekcipher) != EVP_CIPH_WRAP_MODE) in dh_cms_set_shared_info() 128 if (!EVP_EncryptInit_ex(kekctx, kekcipher, NULL, NULL, NULL)) in dh_cms_set_shared_info() 138 OBJ_nid2obj(EVP_CIPHER_get_type(kekcipher))) in dh_cms_set_shared_info() 156 EVP_CIPHER_free(kekcipher); in dh_cms_set_shared_info()
|
D | cms_ec.c | 166 EVP_CIPHER *kekcipher = NULL; in ecdh_cms_set_shared_info() local 190 kekcipher = EVP_CIPHER_fetch(pctx->libctx, name, pctx->propquery); in ecdh_cms_set_shared_info() 191 if (kekcipher == NULL || EVP_CIPHER_get_mode(kekcipher) != EVP_CIPH_WRAP_MODE) in ecdh_cms_set_shared_info() 193 if (!EVP_EncryptInit_ex(kekctx, kekcipher, NULL, NULL, NULL)) in ecdh_cms_set_shared_info() 213 EVP_CIPHER_free(kekcipher); in ecdh_cms_set_shared_info()
|
D | cms_kari.c | 418 const EVP_CIPHER *kekcipher; in cms_wrap_init() local 425 kekcipher = EVP_CIPHER_CTX_get0_cipher(ctx); in cms_wrap_init() 426 if (kekcipher != NULL) { in cms_wrap_init() 436 0, &kekcipher); in cms_wrap_init() 440 if (kekcipher != NULL) { in cms_wrap_init() 441 if (EVP_CIPHER_get_mode(kekcipher) != EVP_CIPH_WRAP_MODE) in cms_wrap_init() 443 kekcipher_name = EVP_CIPHER_get0_name(kekcipher); in cms_wrap_init()
|
D | cms_pwri.c | 299 EVP_CIPHER *kekcipher; in ossl_cms_RecipientInfo_pwri_crypt() local 328 kekcipher = EVP_CIPHER_fetch(ossl_cms_ctx_get0_libctx(cms_ctx), name, in ossl_cms_RecipientInfo_pwri_crypt() 331 if (kekcipher == NULL) { in ossl_cms_RecipientInfo_pwri_crypt() 342 if (!EVP_CipherInit_ex(kekctx, kekcipher, NULL, NULL, NULL, en_de)) in ossl_cms_RecipientInfo_pwri_crypt() 400 EVP_CIPHER_free(kekcipher); in ossl_cms_RecipientInfo_pwri_crypt()
|
/third_party/node/deps/openssl/openssl/crypto/cms/ |
D | cms_dh.c | 89 EVP_CIPHER *kekcipher = NULL; in dh_cms_set_shared_info() local 124 kekcipher = EVP_CIPHER_fetch(pctx->libctx, name, pctx->propquery); in dh_cms_set_shared_info() 125 if (kekcipher == NULL in dh_cms_set_shared_info() 126 || EVP_CIPHER_get_mode(kekcipher) != EVP_CIPH_WRAP_MODE) in dh_cms_set_shared_info() 128 if (!EVP_EncryptInit_ex(kekctx, kekcipher, NULL, NULL, NULL)) in dh_cms_set_shared_info() 138 OBJ_nid2obj(EVP_CIPHER_get_type(kekcipher))) in dh_cms_set_shared_info() 156 EVP_CIPHER_free(kekcipher); in dh_cms_set_shared_info()
|
D | cms_ec.c | 166 EVP_CIPHER *kekcipher = NULL; in ecdh_cms_set_shared_info() local 190 kekcipher = EVP_CIPHER_fetch(pctx->libctx, name, pctx->propquery); in ecdh_cms_set_shared_info() 191 if (kekcipher == NULL || EVP_CIPHER_get_mode(kekcipher) != EVP_CIPH_WRAP_MODE) in ecdh_cms_set_shared_info() 193 if (!EVP_EncryptInit_ex(kekctx, kekcipher, NULL, NULL, NULL)) in ecdh_cms_set_shared_info() 213 EVP_CIPHER_free(kekcipher); in ecdh_cms_set_shared_info()
|
D | cms_kari.c | 418 const EVP_CIPHER *kekcipher; in cms_wrap_init() local 425 kekcipher = EVP_CIPHER_CTX_get0_cipher(ctx); in cms_wrap_init() 426 if (kekcipher != NULL) { in cms_wrap_init() 436 0, &kekcipher); in cms_wrap_init() 440 if (kekcipher != NULL) { in cms_wrap_init() 441 if (EVP_CIPHER_get_mode(kekcipher) != EVP_CIPH_WRAP_MODE) in cms_wrap_init() 443 kekcipher_name = EVP_CIPHER_get0_name(kekcipher); in cms_wrap_init()
|
D | cms_pwri.c | 299 EVP_CIPHER *kekcipher; in ossl_cms_RecipientInfo_pwri_crypt() local 328 kekcipher = EVP_CIPHER_fetch(ossl_cms_ctx_get0_libctx(cms_ctx), name, in ossl_cms_RecipientInfo_pwri_crypt() 331 if (kekcipher == NULL) { in ossl_cms_RecipientInfo_pwri_crypt() 342 if (!EVP_CipherInit_ex(kekctx, kekcipher, NULL, NULL, NULL, en_de)) in ossl_cms_RecipientInfo_pwri_crypt() 400 EVP_CIPHER_free(kekcipher); in ossl_cms_RecipientInfo_pwri_crypt()
|