Lines Matching refs:alg
2952 ipsec_alginfo_t *alg; local
3228 alg = ipss->ipsec_alglists[IPSEC_ALG_AUTH]
3230 if (alg != NULL && ALG_VALID(alg)) {
3231 newbie->ipsa_amech.cm_type = alg->alg_mech_type;
3235 newbie->ipsa_mac_len = (size_t)alg->alg_datalen;
3260 alg = ipss->ipsec_alglists[IPSEC_ALG_ENCR]
3263 if (alg != NULL && ALG_VALID(alg)) {
3264 newbie->ipsa_emech.cm_type = alg->alg_mech_type;
3265 newbie->ipsa_datalen = alg->alg_datalen;
3266 if (alg->alg_flags & ALG_FLAG_COUNTERMODE)
3269 if (alg->alg_flags & ALG_FLAG_COMBINED) {
3271 newbie->ipsa_mac_len = alg->alg_icvlen;
3274 if (alg->alg_flags & ALG_FLAG_CCM)
3276 else if (alg->alg_flags & ALG_FLAG_GCM)
3280 newbie->ipsa_saltlen = alg->alg_saltlen;
3282 newbie->ipsa_iv_len = alg->alg_ivlen;
5928 uint8_t alg, uint16_t minbits, uint16_t maxbits, ipsec_stack_t *ipss) argument
5947 IPSEC_ALG_AUTH : IPSEC_ALG_ENCR][alg];
5961 algdesc->sadb_x_algdesc_alg = alg;
7467 ipsec_alginfo_t *alg; local
7482 alg = ipss->ipsec_alglists[alg_type][sa->ipsa_auth_alg];
7487 alg = ipss->ipsec_alglists[alg_type][sa->ipsa_encr_alg];
7490 alg = NULL;
7493 if (alg == NULL || !ALG_VALID(alg))
7497 ASSERT(alg->alg_mech_type != CRYPTO_MECHANISM_INVALID);
7498 mech.cm_type = alg->alg_mech_type;