Home
last modified time | relevance | path

Searched refs:digest_ctx (Results 1 – 10 of 10) sorted by relevance

/titanic_41/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dmech_md5.c332 DIGEST_CONTEXT digest_ctx; in md5_hmac_sign() local
361 (void) memset(&digest_ctx, 0x0, sizeof (DIGEST_CONTEXT)); in md5_hmac_sign()
380 rc = digest_mgr_init(sess, &digest_ctx, &digest_mech); in md5_hmac_sign()
382 (void) digest_mgr_cleanup(&digest_ctx); in md5_hmac_sign()
387 rc = digest_mgr_digest(sess, FALSE, &digest_ctx, in md5_hmac_sign()
391 (void) digest_mgr_cleanup(&digest_ctx); in md5_hmac_sign()
395 (void) digest_mgr_cleanup(&digest_ctx); in md5_hmac_sign()
396 (void) memset(&digest_ctx, 0x0, sizeof (DIGEST_CONTEXT)); in md5_hmac_sign()
421 rc = digest_mgr_init(sess, &digest_ctx, &digest_mech); in md5_hmac_sign()
423 (void) digest_mgr_cleanup(&digest_ctx); in md5_hmac_sign()
[all …]
H A Dmech_sha.c66 DIGEST_CONTEXT digest_ctx; in sha1_hmac_sign() local
94 (void) memset(&digest_ctx, 0x0, sizeof (DIGEST_CONTEXT)); in sha1_hmac_sign()
112 rc = digest_mgr_init(sess, &digest_ctx, &digest_mech); in sha1_hmac_sign()
114 (void) digest_mgr_cleanup(&digest_ctx); in sha1_hmac_sign()
119 rc = digest_mgr_digest(sess, FALSE, &digest_ctx, in sha1_hmac_sign()
122 (void) digest_mgr_cleanup(&digest_ctx); in sha1_hmac_sign()
126 (void) digest_mgr_cleanup(&digest_ctx); in sha1_hmac_sign()
127 (void) memset(&digest_ctx, 0x0, sizeof (DIGEST_CONTEXT)); in sha1_hmac_sign()
153 (void) digest_mgr_cleanup(&digest_ctx); in sha1_hmac_sign()
157 rc = digest_mgr_digest_update(sess, &digest_ctx, in sha1_hmac_sign()
[all …]
H A Dsess_mgr.c589 if (sess->digest_ctx.context.ref) in session_mgr_close_session()
590 free(sess->digest_ctx.context.ref); in session_mgr_close_session()
592 if (sess->digest_ctx.mech.pParameter) in session_mgr_close_session()
593 free(sess->digest_ctx.mech.pParameter); in session_mgr_close_session()
666 if (sess->digest_ctx.context.ref) in session_mgr_close_all_sessions()
667 free(sess->digest_ctx.context.ref); in session_mgr_close_all_sessions()
669 if (sess->digest_ctx.mech.pParameter) in session_mgr_close_all_sessions()
670 free(sess->digest_ctx.mech.pParameter); in session_mgr_close_all_sessions()
862 if (sess->digest_ctx.active == TRUE) { in session_mgr_get_op_state()
868 sess->digest_ctx.context_len + in session_mgr_get_op_state()
[all …]
H A Dmech_rsa.c404 DIGEST_CONTEXT digest_ctx; in rsa_hash_pkcs_sign() local
414 (void) memset(&digest_ctx, 0x0, sizeof (digest_ctx)); in rsa_hash_pkcs_sign()
432 rc = digest_mgr_init(sess, &digest_ctx, &digest_mech); in rsa_hash_pkcs_sign()
436 rc = digest_mgr_digest(sess, length_only, &digest_ctx, in_data, in rsa_hash_pkcs_sign()
469 (void) digest_mgr_cleanup(&digest_ctx); in rsa_hash_pkcs_sign()
533 DIGEST_CONTEXT digest_ctx; in rsa_hash_pkcs_verify() local
543 (void) memset(&digest_ctx, 0x0, sizeof (digest_ctx)); in rsa_hash_pkcs_verify()
561 rc = digest_mgr_init(sess, &digest_ctx, &digest_mech); in rsa_hash_pkcs_verify()
565 rc = digest_mgr_digest(sess, FALSE, &digest_ctx, in_data, in rsa_hash_pkcs_verify()
598 (void) digest_mgr_cleanup(&digest_ctx); in rsa_hash_pkcs_verify()
H A Dnew_host.c1486 if (sess->digest_ctx.active == TRUE) { in SC_DigestInit()
1491 rc = digest_mgr_init(sess, &sess->digest_ctx, pMechanism); in SC_DigestInit()
1525 if (sess->digest_ctx.active == FALSE) { in SC_Digest()
1534 &sess->digest_ctx, pData, ulDataLen, in SC_Digest()
1539 (void) digest_mgr_cleanup(&sess->digest_ctx); in SC_Digest()
1569 if (sess->digest_ctx.active == FALSE) { in SC_DigestUpdate()
1575 rc = digest_mgr_digest_update(sess, &sess->digest_ctx, in SC_DigestUpdate()
1580 (void) digest_mgr_cleanup(&sess->digest_ctx); in SC_DigestUpdate()
1604 if (sess->digest_ctx.active == FALSE) { in SC_DigestKey()
1609 rc = digest_mgr_digest_key(sess, &sess->digest_ctx, hKey); in SC_DigestKey()
[all …]
H A Dtpmtok_int.h317 DIGEST_CONTEXT digest_ctx; member
/titanic_41/usr/src/uts/common/crypto/core/
H A Dkcf_prov_lib.c43 void *digest_ctx, void (*update)()) in crypto_uio_data() argument
98 update(digest_ctx, datap, cur_len); in crypto_uio_data()
130 void *digest_ctx, void (*update)()) in crypto_mblk_data() argument
178 update(digest_ctx, datap, cur_len); in crypto_mblk_data()
/titanic_41/usr/src/uts/common/sys/crypto/
H A Dimpl.h888 #define KCF_PROV_DIGEST_ENCRYPT_UPDATE(digest_ctx, encrypt_ctx, plaintext, \ argument
893 digest_ctx, encrypt_ctx, plaintext, ciphertext, req) : \
896 #define KCF_PROV_DECRYPT_DIGEST_UPDATE(decrypt_ctx, digest_ctx, ciphertext, \ argument
901 decrypt_ctx, digest_ctx, ciphertext, plaintext, req) : \
/titanic_41/usr/src/uts/common/crypto/io/
H A Ddprov.c3093 dprov_digest_encrypt_update(crypto_ctx_t *digest_ctx, in dprov_digest_encrypt_update() argument
3103 DPROV_SOFTC_FROM_CTX(digest_ctx, softc, instance); in dprov_digest_encrypt_update()
3107 if (digest_ctx->cc_provider != encrypt_ctx->cc_provider) in dprov_digest_encrypt_update()
3112 softc, req, digest_ctx, encrypt_ctx, plaintext, ciphertext); in dprov_digest_encrypt_update()
3121 dprov_decrypt_digest_update(crypto_ctx_t *decrypt_ctx, crypto_ctx_t *digest_ctx, in dprov_decrypt_digest_update() argument
3135 if (decrypt_ctx->cc_provider != digest_ctx->cc_provider) in dprov_decrypt_digest_update()
3140 softc, req, digest_ctx, decrypt_ctx, plaintext, ciphertext); in dprov_decrypt_digest_update()
/titanic_41/usr/src/uts/common/crypto/api/
H A Dkcf_dual.c2141 crypto_digest_encrypt_update(crypto_context_t digest_ctx, in crypto_digest_encrypt_update() argument