Home
last modified time | relevance | path

Searched refs:evp_ctx (Results 1 – 3 of 3) sorted by relevance

/freebsd-13-stable/crypto/openssl/crypto/evp/
HDm_sha3.c33 static int init(EVP_MD_CTX *evp_ctx, unsigned char pad) in init() argument
35 KECCAK1600_CTX *ctx = evp_ctx->md_data; in init()
36 size_t bsz = evp_ctx->digest->block_size; in init()
43 ctx->md_size = evp_ctx->digest->md_size; in init()
52 static int sha3_init(EVP_MD_CTX *evp_ctx) in sha3_init() argument
54 return init(evp_ctx, '\x06'); in sha3_init()
57 static int shake_init(EVP_MD_CTX *evp_ctx) in shake_init() argument
59 return init(evp_ctx, '\x1f'); in shake_init()
62 static int sha3_update(EVP_MD_CTX *evp_ctx, const void *_inp, size_t len) in sha3_update() argument
64 KECCAK1600_CTX *ctx = evp_ctx->md_data; in sha3_update()
[all …]
/freebsd-13-stable/crypto/openssl/crypto/pkcs7/
HDpk7_doit.c367 EVP_CIPHER_CTX *evp_ctx = NULL; in PKCS7_dataDecode() local
517 evp_ctx = NULL; in PKCS7_dataDecode()
518 BIO_get_cipher_ctx(etmp, &evp_ctx); in PKCS7_dataDecode()
519 if (EVP_CipherInit_ex(evp_ctx, evp_cipher, NULL, NULL, NULL, 0) <= 0) in PKCS7_dataDecode()
521 if (EVP_CIPHER_asn1_to_param(evp_ctx, enc_alg->parameter) < 0) in PKCS7_dataDecode()
524 tkeylen = EVP_CIPHER_CTX_key_length(evp_ctx); in PKCS7_dataDecode()
528 if (EVP_CIPHER_CTX_rand_key(evp_ctx, tkey) <= 0) in PKCS7_dataDecode()
536 if (eklen != EVP_CIPHER_CTX_key_length(evp_ctx)) { in PKCS7_dataDecode()
542 if (!EVP_CIPHER_CTX_set_key_length(evp_ctx, eklen)) { in PKCS7_dataDecode()
552 if (EVP_CipherInit_ex(evp_ctx, NULL, NULL, ek, NULL, 0) <= 0) in PKCS7_dataDecode()
/freebsd-13-stable/contrib/unbound/util/
HDnet_help.c118 unsigned char* iv, EVP_CIPHER_CTX *evp_ctx,