Searched refs:macctx (Results 1 – 9 of 9) sorted by relevance
/openssl/providers/implementations/macs/ |
H A D | hmac_prov.c | 83 if ((macctx = OPENSSL_zalloc(sizeof(*macctx))) == NULL in hmac_new() 85 OPENSSL_free(macctx); in hmac_new() 91 return macctx; in hmac_new() 98 if (macctx != NULL) { in hmac_free() 101 OPENSSL_secure_clear_free(macctx->key, macctx->keylen); in hmac_free() 102 OPENSSL_free(macctx); in hmac_free() 165 if (!macctx->internal) { in hmac_setkey() 181 OPENSSL_secure_clear_free(macctx->key, macctx->keylen); in hmac_setkey() 260 memcpy(out, macctx->tls_mac_out, macctx->tls_mac_out_size); in hmac_final() 382 if (macctx != NULL) in hmac_internal_new() [all …]
|
H A D | cmac_prov.c | 58 struct cmac_data_st *macctx; in cmac_new() local 63 if ((macctx = OPENSSL_zalloc(sizeof(*macctx))) == NULL in cmac_new() 65 OPENSSL_free(macctx); in cmac_new() 66 macctx = NULL; in cmac_new() 68 macctx->provctx = provctx; in cmac_new() 69 OSSL_FIPS_IND_INIT(macctx) in cmac_new() 72 return macctx; in cmac_new() 77 struct cmac_data_st *macctx = vmacctx; in cmac_free() local 79 if (macctx != NULL) { in cmac_free() 80 CMAC_CTX_free(macctx->ctx); in cmac_free() [all …]
|
H A D | blake2_mac_impl.c | 44 struct blake2_mac_data_st *macctx; in blake2_mac_new() local 49 macctx = OPENSSL_zalloc(sizeof(*macctx)); in blake2_mac_new() 50 if (macctx != NULL) { in blake2_mac_new() 54 return macctx; in blake2_mac_new() 77 if (macctx != NULL) { in blake2_mac_free() 78 OPENSSL_cleanse(macctx->key, sizeof(macctx->key)); in blake2_mac_free() 79 OPENSSL_free(macctx); in blake2_mac_free() 87 return macctx->params.digest_length; in blake2_mac_size() 97 memcpy(macctx->key, key, keylen); in blake2_setkey() 120 return BLAKE2_INIT_KEY(&macctx->ctx, &macctx->params, macctx->key); in blake2_mac_init() [all …]
|
H A D | gmac_prov.c | 51 if (macctx != NULL) { in gmac_free() 52 EVP_CIPHER_CTX_free(macctx->ctx); in gmac_free() 54 OPENSSL_free(macctx); in gmac_free() 60 struct gmac_data_st *macctx; in gmac_new() local 65 if ((macctx = OPENSSL_zalloc(sizeof(*macctx))) == NULL in gmac_new() 67 gmac_free(macctx); in gmac_new() 70 macctx->provctx = provctx; in gmac_new() 72 return macctx; in gmac_new() 103 EVP_CIPHER_CTX *ctx = macctx->ctx; in gmac_setkey() 130 EVP_CIPHER_CTX *ctx = macctx->ctx; in gmac_update() [all …]
|
H A D | kmac_prov.c | 687 struct kmac_data_st *macctx = kmac##size##_new(provctx); \ 689 if (macctx != NULL) \ 690 macctx->internal = 1; \ 691 return macctx; \
|
/openssl/providers/implementations/signature/ |
H A D | mac_legacy_sig.c | 47 EVP_MAC_CTX *macctx; member 70 pmacctx->macctx = EVP_MAC_CTX_new(mac); in mac_newctx() 71 if (pmacctx->macctx == NULL) in mac_newctx() 125 if (!ossl_prov_set_macctx(pmacctx->macctx, NULL, in mac_digest_sign_init() 145 if (pmacctx == NULL || pmacctx->macctx == NULL) in mac_digest_sign_update() 167 EVP_MAC_CTX_free(ctx->macctx); in mac_freectx() 187 dstctx->macctx = NULL; in mac_dupctx() 196 if (srcctx->macctx != NULL) { in mac_dupctx() 197 dstctx->macctx = EVP_MAC_CTX_dup(srcctx->macctx); in mac_dupctx() 198 if (dstctx->macctx == NULL) in mac_dupctx() [all …]
|
/openssl/providers/common/ |
H A D | provider_util.c | 224 int ossl_prov_set_macctx(EVP_MAC_CTX *macctx, in ossl_prov_set_macctx() argument 286 return EVP_MAC_CTX_set_params(macctx, mac_params); in ossl_prov_set_macctx() 290 int ossl_prov_macctx_load_from_params(EVP_MAC_CTX **macctx, in ossl_prov_macctx_load_from_params() argument 317 EVP_MAC_CTX_free(*macctx); in ossl_prov_macctx_load_from_params() 318 *macctx = mac == NULL ? NULL : EVP_MAC_CTX_new(mac); in ossl_prov_macctx_load_from_params() 321 if (*macctx == NULL) in ossl_prov_macctx_load_from_params() 329 if (*macctx == NULL) in ossl_prov_macctx_load_from_params() 332 if (ossl_prov_set_macctx(*macctx, params, ciphername, mdname, NULL, in ossl_prov_macctx_load_from_params() 336 EVP_MAC_CTX_free(*macctx); in ossl_prov_macctx_load_from_params() 337 *macctx = NULL; in ossl_prov_macctx_load_from_params()
|
/openssl/providers/implementations/kdfs/ |
H A D | sskdf.c | 328 EVP_MAC_CTX_free(ctx->macctx); in sskdf_reset() 354 if (src->macctx != NULL) { in sskdf_dup() 355 dest->macctx = EVP_MAC_CTX_dup(src->macctx); in sskdf_dup() 356 if (dest->macctx == NULL) in sskdf_dup() 428 if (ctx->macctx != NULL) { in sskdf_derive() 434 EVP_MAC *mac = EVP_MAC_CTX_get0_mac(ctx->macctx); in sskdf_derive() 464 ret = SSKDF_mac_kdm(ctx->macctx, in sskdf_derive() 536 if (ctx->macctx != NULL) { in x963kdf_derive() 566 if (ctx->macctx != NULL) { in sskdf_common_set_ctx_params() 567 if (EVP_MAC_is_a(EVP_MAC_CTX_get0_mac(ctx->macctx), in sskdf_common_set_ctx_params() [all …]
|
/openssl/providers/common/include/prov/ |
H A D | provider_util.h | 95 int ossl_prov_set_macctx(EVP_MAC_CTX *macctx, 121 int ossl_prov_macctx_load_from_params(EVP_MAC_CTX **macctx,
|
Completed in 19 milliseconds