Lines Matching refs:mechanism

75 		(len) = (uint32_t)*((ulong_t *)(void *)mechanism->cm_param); \
241 sha1_digest_init(crypto_ctx_t *ctx, crypto_mechanism_t *mechanism, in sha1_digest_init() argument
244 if (mechanism->cm_type != SHA1_MECH_INFO_TYPE) in sha1_digest_init()
719 crypto_session_id_t session_id, crypto_mechanism_t *mechanism, in sha1_digest_atomic() argument
726 if (mechanism->cm_type != SHA1_MECH_INFO_TYPE) in sha1_digest_atomic()
847 sha1_mac_init(crypto_ctx_t *ctx, crypto_mechanism_t *mechanism, in sha1_mac_init() argument
854 if (mechanism->cm_type != SHA1_HMAC_MECH_INFO_TYPE && in sha1_mac_init()
855 mechanism->cm_type != SHA1_HMAC_GEN_MECH_INFO_TYPE) in sha1_mac_init()
895 PROV_SHA1_HMAC_CTX(ctx)->hc_mech_type = mechanism->cm_type; in sha1_mac_init()
896 if (mechanism->cm_type == SHA1_HMAC_GEN_MECH_INFO_TYPE) { in sha1_mac_init()
897 if (mechanism->cm_param == NULL || in sha1_mac_init()
898 mechanism->cm_param_len != sizeof (ulong_t)) in sha1_mac_init()
900 PROV_SHA1_GET_DIGEST_LEN(mechanism, in sha1_mac_init()
1152 crypto_session_id_t session_id, crypto_mechanism_t *mechanism, in sha1_mac_atomic() argument
1162 if (mechanism->cm_type != SHA1_HMAC_MECH_INFO_TYPE && in sha1_mac_atomic()
1163 mechanism->cm_type != SHA1_HMAC_GEN_MECH_INFO_TYPE) in sha1_mac_atomic()
1192 if (mechanism->cm_type == SHA1_HMAC_GEN_MECH_INFO_TYPE) { in sha1_mac_atomic()
1193 if (mechanism->cm_param == NULL || in sha1_mac_atomic()
1194 mechanism->cm_param_len != sizeof (ulong_t)) { in sha1_mac_atomic()
1198 PROV_SHA1_GET_DIGEST_LEN(mechanism, digest_len); in sha1_mac_atomic()
1272 crypto_session_id_t session_id, crypto_mechanism_t *mechanism, in sha1_mac_verify_atomic() argument
1282 if (mechanism->cm_type != SHA1_HMAC_MECH_INFO_TYPE && in sha1_mac_verify_atomic()
1283 mechanism->cm_type != SHA1_HMAC_GEN_MECH_INFO_TYPE) in sha1_mac_verify_atomic()
1312 if (mechanism->cm_type == SHA1_HMAC_GEN_MECH_INFO_TYPE) { in sha1_mac_verify_atomic()
1313 if (mechanism->cm_param == NULL || in sha1_mac_verify_atomic()
1314 mechanism->cm_param_len != sizeof (ulong_t)) { in sha1_mac_verify_atomic()
1318 PROV_SHA1_GET_DIGEST_LEN(mechanism, digest_len); in sha1_mac_verify_atomic()
1466 crypto_mechanism_t *mechanism, crypto_key_t *key, in sha1_create_ctx_template() argument
1473 if ((mechanism->cm_type != SHA1_HMAC_MECH_INFO_TYPE) && in sha1_create_ctx_template()
1474 (mechanism->cm_type != SHA1_HMAC_GEN_MECH_INFO_TYPE)) { in sha1_create_ctx_template()
1507 sha1_hmac_ctx_tmpl->hc_mech_type = mechanism->cm_type; in sha1_create_ctx_template()