Home
last modified time | relevance | path

Searched refs:alg_key_len (Results 1 – 8 of 8) sorted by relevance

/linux-3.4.99/net/ipv6/
Desp6.c471 (x->aead->alg_key_len + 7) / 8); in esp_init_aead()
522 keylen = (x->aalg ? (x->aalg->alg_key_len + 7) / 8 : 0) + in esp_init_authenc()
523 (x->ealg->alg_key_len + 7) / 8 + RTA_SPACE(sizeof(*param)); in esp_init_authenc()
539 memcpy(p, x->aalg->alg_key, (x->aalg->alg_key_len + 7) / 8); in esp_init_authenc()
540 p += (x->aalg->alg_key_len + 7) / 8; in esp_init_authenc()
561 param->enckeylen = cpu_to_be32((x->ealg->alg_key_len + 7) / 8); in esp_init_authenc()
562 memcpy(p, x->ealg->alg_key, (x->ealg->alg_key_len + 7) / 8); in esp_init_authenc()
Dah6.c648 (x->aalg->alg_key_len + 7) / 8)) in ah6_init_state()
/linux-3.4.99/net/ipv4/
Desp4.c525 (x->aead->alg_key_len + 7) / 8); in esp_init_aead()
576 keylen = (x->aalg ? (x->aalg->alg_key_len + 7) / 8 : 0) + in esp_init_authenc()
577 (x->ealg->alg_key_len + 7) / 8 + RTA_SPACE(sizeof(*param)); in esp_init_authenc()
593 memcpy(p, x->aalg->alg_key, (x->aalg->alg_key_len + 7) / 8); in esp_init_authenc()
594 p += (x->aalg->alg_key_len + 7) / 8; in esp_init_authenc()
615 param->enckeylen = cpu_to_be32((x->ealg->alg_key_len + 7) / 8); in esp_init_authenc()
616 memcpy(p, x->ealg->alg_key, (x->ealg->alg_key_len + 7) / 8); in esp_init_authenc()
Dah4.c436 (x->aalg->alg_key_len + 7) / 8)) in ah_init_state()
/linux-3.4.99/include/linux/
Dxfrm.h101 unsigned int alg_key_len; /* in bits */ member
107 unsigned int alg_key_len; /* in bits */ member
114 unsigned int alg_key_len; /* in bits */ member
/linux-3.4.99/net/xfrm/
Dxfrm_user.c37 return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); in aead_len()
312 p = kmalloc(sizeof(*p) + (ualg->alg_key_len + 7) / 8, GFP_KERNEL); in attach_auth()
317 p->alg_key_len = ualg->alg_key_len; in attach_auth()
319 memcpy(p->alg_key, ualg->alg_key, (ualg->alg_key_len + 7) / 8); in attach_auth()
761 sizeof(*algo) + (auth->alg_key_len + 7) / 8); in copy_to_user_auth()
767 memcpy(algo->alg_key, auth->alg_key, (auth->alg_key_len + 7) / 8); in copy_to_user_auth()
768 algo->alg_key_len = auth->alg_key_len; in copy_to_user_auth()
2449 (x->aalg->alg_key_len + 7) / 8); in xfrm_sa_len()
/linux-3.4.99/net/key/
Daf_key.c769 if (x->aalg && x->aalg->alg_key_len) { in __pfkey_xfrm_state2msg()
771 PFKEY_ALIGN8((x->aalg->alg_key_len + 7) / 8); in __pfkey_xfrm_state2msg()
774 if (x->ealg && x->ealg->alg_key_len) { in __pfkey_xfrm_state2msg()
776 PFKEY_ALIGN8((x->ealg->alg_key_len+7) / 8); in __pfkey_xfrm_state2msg()
937 key->sadb_key_bits = x->aalg->alg_key_len; in __pfkey_xfrm_state2msg()
939 memcpy(key + 1, x->aalg->alg_key, (x->aalg->alg_key_len+7)/8); in __pfkey_xfrm_state2msg()
948 key->sadb_key_bits = x->ealg->alg_key_len; in __pfkey_xfrm_state2msg()
951 (x->ealg->alg_key_len+7)/8); in __pfkey_xfrm_state2msg()
1151 x->aalg->alg_key_len = 0; in pfkey_msg2xfrm_state()
1153 x->aalg->alg_key_len = key->sadb_key_bits; in pfkey_msg2xfrm_state()
[all …]
/linux-3.4.99/include/net/
Dxfrm.h1608 return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); in xfrm_alg_len()
1613 return sizeof(*alg) + ((alg->alg_key_len + 7) / 8); in xfrm_alg_auth_len()