Searched refs:sha2_ctx (Results 1 – 5 of 5) sorted by relevance
/titanic_50/usr/src/uts/common/crypto/io/ |
H A D | sha2_mod.c | 286 sha2_digest_update_uio(SHA2_CTX *sha2_ctx, crypto_data_t *data) in sha2_digest_update_uio() argument 320 SHA2Update(sha2_ctx, (uint8_t *)data->cd_uio-> in sha2_digest_update_uio() 347 sha2_digest_final_uio(SHA2_CTX *sha2_ctx, crypto_data_t *digest, in sha2_digest_final_uio() argument 380 if (((sha2_ctx->algotype <= SHA256_HMAC_GEN_MECH_INFO_TYPE) && in sha2_digest_final_uio() 382 ((sha2_ctx->algotype > SHA256_HMAC_GEN_MECH_INFO_TYPE) && in sha2_digest_final_uio() 389 SHA2Final(digest_scratch, sha2_ctx); in sha2_digest_final_uio() 397 sha2_ctx); in sha2_digest_final_uio() 412 SHA2Final(digest_tmp, sha2_ctx); in sha2_digest_final_uio() 446 sha2_digest_update_mblk(SHA2_CTX *sha2_ctx, crypto_data_t *data) in sha2_digest_update_mblk() argument 472 SHA2Update(sha2_ctx, mp->b_rptr + offset, cur_len); in sha2_digest_update_mblk() [all …]
|
H A D | rsa.c | 103 #define sha2_ctx dctx_u.sha2ctx macro 907 SHA2Init(SHA256, &(dctxp->sha2_ctx)); in rsa_sign_verify_common_init() 911 SHA2Init(SHA384, &(dctxp->sha2_ctx)); in rsa_sign_verify_common_init() 915 SHA2Init(SHA512, &(dctxp->sha2_ctx)); in rsa_sign_verify_common_init() 984 rv = crypto_digest_data(data, &(ctxp->sha2_ctx), in rsa_digest_svrfy_common() 1186 rv = crypto_digest_data(data, &(ctxp->sha2_ctx), in rsa_sign_update() 1243 SHA2Init(SHA256, &(dctx.sha2_ctx)); in rsa_sign_atomic() 1247 SHA2Init(SHA384, &(dctx.sha2_ctx)); in rsa_sign_atomic() 1251 SHA2Init(SHA512, &(dctx.sha2_ctx)); in rsa_sign_atomic() 1380 rv = crypto_digest_data(data, &(ctxp->sha2_ctx), in rsa_verify_update() [all …]
|
/titanic_50/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softMAC.c | 361 sha2_hmac_ctx_init(CKM_TO_SHA2(mech), &ctx->hc_ctx_u.sha2_ctx, in mac_init_ctx() 402 sha2_hmac_ctx_init(CKM_TO_SHA2(mech), &ctx->hc_ctx_u.sha2_ctx, in mac_init_ctx() 443 sha2_hmac_ctx_init(CKM_TO_SHA2(mech), &ctx->hc_ctx_u.sha2_ctx, in mac_init_ctx() 526 SHA2Update(&(hmac_ctx->hc_ctx_u.sha2_ctx.hc_icontext), in soft_hmac_sign_verify_common() 529 SOFT_MAC_FINAL_2(SHA256, &(hmac_ctx->hc_ctx_u.sha2_ctx), in soft_hmac_sign_verify_common() 537 SHA2Update(&(hmac_ctx->hc_ctx_u.sha2_ctx.hc_icontext), in soft_hmac_sign_verify_common() 540 SOFT_MAC_FINAL_2(SHA384, &(hmac_ctx->hc_ctx_u.sha2_ctx), in soft_hmac_sign_verify_common() 550 SHA2Update(&(hmac_ctx->hc_ctx_u.sha2_ctx.hc_icontext), in soft_hmac_sign_verify_common() 553 SOFT_MAC_FINAL_2(SHA512, &(hmac_ctx->hc_ctx_u.sha2_ctx), in soft_hmac_sign_verify_common() 631 SOFT_MAC_UPDATE(SHA2, &(hmac_ctx->hc_ctx_u.sha2_ctx), pPart, in soft_hmac_sign_verify_update()
|
H A D | softMAC.h | 92 sha2_hc_ctx_t sha2_ctx; member
|
/titanic_50/usr/src/common/crypto/sha2/ |
H A D | sha2_impl.h | 45 typedef struct sha2_ctx { struct
|