Home
last modified time | relevance | path

Searched refs:hmac_ctx (Results 1 – 8 of 8) sorted by relevance

/titanic_41/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftMAC.c72 soft_hmac_ctx_t *hmac_ctx; in soft_hmac_sign_verify_init_common() local
80 hmac_ctx = malloc(sizeof (soft_hmac_ctx_t)); in soft_hmac_sign_verify_init_common()
82 if (hmac_ctx == NULL) { in soft_hmac_sign_verify_init_common()
88 hmac_ctx->hmac_len = MD5_HASH_SIZE; in soft_hmac_sign_verify_init_common()
92 hmac_ctx->hmac_len = SHA1_HASH_SIZE; in soft_hmac_sign_verify_init_common()
96 hmac_ctx->hmac_len = SHA256_DIGEST_LENGTH; in soft_hmac_sign_verify_init_common()
100 hmac_ctx->hmac_len = SHA384_DIGEST_LENGTH; in soft_hmac_sign_verify_init_common()
104 hmac_ctx->hmac_len = SHA512_DIGEST_LENGTH; in soft_hmac_sign_verify_init_common()
113 free(hmac_ctx); in soft_hmac_sign_verify_init_common()
116 hmac_ctx->hmac_len = *((CK_MAC_GENERAL_PARAMS_PTR) in soft_hmac_sign_verify_init_common()
[all …]
H A DsoftVerifyUtil.c155 soft_hmac_ctx_t *hmac_ctx; in soft_verify() local
157 hmac_ctx = (soft_hmac_ctx_t *)session_p->verify.context; in soft_verify()
158 len = hmac_ctx->hmac_len; in soft_verify()
346 soft_hmac_ctx_t *hmac_ctx; in soft_verify_final() local
348 hmac_ctx = (soft_hmac_ctx_t *)session_p->verify.context; in soft_verify_final()
349 len = hmac_ctx->hmac_len; in soft_verify_final()
/titanic_41/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dmech_md5.c493 SIGN_VERIFY_CONTEXT hmac_ctx; in md5_hmac_verify() local
505 (void) memset(&hmac_ctx, 0, sizeof (SIGN_VERIFY_CONTEXT)); in md5_hmac_verify()
507 rc = sign_mgr_init(sess, &hmac_ctx, &ctx->mech, FALSE, ctx->key); in md5_hmac_verify()
509 (void) sign_mgr_cleanup(&hmac_ctx); in md5_hmac_verify()
514 rc = sign_mgr_sign(sess, FALSE, &hmac_ctx, in md5_hmac_verify()
517 (void) sign_mgr_cleanup(&hmac_ctx); in md5_hmac_verify()
527 (void) sign_mgr_cleanup(&hmac_ctx); in md5_hmac_verify()
H A Dmech_sha.c223 SIGN_VERIFY_CONTEXT hmac_ctx; in sha1_hmac_verify() local
235 (void) memset(&hmac_ctx, 0, sizeof (SIGN_VERIFY_CONTEXT)); in sha1_hmac_verify()
237 rc = sign_mgr_init(sess, &hmac_ctx, &ctx->mech, FALSE, ctx->key); in sha1_hmac_verify()
242 rc = sign_mgr_sign(sess, FALSE, &hmac_ctx, in sha1_hmac_verify()
256 (void) sign_mgr_cleanup(&hmac_ctx); in sha1_hmac_verify()
/titanic_41/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelSoftCommon.c197 soft_hmac_ctx_t *hmac_ctx; in do_soft_hmac_verify() local
205 hmac_ctx = (soft_hmac_ctx_t *)session_p->verify.context; in do_soft_hmac_verify()
206 len = hmac_ctx->hmac_len; in do_soft_hmac_verify()
/titanic_41/usr/src/uts/common/crypto/io/
H A Dmd5_mod.c929 md5_hmac_ctx_t *hmac_ctx = ctx->cc_provider_private; in md5_mac_init() local
936 PROV_MD5_DIGEST_KEY(&hmac_ctx->hc_icontext, in md5_mac_init()
H A Dsha1_mod.c872 sha1_hmac_ctx_t *hmac_ctx = ctx->cc_provider_private; in sha1_mac_init() local
879 PROV_SHA1_DIGEST_KEY(&hmac_ctx->hc_icontext, in sha1_mac_init()
H A Dsha2_mod.c961 sha2_hmac_ctx_t *hmac_ctx = ctx->cc_provider_private; in sha2_mac_init() local
969 &hmac_ctx->hc_icontext, in sha2_mac_init()