Home
last modified time | relevance | path

Searched refs:esph (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/netipsec/
H A Dxform_esp.c271 const struct auth_hash *esph; in esp_input() local
307 esph = sav->tdb_authalgxform; in esp_input()
316 alen = xform_ah_authsize(esph); in esp_input()
340 if (esph != NULL && sav->replay != NULL && sav->replay->wsize != 0) { in esp_input()
374 if (esph != NULL) { in esp_input()
496 const struct auth_hash *esph; in esp_input_cb() local
521 esph = sav->tdb_authalgxform; in esp_input_cb()
535 if (!(crp->crp_etype == EBADMSG && esph != NULL)) { in esp_input_cb()
554 if (esph != NULL) { in esp_input_cb()
555 alen = xform_ah_authsize(esph); in esp_input_cb()
[all …]
H A Dxform_ah.c119 xform_ah_authsize(const struct auth_hash *esph) in xform_ah_authsize() argument
123 if (esph == NULL) in xform_ah_authsize()
126 switch (esph->type) { in xform_ah_authsize()
130 alen = esph->hashsize / 2; /* RFC4868 2.3 */ in xform_ah_authsize()
135 alen = esph->hashsize; in xform_ah_authsize()
/freebsd/sys/dev/mlx5/mlx5_accel/
H A Dmlx5_ipsec.c126 static int mlx5_xform_ah_authsize(const struct auth_hash *esph) in mlx5_xform_ah_authsize() argument
130 if (esph == NULL) in mlx5_xform_ah_authsize()
133 switch (esph->type) { in mlx5_xform_ah_authsize()
137 alen = esph->hashsize / 2; /* RFC4868 2.3 */ in mlx5_xform_ah_authsize()
142 alen = esph->hashsize; in mlx5_xform_ah_authsize()
158 const struct auth_hash *esph = savp->tdb_authalgxform; in mlx5e_ipsec_build_accel_xfrm_attrs() local
191 aes_gcm->icv_len = mlx5_xform_ah_authsize(esph); //TBD: check if value make sense in mlx5e_ipsec_build_accel_xfrm_attrs()