crypto/chacha: Split header into separate _chacha.h

Sponsored by:	Dell EMC Isilon
This commit is contained in:
cem 2018-10-20 22:12:53 +00:00
parent e34650b780
commit 335a291f0c
2 changed files with 13 additions and 4 deletions

View File

@ -0,0 +1,12 @@
/* $FreeBSD$ */
#ifndef _CHACHA_H
#define _CHACHA_H
#include <sys/types.h>
struct chacha_ctx {
u_int input[16];
};
#endif

View File

@ -12,10 +12,7 @@ Public domain.
#define CHACHA_H #define CHACHA_H
#include <sys/types.h> #include <sys/types.h>
#include <crypto/chacha20/_chacha.h>
struct chacha_ctx {
u_int input[16];
};
#define CHACHA_MINKEYLEN 16 #define CHACHA_MINKEYLEN 16
#define CHACHA_NONCELEN 8 #define CHACHA_NONCELEN 8