| /src/crypto/external/apache2/openssl/dist/providers/implementations/macs/ |
| hmac_prov.c | 78 struct hmac_data_st *macctx; local 83 if ((macctx = OPENSSL_zalloc(sizeof(*macctx))) == NULL 84 || (macctx->ctx = HMAC_CTX_new()) == NULL) { 85 OPENSSL_free(macctx); 88 macctx->provctx = provctx; 89 OSSL_FIPS_IND_INIT(macctx) 91 return macctx; 96 struct hmac_data_st *macctx = vmacctx; local 98 if (macctx != NULL) 202 struct hmac_data_st *macctx = vmacctx; local 217 struct hmac_data_st *macctx = vmacctx; local 252 struct hmac_data_st *macctx = vmacctx; local 284 struct hmac_data_st *macctx = vmacctx; local 330 struct hmac_data_st *macctx = vmacctx; local 382 struct hmac_data_st *macctx = hmac_new(provctx); local [all...] |
| cmac_prov.c | 58 struct cmac_data_st *macctx; local 63 if ((macctx = OPENSSL_zalloc(sizeof(*macctx))) == NULL 64 || (macctx->ctx = CMAC_CTX_new()) == NULL) { 65 OPENSSL_free(macctx); 66 macctx = NULL; 68 macctx->provctx = provctx; 69 OSSL_FIPS_IND_INIT(macctx) 72 return macctx; 77 struct cmac_data_st *macctx = vmacctx local 108 struct cmac_data_st *macctx = vmacctx; local 173 struct cmac_data_st *macctx = vmacctx; local 186 struct cmac_data_st *macctx = vmacctx; local 194 struct cmac_data_st *macctx = vmacctx; local 249 struct cmac_data_st *macctx = vmacctx; local [all...] |
| blake2_mac_impl.c | 44 struct blake2_mac_data_st *macctx; local 49 macctx = OPENSSL_zalloc(sizeof(*macctx)); 50 if (macctx != NULL) { 51 BLAKE2_PARAM_INIT(&macctx->params); 54 return macctx; 75 struct blake2_mac_data_st *macctx = vmacctx; local 77 if (macctx != NULL) { 78 OPENSSL_cleanse(macctx->key, sizeof(macctx->key)) 85 struct blake2_mac_data_st *macctx = vmacctx; local 108 struct blake2_mac_data_st *macctx = vmacctx; local 126 struct blake2_mac_data_st *macctx = vmacctx; local 138 struct blake2_mac_data_st *macctx = vmacctx; local 191 struct blake2_mac_data_st *macctx = vmacctx; local [all...] |
| gmac_prov.c | 49 struct gmac_data_st *macctx = vmacctx; local 51 if (macctx != NULL) { 52 EVP_CIPHER_CTX_free(macctx->ctx); 53 ossl_prov_cipher_reset(&macctx->cipher); 54 OPENSSL_free(macctx); 60 struct gmac_data_st *macctx; local 65 if ((macctx = OPENSSL_zalloc(sizeof(*macctx))) == NULL 66 || (macctx->ctx = EVP_CIPHER_CTX_new()) == NULL) { 67 gmac_free(macctx); 117 struct gmac_data_st *macctx = vmacctx; local 129 struct gmac_data_st *macctx = vmacctx; local 149 struct gmac_data_st *macctx = vmacctx; local 205 struct gmac_data_st *macctx = vmacctx; local [all...] |
| kmac_prov.c | 686 struct kmac_data_st *macctx = kmac##size##_new(provctx); \ 688 if (macctx != NULL) \ 689 macctx->internal = 1; \ 690 return macctx; \
|
| /src/crypto/external/bsd/openssl/dist/providers/implementations/macs/ |
| cmac_prov.c | 53 struct cmac_data_st *macctx; local 58 if ((macctx = OPENSSL_zalloc(sizeof(*macctx))) == NULL 59 || (macctx->ctx = CMAC_CTX_new()) == NULL) { 60 OPENSSL_free(macctx); 61 macctx = NULL; 63 macctx->provctx = provctx; 66 return macctx; 71 struct cmac_data_st *macctx = vmacctx; local 73 if (macctx != NULL) 101 struct cmac_data_st *macctx = vmacctx; local 123 struct cmac_data_st *macctx = vmacctx; local 136 struct cmac_data_st *macctx = vmacctx; local 144 struct cmac_data_st *macctx = vmacctx; local 195 struct cmac_data_st *macctx = vmacctx; local [all...] |
| hmac_prov.c | 75 struct hmac_data_st *macctx; local 80 if ((macctx = OPENSSL_zalloc(sizeof(*macctx))) == NULL 81 || (macctx->ctx = HMAC_CTX_new()) == NULL) { 82 OPENSSL_free(macctx); 85 macctx->provctx = provctx; 87 return macctx; 92 struct hmac_data_st *macctx = vmacctx; local 94 if (macctx != NULL) { 95 HMAC_CTX_free(macctx->ctx) 176 struct hmac_data_st *macctx = vmacctx; local 191 struct hmac_data_st *macctx = vmacctx; local 226 struct hmac_data_st *macctx = vmacctx; local 257 struct hmac_data_st *macctx = vmacctx; local 308 struct hmac_data_st *macctx = vmacctx; local [all...] |
| blake2_mac_impl.c | 44 struct blake2_mac_data_st *macctx; local 49 macctx = OPENSSL_zalloc(sizeof(*macctx)); 50 if (macctx != NULL) { 51 BLAKE2_PARAM_INIT(&macctx->params); 54 return macctx; 75 struct blake2_mac_data_st *macctx = vmacctx; local 77 if (macctx != NULL) { 78 OPENSSL_cleanse(macctx->key, sizeof(macctx->key)) 85 struct blake2_mac_data_st *macctx = vmacctx; local 108 struct blake2_mac_data_st *macctx = vmacctx; local 126 struct blake2_mac_data_st *macctx = vmacctx; local 138 struct blake2_mac_data_st *macctx = vmacctx; local 191 struct blake2_mac_data_st *macctx = vmacctx; local [all...] |
| gmac_prov.c | 49 struct gmac_data_st *macctx = vmacctx; local 51 if (macctx != NULL) { 52 EVP_CIPHER_CTX_free(macctx->ctx); 53 ossl_prov_cipher_reset(&macctx->cipher); 54 OPENSSL_free(macctx); 60 struct gmac_data_st *macctx; local 65 if ((macctx = OPENSSL_zalloc(sizeof(*macctx))) == NULL 66 || (macctx->ctx = EVP_CIPHER_CTX_new()) == NULL) { 67 gmac_free(macctx); 117 struct gmac_data_st *macctx = vmacctx; local 129 struct gmac_data_st *macctx = vmacctx; local 149 struct gmac_data_st *macctx = vmacctx; local 205 struct gmac_data_st *macctx = vmacctx; local [all...] |
| /src/crypto/external/apache2/openssl/dist/providers/implementations/signature/ |
| mac_legacy_sig.c | 47 EVP_MAC_CTX *macctx; member in struct:__anon592 70 pmacctx->macctx = EVP_MAC_CTX_new(mac); 71 if (pmacctx->macctx == NULL) 125 if (!ossl_prov_set_macctx(pmacctx->macctx, NULL, 133 if (!EVP_MAC_init(pmacctx->macctx, pmacctx->key->priv_key, 145 if (pmacctx == NULL || pmacctx->macctx == NULL) 148 return EVP_MAC_update(pmacctx->macctx, data, datalen); 156 if (!ossl_prov_is_running() || pmacctx == NULL || pmacctx->macctx == NULL) 159 return EVP_MAC_final(pmacctx->macctx, mac, maclen, macsize); 167 EVP_MAC_CTX_free(ctx->macctx); [all...] |
| /src/crypto/external/bsd/openssl/dist/providers/implementations/signature/ |
| mac_legacy_sig.c | 47 EVP_MAC_CTX *macctx; member in struct:__anon1633 72 pmacctx->macctx = EVP_MAC_CTX_new(mac); 73 if (pmacctx->macctx == NULL) 127 if (!ossl_prov_set_macctx(pmacctx->macctx, NULL, 135 if (!EVP_MAC_init(pmacctx->macctx, pmacctx->key->priv_key, 147 if (pmacctx == NULL || pmacctx->macctx == NULL) 150 return EVP_MAC_update(pmacctx->macctx, data, datalen); 158 if (!ossl_prov_is_running() || pmacctx == NULL || pmacctx->macctx == NULL) 161 return EVP_MAC_final(pmacctx->macctx, mac, maclen, macsize); 169 EVP_MAC_CTX_free(ctx->macctx); [all...] |
| /src/crypto/external/apache2/openssl/dist/providers/common/include/prov/ |
| provider_util.h | 97 int ossl_prov_set_macctx(EVP_MAC_CTX *macctx, 123 int ossl_prov_macctx_load_from_params(EVP_MAC_CTX **macctx,
|
| /src/crypto/external/bsd/openssl/dist/providers/common/include/prov/ |
| 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,
|
| /src/crypto/external/apache2/openssl/dist/providers/common/ |
| provider_util.c | 230 int ossl_prov_set_macctx(EVP_MAC_CTX *macctx, 294 return EVP_MAC_CTX_set_params(macctx, mac_params); 297 int ossl_prov_macctx_load_from_params(EVP_MAC_CTX **macctx, 325 EVP_MAC_CTX_free(*macctx); 326 *macctx = mac == NULL ? NULL : EVP_MAC_CTX_new(mac); 329 if (*macctx == NULL) 337 if (*macctx == NULL) 340 if (ossl_prov_set_macctx(*macctx, params, ciphername, mdname, NULL, 344 EVP_MAC_CTX_free(*macctx); 345 *macctx = NULL [all...] |
| /src/crypto/external/bsd/openssl/dist/providers/common/ |
| provider_util.c | 224 int ossl_prov_set_macctx(EVP_MAC_CTX *macctx, 286 return EVP_MAC_CTX_set_params(macctx, mac_params); 290 int ossl_prov_macctx_load_from_params(EVP_MAC_CTX **macctx, 317 EVP_MAC_CTX_free(*macctx); 318 *macctx = mac == NULL ? NULL : EVP_MAC_CTX_new(mac); 321 if (*macctx == NULL) 329 if (*macctx == NULL) 332 if (ossl_prov_set_macctx(*macctx, params, ciphername, mdname, NULL, 336 EVP_MAC_CTX_free(*macctx); 337 *macctx = NULL [all...] |
| /src/crypto/external/bsd/openssl/dist/providers/implementations/kdfs/ |
| sskdf.c | 56 EVP_MAC_CTX *macctx; /* H(x) = HMAC_hash OR H(x) = KMAC */ member in struct:__anon1606 304 EVP_MAC_CTX_free(ctx->macctx); 364 if (ctx->macctx != NULL) { 370 EVP_MAC *mac = EVP_MAC_CTX_get0_mac(ctx->macctx); 402 ret = SSKDF_mac_kdm(ctx->macctx, 433 if (ctx->macctx != NULL) { 459 if (!ossl_prov_macctx_load_from_params(&ctx->macctx, params, 462 if (ctx->macctx != NULL) { 463 if (EVP_MAC_is_a(EVP_MAC_CTX_get0_mac(ctx->macctx), 465 || EVP_MAC_is_a(EVP_MAC_CTX_get0_mac(ctx->macctx), [all...] |
| /src/crypto/external/apache2/openssl/dist/providers/implementations/kdfs/ |
| sskdf.c | 58 EVP_MAC_CTX *macctx; /* H(x) = HMAC_hash OR H(x) = KMAC */ member in struct:__anon559 328 EVP_MAC_CTX_free(ctx->macctx); 354 if (src->macctx != NULL) { 355 dest->macctx = EVP_MAC_CTX_dup(src->macctx); 356 if (dest->macctx == NULL) 428 if (ctx->macctx != NULL) { 434 EVP_MAC *mac = EVP_MAC_CTX_get0_mac(ctx->macctx); 464 ret = SSKDF_mac_kdm(ctx->macctx, 536 if (ctx->macctx != NULL) [all...] |
| /src/crypto/external/apache2/openssl/dist/providers/implementations/rands/ |
| drbg_hmac.c | 414 EVP_MAC_CTX **macctx, 426 if (macctx == NULL || digest == NULL) 467 EVP_MAC_CTX_free(*macctx); 468 *macctx = NULL; 472 *macctx = EVP_MAC_CTX_new(mac); 477 if (!EVP_MAC_CTX_set_params(*macctx, mac_params)) { 479 EVP_MAC_CTX_free(*macctx); 480 *macctx = NULL;
|