Searched refs:macctx (Results 1 – 8 of 8) sorted by relevance
/openssl/providers/implementations/macs/ |
H A D | hmac_prov.c | 80 if ((macctx = OPENSSL_zalloc(sizeof(*macctx))) == NULL in hmac_new() 82 OPENSSL_free(macctx); in hmac_new() 87 return macctx; in hmac_new() 94 if (macctx != NULL) { in hmac_free() 97 OPENSSL_secure_clear_free(macctx->key, macctx->keylen); in hmac_free() 98 OPENSSL_free(macctx); in hmac_free() 156 if (macctx->key != NULL) in hmac_setkey() 157 OPENSSL_secure_clear_free(macctx->key, macctx->keylen); in hmac_setkey() 160 if (macctx->key == NULL) in hmac_setkey() 163 macctx->keylen = keylen; in hmac_setkey() [all …]
|
H A D | cmac_prov.c | 53 struct cmac_data_st *macctx; in cmac_new() local 58 if ((macctx = OPENSSL_zalloc(sizeof(*macctx))) == NULL in cmac_new() 60 OPENSSL_free(macctx); in cmac_new() 61 macctx = NULL; in cmac_new() 63 macctx->provctx = provctx; in cmac_new() 66 return macctx; in cmac_new() 71 struct cmac_data_st *macctx = vmacctx; in cmac_free() local 73 if (macctx != NULL) { in cmac_free() 74 CMAC_CTX_free(macctx->ctx); in cmac_free() 76 OPENSSL_free(macctx); 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 …]
|
/openssl/providers/implementations/signature/ |
H A D | mac_legacy_sig.c | 47 EVP_MAC_CTX *macctx; member 72 pmacctx->macctx = EVP_MAC_CTX_new(mac); in mac_newctx() 73 if (pmacctx->macctx == NULL) in mac_newctx() 127 if (!ossl_prov_set_macctx(pmacctx->macctx, NULL, in mac_digest_sign_init() 147 if (pmacctx == NULL || pmacctx->macctx == NULL) in mac_digest_sign_update() 169 EVP_MAC_CTX_free(ctx->macctx); in mac_freectx() 189 dstctx->macctx = NULL; in mac_dupctx() 198 if (srcctx->macctx != NULL) { in mac_dupctx() 199 dstctx->macctx = EVP_MAC_CTX_dup(srcctx->macctx); in mac_dupctx() 200 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 | 56 EVP_MAC_CTX *macctx; /* H(x) = HMAC_hash OR H(x) = KMAC */ member 304 EVP_MAC_CTX_free(ctx->macctx); in sskdf_reset() 330 if (src->macctx != NULL) { in sskdf_dup() 331 dest->macctx = EVP_MAC_CTX_dup(src->macctx); in sskdf_dup() 332 if (dest->macctx == NULL) in sskdf_dup() 389 if (ctx->macctx != NULL) { in sskdf_derive() 395 EVP_MAC *mac = EVP_MAC_CTX_get0_mac(ctx->macctx); in sskdf_derive() 428 ret = SSKDF_mac_kdm(ctx->macctx, in sskdf_derive() 459 if (ctx->macctx != NULL) { in x963kdf_derive() 488 if (!ossl_prov_macctx_load_from_params(&ctx->macctx, params, in sskdf_set_ctx_params()
|
/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 39 milliseconds