Searched refs:mac_ctx (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softMAC.h | 97 #define SOFT_MAC_INIT_CTX(HASH, mac_ctx, ipad, opad, len) \ argument 99 HASH##Init(&((mac_ctx)->hc_icontext)); \ 100 HASH##Update(&((mac_ctx)->hc_icontext), ipad, len); \ 102 HASH##Init(&((mac_ctx)->hc_ocontext)); \ 103 HASH##Update(&((mac_ctx)->hc_ocontext), opad, len); 105 #define SOFT_MAC_UPDATE(HASH, mac_ctx, pPart, PartLen) \ argument 106 HASH##Update(&((mac_ctx)->hc_icontext), pPart, PartLen); 108 #define SOFT_MAC_FINAL(HASH, mac_ctx, mac) \ argument 109 HASH##Final((mac), &((mac_ctx)->hc_icontext)); \ 110 HASH##Update(&((mac_ctx)->hc_ocontext), (mac), HASH##_HASH_SIZE);\ [all …]
|
/illumos-gate/usr/src/uts/common/crypto/core/ |
H A D | kcf_callprov.c | 1672 crypto_ctx_t *mac_ctx; in kcf_emulate_dual() local 1696 (crypto_context_t *)&mac_ctx, NULL); in kcf_emulate_dual() 1700 mac_ctx->cc_framework_private; in kcf_emulate_dual() 1702 mac_ctx->cc_framework_private); in kcf_emulate_dual() 1712 crypto_ctx_t *mac_ctx = &mac_kcf_ctx->kc_glbl_ctx; in kcf_emulate_dual() local 1741 err = crypto_mac_update((crypto_context_t)mac_ctx, in kcf_emulate_dual() 1753 crypto_ctx_t *mac_ctx = &mac_kcf_ctx->kc_glbl_ctx; in kcf_emulate_dual() local 1754 crypto_context_t mac_context = mac_ctx; in kcf_emulate_dual() 1802 crypto_ctx_t *mac_ctx; in kcf_emulate_dual() local 1813 (crypto_context_t *)&mac_ctx, NULL); in kcf_emulate_dual() [all …]
|
/illumos-gate/usr/src/uts/common/crypto/api/ |
H A D | kcf_dual.c | 870 crypto_ctx_t *ctx = (crypto_ctx_t *)context, *mac_ctx; in crypto_encrypt_mac_update() local 893 mac_ctx = &kcf_mac_ctx->kc_glbl_ctx; in crypto_encrypt_mac_update() 930 error = crypto_mac_update((crypto_context_t)mac_ctx, in crypto_encrypt_mac_update() 973 crypto_ctx_t *ctx = (crypto_ctx_t *)context, *mac_ctx; in crypto_encrypt_mac_final() local 996 mac_ctx = &kcf_mac_ctx->kc_glbl_ctx; in crypto_encrypt_mac_final() 997 mac_context = (crypto_context_t)mac_ctx; in crypto_encrypt_mac_final() 1976 crypto_ctx_t *ctx = (crypto_ctx_t *)context, *mac_ctx; in crypto_mac_decrypt_update() local 1999 mac_ctx = &kcf_mac_ctx->kc_glbl_ctx; in crypto_mac_decrypt_update() 2006 error = crypto_mac_update((crypto_context_t)mac_ctx, in crypto_mac_decrypt_update() 2066 crypto_ctx_t *ctx = (crypto_ctx_t *)context, *mac_ctx; in crypto_mac_decrypt_final() local [all …]
|