Lines Matching refs:sadb_key
354 [SADB_EXT_KEY_AUTH] = (u8) sizeof(struct sadb_key),
355 [SADB_EXT_KEY_ENCRYPT] = (u8) sizeof(struct sadb_key),
422 static inline int sadb_key_len(const struct sadb_key *key) in sadb_key_len()
426 return DIV_ROUND_UP(sizeof(struct sadb_key) + key_bytes, in sadb_key_len()
432 const struct sadb_key *key = p; in verify_key_len()
768 struct sadb_key *key; in __pfkey_xfrm_state2msg()
808 size += sizeof(struct sadb_key) + auth_key_size; in __pfkey_xfrm_state2msg()
813 size += sizeof(struct sadb_key) + encrypt_key_size; in __pfkey_xfrm_state2msg()
964 key = skb_put(skb, sizeof(struct sadb_key) + auth_key_size); in __pfkey_xfrm_state2msg()
965 key->sadb_key_len = (sizeof(struct sadb_key) + auth_key_size) / in __pfkey_xfrm_state2msg()
974 key = skb_put(skb, sizeof(struct sadb_key) + encrypt_key_size); in __pfkey_xfrm_state2msg()
975 key->sadb_key_len = (sizeof(struct sadb_key) + in __pfkey_xfrm_state2msg()
1066 const struct sadb_key *key; in pfkey_msg2xfrm_state()
1213 key = (struct sadb_key*) ext_hdrs[SADB_EXT_KEY_ENCRYPT-1]; in pfkey_msg2xfrm_state()