1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 #ifndef _UAPI_LINUX_SEG6_HMAC_H 3 #define _UAPI_LINUX_SEG6_HMAC_H 4 5 #include <linux/types.h> 6 #include <linux/seg6.h> 7 8 #define SEG6_HMAC_SECRET_LEN 64 9 #define SEG6_HMAC_FIELD_LEN 32 10 11 struct sr6_tlv_hmac { 12 struct sr6_tlv tlvhdr; 13 __u16 reserved; 14 __be32 hmackeyid; 15 __u8 hmac[SEG6_HMAC_FIELD_LEN]; 16 }; 17 18 enum { 19 SEG6_HMAC_ALGO_SHA1 = 1, 20 SEG6_HMAC_ALGO_SHA256 = 2, 21 }; 22 23 #endif 24