Home
last modified time | relevance | path

Searched refs:hc_mech_type (Results 1 – 5 of 5) sorted by relevance

/illumos-gate/usr/src/common/crypto/sha2/
H A Dsha2_impl.h54 sha2_mech_type_t hc_mech_type; /* type of context */ member
/illumos-gate/usr/src/common/crypto/sha1/
H A Dsha1_impl.h63 sha1_mech_type_t hc_mech_type; /* type of context */ member
/illumos-gate/usr/src/uts/common/crypto/io/
H A Dsha2_mod.c903 if (ctx->hc_mech_type <= SHA256_HMAC_GEN_MECH_INFO_TYPE) { in sha2_mac_init_ctx()
923 SHA2Init(ctx->hc_mech_type, &ctx->hc_icontext); in sha2_mac_init_ctx()
927 SHA2Init(ctx->hc_mech_type, &ctx->hc_ocontext); in sha2_mac_init_ctx()
985 PROV_SHA2_HMAC_CTX(ctx)->hc_mech_type = mechanism->cm_type; in sha2_mac_init()
1079 switch (PROV_SHA2_HMAC_CTX(ctx)->hc_mech_type) { in sha2_mac_final()
1230 sha2_hmac_ctx.hc_mech_type = mechanism->cm_type; in sha2_mac_atomic()
1372 sha2_hmac_ctx.hc_mech_type = mechanism->cm_type; in sha2_mac_verify_atomic()
1594 sha2_hmac_ctx_tmpl->hc_mech_type = mechanism->cm_type; in sha2_create_ctx_template()
H A Dmd5_mod.c100 md5_mech_type_t hc_mech_type; /* type of context */ member
949 PROV_MD5_HMAC_CTX(ctx)->hc_mech_type = mechanism->cm_type; in md5_mac_init()
1014 if (PROV_MD5_HMAC_CTX(ctx)->hc_mech_type == MD5_HMAC_GEN_MECH_INFO_TYPE) in md5_mac_final()
1465 md5_hmac_ctx_tmpl->hc_mech_type = mechanism->cm_type; in md5_create_ctx_template()
H A Dsha1_mod.c895 PROV_SHA1_HMAC_CTX(ctx)->hc_mech_type = mechanism->cm_type; in sha1_mac_init()
928 if (PROV_SHA1_HMAC_CTX(ctx)->hc_mech_type == in sha1_mac()
1056 if (PROV_SHA1_HMAC_CTX(ctx)->hc_mech_type == in sha1_mac_final()
1507 sha1_hmac_ctx_tmpl->hc_mech_type = mechanism->cm_type; in sha1_create_ctx_template()