PROV_SHA2_CTX
switch (PROV_SHA2_CTX(ctx)->sc_mech_type) {
PROV_SHA2_CTX(ctx)->sc_mech_type);
PROV_SHA2_CTX(ctx)->sc_mech_type = mechanism->cm_type;
SHA2Init(mechanism->cm_type, &PROV_SHA2_CTX(ctx)->sc_sha2_ctx);
switch (PROV_SHA2_CTX(ctx)->sc_mech_type) {
SHA2Update(&PROV_SHA2_CTX(ctx)->sc_sha2_ctx,
ret = sha2_digest_update_uio(&PROV_SHA2_CTX(ctx)->sc_sha2_ctx,
ret = sha2_digest_update_mblk(&PROV_SHA2_CTX(ctx)->sc_sha2_ctx,
digest->cd_offset, &PROV_SHA2_CTX(ctx)->sc_sha2_ctx);
ret = sha2_digest_final_uio(&PROV_SHA2_CTX(ctx)->sc_sha2_ctx,
ret = sha2_digest_final_mblk(&PROV_SHA2_CTX(ctx)->sc_sha2_ctx,
SHA2Update(&PROV_SHA2_CTX(ctx)->sc_sha2_ctx,
ret = sha2_digest_update_uio(&PROV_SHA2_CTX(ctx)->sc_sha2_ctx,
ret = sha2_digest_update_mblk(&PROV_SHA2_CTX(ctx)->sc_sha2_ctx,
switch (PROV_SHA2_CTX(ctx)->sc_mech_type) {
digest->cd_offset, &PROV_SHA2_CTX(ctx)->sc_sha2_ctx);
ret = sha2_digest_final_uio(&PROV_SHA2_CTX(ctx)->sc_sha2_ctx,
ret = sha2_digest_final_mblk(&PROV_SHA2_CTX(ctx)->sc_sha2_ctx,