Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dmech_md5.c332 DIGEST_CONTEXT digest_ctx; in md5_hmac_sign() local
395 (void) digest_mgr_cleanup(&digest_ctx); in md5_hmac_sign()
423 (void) digest_mgr_cleanup(&digest_ctx); in md5_hmac_sign()
430 (void) digest_mgr_cleanup(&digest_ctx); in md5_hmac_sign()
437 (void) digest_mgr_cleanup(&digest_ctx); in md5_hmac_sign()
444 (void) digest_mgr_cleanup(&digest_ctx); in md5_hmac_sign()
448 (void) digest_mgr_cleanup(&digest_ctx); in md5_hmac_sign()
453 (void) digest_mgr_cleanup(&digest_ctx); in md5_hmac_sign()
460 (void) digest_mgr_cleanup(&digest_ctx); in md5_hmac_sign()
466 (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
114 (void) digest_mgr_cleanup(&digest_ctx); in sha1_hmac_sign()
126 (void) digest_mgr_cleanup(&digest_ctx); in sha1_hmac_sign()
153 (void) digest_mgr_cleanup(&digest_ctx); in sha1_hmac_sign()
160 (void) digest_mgr_cleanup(&digest_ctx); in sha1_hmac_sign()
166 (void) digest_mgr_cleanup(&digest_ctx); in sha1_hmac_sign()
173 (void) digest_mgr_cleanup(&digest_ctx); in sha1_hmac_sign()
177 (void) digest_mgr_cleanup(&digest_ctx); in sha1_hmac_sign()
182 (void) digest_mgr_cleanup(&digest_ctx); in sha1_hmac_sign()
189 (void) digest_mgr_cleanup(&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()
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()
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()
888 sess->digest_ctx.context.ref, in session_mgr_get_op_state()
889 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()
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()
1580 (void) digest_mgr_cleanup(&sess->digest_ctx); in SC_DigestUpdate()
1604 if (sess->digest_ctx.active == FALSE) { in SC_DigestKey()
1613 (void) digest_mgr_cleanup(&sess->digest_ctx); in SC_DigestKey()
1644 if (sess->digest_ctx.active == FALSE) { in SC_DigestFinal()
1653 &sess->digest_ctx, pDigest, pulDigestLen); in SC_DigestFinal()
[all …]
H A Dtpmtok_int.h318 DIGEST_CONTEXT digest_ctx; member
/illumos-gate/usr/src/common/crypto/modes/
H A Dmodes.c240 void *digest_ctx, void (*update)()) in crypto_uio_data() argument
299 update(digest_ctx, datap, cur_len); in crypto_uio_data()
331 void *digest_ctx, void (*update)()) in crypto_mblk_data() argument
383 update(digest_ctx, datap, cur_len); in crypto_mblk_data()
/illumos-gate/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) : \
/illumos-gate/usr/src/uts/common/crypto/io/
H A Ddprov.c3119 dprov_digest_encrypt_update(crypto_ctx_t *digest_ctx, in dprov_digest_encrypt_update() argument
3129 DPROV_SOFTC_FROM_CTX(digest_ctx, softc, instance); in dprov_digest_encrypt_update()
3133 if (digest_ctx->cc_provider != encrypt_ctx->cc_provider) in dprov_digest_encrypt_update()
3138 softc, req, digest_ctx, encrypt_ctx, plaintext, ciphertext); in dprov_digest_encrypt_update()
3147 dprov_decrypt_digest_update(crypto_ctx_t *decrypt_ctx, crypto_ctx_t *digest_ctx, in dprov_decrypt_digest_update() argument
3161 if (decrypt_ctx->cc_provider != digest_ctx->cc_provider) in dprov_decrypt_digest_update()
3166 softc, req, digest_ctx, decrypt_ctx, plaintext, ciphertext); in dprov_decrypt_digest_update()
/illumos-gate/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