Home
last modified time | relevance | path

Searched refs:ctx_init (Results 1 – 5 of 5) sorted by relevance

/freebsd/crypto/openssl/providers/implementations/kdfs/
H A Dkbkdf.c60 EVP_MAC_CTX *ctx_init; member
140 EVP_MAC_CTX_free(ctx->ctx_init); in kbkdf_reset()
151 static int derive(EVP_MAC_CTX *ctx_init, kbkdf_mode mode, unsigned char *iv, in derive() argument
181 ctx = EVP_MAC_CTX_dup(ctx_init); in derive()
226 if (ctx->ctx_init == NULL) { in kbkdf_derive()
243 h = EVP_MAC_CTX_get_mac_size(ctx->ctx_init); in kbkdf_derive()
258 ret = derive(ctx->ctx_init, ctx->mode, ctx->iv, ctx->iv_len, ctx->label, in kbkdf_derive()
288 if (!ossl_prov_macctx_load_from_params(&ctx->ctx_init, params, NULL, in kbkdf_set_ctx_params()
291 else if (ctx->ctx_init != NULL in kbkdf_set_ctx_params()
292 && !EVP_MAC_is_a(EVP_MAC_CTX_get0_mac(ctx->ctx_init), in kbkdf_set_ctx_params()
[all …]
H A Dsskdf.c105 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()
[all …]
H A Dtls1_prf.c287 static int tls1_prf_P_hash(EVP_MAC_CTX *ctx_init, in tls1_prf_P_hash() argument
298 if (!EVP_MAC_init(ctx_init, sec, sec_len, NULL)) in tls1_prf_P_hash()
300 chunk = EVP_MAC_CTX_get_mac_size(ctx_init); in tls1_prf_P_hash()
304 ctx_Ai = EVP_MAC_CTX_dup(ctx_init); in tls1_prf_P_hash()
318 ctx = EVP_MAC_CTX_dup(ctx_init); in tls1_prf_P_hash()
H A Dx942kdf.c274 EVP_MD_CTX *ctx = NULL, *ctx_init = NULL; in x942kdf_hash_kdm() local
290 ctx_init = EVP_MD_CTX_create(); in x942kdf_hash_kdm()
291 if (ctx == NULL || ctx_init == NULL) in x942kdf_hash_kdm()
294 if (!EVP_DigestInit(ctx_init, kdf_md)) in x942kdf_hash_kdm()
304 if (!EVP_MD_CTX_copy_ex(ctx, ctx_init) in x942kdf_hash_kdm()
325 EVP_MD_CTX_free(ctx_init); in x942kdf_hash_kdm()
/freebsd/sys/arm64/iommu/
H A Diommu_if.m129 METHOD int ctx_init {