Lines Matching full:mechanism
42 /* to extract the digest length passed as mechanism parameter */
60 * Mechanism info structure passed to KCF during registration.
367 sha2_mac_init(crypto_ctx_t *ctx, crypto_mechanism_t *mechanism,
376 * mechanism
378 switch (mechanism->cm_type) {
392 PROV_SHA2_HMAC_CTX(ctx)->hc_mech_type = mechanism->cm_type;
408 PROV_SHA2_DIGEST_KEY(mechanism->cm_type / 3,
465 /* Set the digest lengths to values appropriate to the mechanism */
554 sha2_mac_atomic(crypto_mechanism_t *mechanism,
566 * mechanism
568 switch (mechanism->cm_type) {
581 sha2_hmac_ctx.hc_mech_type = mechanism->cm_type;
589 PROV_SHA2_DIGEST_KEY(mechanism->cm_type / 3,
615 ASSERT3U(mechanism->cm_type, ==, SHA512_HMAC_MECH_INFO_TYPE);
657 sha2_mac_verify_atomic(crypto_mechanism_t *mechanism,
669 * mechanism
671 switch (mechanism->cm_type) {
684 sha2_hmac_ctx.hc_mech_type = mechanism->cm_type;
692 PROV_SHA2_DIGEST_KEY(mechanism->cm_type / 3,
721 ASSERT3U(mechanism->cm_type, ==, SHA512_HMAC_MECH_INFO_TYPE);
802 sha2_create_ctx_template(crypto_mechanism_t *mechanism, crypto_key_t *key,
811 * mechanism
813 switch (mechanism->cm_type) {
829 sha2_hmac_ctx_tmpl->hc_mech_type = mechanism->cm_type;
839 PROV_SHA2_DIGEST_KEY(mechanism->cm_type / 3,