seg6_hmac.h 345 B

123456789101112131415161718192021
  1. #ifndef _UAPI_LINUX_SEG6_HMAC_H
  2. #define _UAPI_LINUX_SEG6_HMAC_H
  3. #include <linux/seg6.h>
  4. #define SEG6_HMAC_SECRET_LEN 64
  5. #define SEG6_HMAC_FIELD_LEN 32
  6. struct sr6_tlv_hmac {
  7. struct sr6_tlv tlvhdr;
  8. __u16 reserved;
  9. __be32 hmackeyid;
  10. __u8 hmac[SEG6_HMAC_FIELD_LEN];
  11. };
  12. enum {
  13. SEG6_HMAC_ALGO_SHA1 = 1,
  14. SEG6_HMAC_ALGO_SHA256 = 2,
  15. };
  16. #endif