From addfc6364f29525ae66d25bfe5f957b366ff63e8 Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Sat, 20 Oct 2018 22:12:53 +0000 Subject: crypto/chacha: Split header into separate _chacha.h Sponsored by: Dell EMC Isilon --- sys/crypto/chacha20/_chacha.h | 12 ++++++++++++ sys/crypto/chacha20/chacha.h | 5 +---- 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 sys/crypto/chacha20/_chacha.h (limited to 'sys/crypto') diff --git a/sys/crypto/chacha20/_chacha.h b/sys/crypto/chacha20/_chacha.h new file mode 100644 index 000000000000..a7217b628d0e --- /dev/null +++ b/sys/crypto/chacha20/_chacha.h @@ -0,0 +1,12 @@ +/* $FreeBSD$ */ + +#ifndef _CHACHA_H +#define _CHACHA_H + +#include + +struct chacha_ctx { + u_int input[16]; +}; + +#endif diff --git a/sys/crypto/chacha20/chacha.h b/sys/crypto/chacha20/chacha.h index e67cc81264cd..d150093c6f93 100644 --- a/sys/crypto/chacha20/chacha.h +++ b/sys/crypto/chacha20/chacha.h @@ -12,10 +12,7 @@ Public domain. #define CHACHA_H #include - -struct chacha_ctx { - u_int input[16]; -}; +#include #define CHACHA_MINKEYLEN 16 #define CHACHA_NONCELEN 8 -- cgit v1.2.3