Lines Matching defs:mac_mech
3210 crypto_key_t *encrypt_key, crypto_mechanism_t *mac_mech,
3232 if (!dprov_valid_mac_mech(mac_mech->cm_type)) {
3235 (unsigned long long)mac_mech->cm_type);
3244 softc, req, ctx, 0, encrypt_mech, encrypt_key, mac_mech, mac_key,
3335 crypto_key_t *encrypt_key, crypto_mechanism_t *mac_mech,
3358 if (!dprov_valid_mac_mech(mac_mech->cm_type)) {
3361 (unsigned long long)mac_mech->cm_type);
3370 softc, req, NULL, session_id, encrypt_mech, encrypt_key, mac_mech,
3380 dprov_mac_decrypt_init(crypto_ctx_t *ctx, crypto_mechanism_t *mac_mech,
3403 if (!dprov_valid_mac_mech(mac_mech->cm_type)) {
3406 (unsigned long long)mac_mech->cm_type);
3415 softc, req, ctx, 0, decrypt_mech, decrypt_key, mac_mech, mac_key,
3501 crypto_session_id_t session_id, crypto_mechanism_t *mac_mech,
3525 if (!dprov_valid_mac_mech(mac_mech->cm_type)) {
3528 (unsigned long long)mac_mech->cm_type);
3537 softc, req, NULL, session_id, decrypt_mech, decrypt_key, mac_mech,
3548 crypto_session_id_t session_id, crypto_mechanism_t *mac_mech,
3572 if (!dprov_valid_mac_mech(mac_mech->cm_type)) {
3575 (unsigned long long)mac_mech->cm_type);
3584 softc, req, NULL, session_id, decrypt_mech, decrypt_key, mac_mech,
5174 crypto_key_t *cipher_key, crypto_mechanism_t *mac_mech,
5187 taskq_req->dr_cipher_mac_req.mr_mac_mech = mac_mech;
6363 crypto_mechanism_t cipher_mech, mac_mech;
6375 mac_mech = *taskq_req->dr_cipher_mac_req.mr_mac_mech;
6380 &cipher_mech.cm_type, &mac_mech.cm_type)) != CRYPTO_SUCCESS)
6403 &mac_mech, &mac_key, NULL, &DPROV_CTX_DUAL_MAC(ctx),
6573 mac_mech = *taskq_req->dr_cipher_mac_req.mr_mac_mech;
6579 &cipher_mech.cm_type, &mac_mech.cm_type)) !=
6593 error = crypto_mac_prov(mac_pd, 0, &mac_mech, &mac_data,
6697 mac_mech = *taskq_req->dr_cipher_mac_req.mr_mac_mech;
6703 &cipher_mech.cm_type, &mac_mech.cm_type)) != CRYPTO_SUCCESS)
6708 error = crypto_mac_prov(mac_pd, 0, &mac_mech,
6713 error = crypto_mac_verify_prov(mac_pd, 0, &mac_mech,