Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 7 | #ifndef _UAPI_LINUX_SEG6_HMAC_H |
| 8 | #define _UAPI_LINUX_SEG6_HMAC_H |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 9 | #include <linux/types.h> |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 10 | #include <linux/seg6.h> |
| 11 | #define SEG6_HMAC_SECRET_LEN 64 |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 12 | #define SEG6_HMAC_FIELD_LEN 32 |
| 13 | struct sr6_tlv_hmac { |
| 14 | struct sr6_tlv tlvhdr; |
| 15 | __u16 reserved; |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 16 | __be32 hmackeyid; |
| 17 | __u8 hmac[SEG6_HMAC_FIELD_LEN]; |
| 18 | }; |
| 19 | enum { |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 20 | SEG6_HMAC_ALGO_SHA1 = 1, |
| 21 | SEG6_HMAC_ALGO_SHA256 = 2, |
| 22 | }; |
| 23 | #endif |