Searched refs:ctx_init (Results 1 – 4 of 4) sorted by relevance
/openssl/providers/implementations/kdfs/ |
H A D | kbkdf.c | 61 EVP_MAC_CTX *ctx_init; member 146 EVP_MAC_CTX_free(ctx->ctx_init); in kbkdf_reset() 163 dest->ctx_init = EVP_MAC_CTX_dup(src->ctx_init); in kbkdf_dup() 164 if (dest->ctx_init == NULL in kbkdf_dup() 237 ctx = EVP_MAC_CTX_dup(ctx_init); in derive() 308 if (ctx->ctx_init == NULL) { in kbkdf_derive() 326 ret = kmac_derive(ctx->ctx_init, key, keylen, in kbkdf_derive() 331 h = EVP_MAC_CTX_get_mac_size(ctx->ctx_init); in kbkdf_derive() 382 if (ctx->ctx_init != NULL) { in kbkdf_set_ctx_params() 384 if (EVP_MAC_is_a(EVP_MAC_CTX_get0_mac(ctx->ctx_init), in kbkdf_set_ctx_params() [all …]
|
H A D | sskdf.c | 128 EVP_MD_CTX *ctx = NULL, *ctx_init = NULL; in SSKDF_hash_kdm() local 141 ctx_init = EVP_MD_CTX_create(); in SSKDF_hash_kdm() 142 if (ctx == NULL || ctx_init == NULL) in SSKDF_hash_kdm() 145 if (!EVP_DigestInit(ctx_init, kdf_md)) in SSKDF_hash_kdm() 154 if (!(EVP_MD_CTX_copy_ex(ctx, ctx_init) in SSKDF_hash_kdm() 177 EVP_MD_CTX_destroy(ctx_init); in SSKDF_hash_kdm() 235 static int SSKDF_mac_kdm(EVP_MAC_CTX *ctx_init, in SSKDF_mac_kdm() argument 256 if (!kmac_init(ctx_init, kmac_custom, kmac_custom_len, kmac_out_len, in SSKDF_mac_kdm() 262 if (!EVP_MAC_init(ctx_init, salt, salt_len, NULL)) in SSKDF_mac_kdm() 265 out_len = EVP_MAC_CTX_get_mac_size(ctx_init); /* output size */ in SSKDF_mac_kdm() [all …]
|
H A D | tls1_prf.c | 463 static int tls1_prf_P_hash(EVP_MAC_CTX *ctx_init, in tls1_prf_P_hash() argument 474 if (!EVP_MAC_init(ctx_init, sec, sec_len, NULL)) in tls1_prf_P_hash() 476 chunk = EVP_MAC_CTX_get_mac_size(ctx_init); in tls1_prf_P_hash() 480 ctx_Ai = EVP_MAC_CTX_dup(ctx_init); in tls1_prf_P_hash() 494 ctx = EVP_MAC_CTX_dup(ctx_init); in tls1_prf_P_hash()
|
H A D | x942kdf.c | 278 EVP_MD_CTX *ctx = NULL, *ctx_init = NULL; in x942kdf_hash_kdm() local 294 ctx_init = EVP_MD_CTX_create(); in x942kdf_hash_kdm() 295 if (ctx == NULL || ctx_init == NULL) in x942kdf_hash_kdm() 298 if (!EVP_DigestInit(ctx_init, kdf_md)) in x942kdf_hash_kdm() 308 if (!EVP_MD_CTX_copy_ex(ctx, ctx_init) in x942kdf_hash_kdm() 329 EVP_MD_CTX_free(ctx_init); in x942kdf_hash_kdm()
|
Completed in 13 milliseconds