Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / include / uapi / linux / seg6_hmac.h
blobb877c782158a5dfd31a5a34df099b3bc613e10b8
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
5 #include <linux/types.h>
6 #include <linux/seg6.h>
8 #define SEG6_HMAC_SECRET_LEN 64
9 #define SEG6_HMAC_FIELD_LEN 32
11 struct sr6_tlv_hmac {
12 struct sr6_tlv tlvhdr;
13 __u16 reserved;
14 __be32 hmackeyid;
15 __u8 hmac[SEG6_HMAC_FIELD_LEN];
18 enum {
19 SEG6_HMAC_ALGO_SHA1 = 1,
20 SEG6_HMAC_ALGO_SHA256 = 2,
23 #endif