blob: b877c782158a5dfd31a5a34df099b3bc613e10b8 [file] [log] [blame]
Greg Kroah-Hartman6f52b162017-11-01 15:08:43 +01001/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
David Lebrunbf355b82016-11-08 14:57:42 +01002#ifndef _UAPI_LINUX_SEG6_HMAC_H
3#define _UAPI_LINUX_SEG6_HMAC_H
4
David Lebruna50a05f2017-01-15 15:26:16 +01005#include <linux/types.h>
David Lebrunbf355b82016-11-08 14:57:42 +01006#include <linux/seg6.h>
7
8#define SEG6_HMAC_SECRET_LEN 64
9#define SEG6_HMAC_FIELD_LEN 32
10
11struct sr6_tlv_hmac {
12 struct sr6_tlv tlvhdr;
13 __u16 reserved;
14 __be32 hmackeyid;
15 __u8 hmac[SEG6_HMAC_FIELD_LEN];
16};
17
18enum {
19 SEG6_HMAC_ALGO_SHA1 = 1,
20 SEG6_HMAC_ALGO_SHA256 = 2,
21};
22
23#endif