Home
last modified time | relevance | path

Searched refs:mac_ctx (Results 1 – 6 of 6) sorted by relevance

/titanic_50/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftMAC.h99 #define SOFT_MAC_INIT_CTX(HASH, mac_ctx, ipad, opad, len) \ argument
101 HASH##Init(&((mac_ctx)->hc_icontext)); \
102 HASH##Update(&((mac_ctx)->hc_icontext), ipad, len); \
104 HASH##Init(&((mac_ctx)->hc_ocontext)); \
105 HASH##Update(&((mac_ctx)->hc_ocontext), opad, len);
107 #define SOFT_MAC_UPDATE(HASH, mac_ctx, pPart, PartLen) \ argument
108 HASH##Update(&((mac_ctx)->hc_icontext), pPart, PartLen);
110 #define SOFT_MAC_FINAL(HASH, mac_ctx, mac) \ argument
111 HASH##Final((mac), &((mac_ctx)->hc_icontext)); \
112 HASH##Update(&((mac_ctx)->hc_ocontext), (mac), HASH##_HASH_SIZE);\
[all …]
/titanic_50/usr/src/cmd/ssh/libssh/common/
H A Dhostfile.c115 HMAC_CTX mac_ctx; in host_hash() local
133 HMAC_Init(&mac_ctx, salt, len, md); in host_hash()
134 HMAC_Update(&mac_ctx, (u_char *) host, strlen(host)); in host_hash()
135 HMAC_Final(&mac_ctx, (u_char *) result, NULL); in host_hash()
136 HMAC_cleanup(&mac_ctx); in host_hash()
/titanic_50/usr/src/uts/common/crypto/core/
H A Dkcf_callprov.c1672 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 …]
/titanic_50/usr/src/uts/common/crypto/api/
H A Dkcf_dual.c870 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 …]
/titanic_50/usr/src/uts/common/inet/kssl/
H A Dksslproto.h313 KSSL_HASHCTX mac_ctx[2][2]; /* inner 'n outer per dir */ member
H A Dksslrec.c172 KSSL_HASHCTX mac_ctx; in kssl_compute_record_mac() local
173 KSSL_HASHCTX *ctx = &mac_ctx; in kssl_compute_record_mac()
257 bcopy(&(ssl->mac_ctx[direction][0]), ctx, in kssl_compute_record_mac()
263 bcopy(&(ssl->mac_ctx[direction][1]), ctx, in kssl_compute_record_mac()
1506 ctx = &ssl->mac_ctx[dir][0]; in kssl_spec_init()
1513 ctx = &ssl->mac_ctx[dir][1]; in kssl_spec_init()