Lines Matching refs:ctx_init
105 EVP_MD_CTX *ctx = NULL, *ctx_init = NULL; in SSKDF_hash_kdm() local
118 ctx_init = EVP_MD_CTX_create(); in SSKDF_hash_kdm()
119 if (ctx == NULL || ctx_init == NULL) in SSKDF_hash_kdm()
122 if (!EVP_DigestInit(ctx_init, kdf_md)) in SSKDF_hash_kdm()
131 if (!(EVP_MD_CTX_copy_ex(ctx, ctx_init) in SSKDF_hash_kdm()
154 EVP_MD_CTX_destroy(ctx_init); in SSKDF_hash_kdm()
212 static int SSKDF_mac_kdm(EVP_MAC_CTX *ctx_init, in SSKDF_mac_kdm() argument
233 if (!kmac_init(ctx_init, kmac_custom, kmac_custom_len, kmac_out_len, in SSKDF_mac_kdm()
239 if (!EVP_MAC_init(ctx_init, salt, salt_len, NULL)) in SSKDF_mac_kdm()
242 out_len = EVP_MAC_CTX_get_mac_size(ctx_init); /* output size */ in SSKDF_mac_kdm()
253 ctx = EVP_MAC_CTX_dup(ctx_init); in SSKDF_mac_kdm()