Lines Matching refs:ctx_init
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()
276 ctx = EVP_MAC_CTX_dup(ctx_init); in SSKDF_mac_kdm()