crypto/chacha: Split header into separate _chacha.h

Sponsored by:	Dell EMC Isilon
This commit is contained in:
Conrad Meyer 2018-10-20 22:12:53 +00:00
parent 767bc248de
commit addfc6364f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339498
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
#include <sys/types.h>
struct chacha_ctx {
u_int input[16];
};
#include <crypto/chacha20/_chacha.h>
#define CHACHA_MINKEYLEN 16
#define CHACHA_NONCELEN 8