libsec: make includes consistent for sha2block*.c

This commit is contained in:
cinap_lenrek 2017-11-30 21:50:52 +01:00
parent 4cdd7049a6
commit f03260bf25
2 changed files with 3 additions and 4 deletions

View file

@ -4,8 +4,8 @@
* note: the following upper and lower case macro names are distinct
* and reflect the functions defined in FIPS pub. 180-2.
*/
#include <u.h>
#include <libc.h>
#include "os.h"
#define ROTR(x,n) (((x) >> (n)) | ((x) << (64-(n))))
#define sigma0(x) (ROTR((x),1) ^ ROTR((x),8) ^ ((x) >> 7))

View file

@ -5,8 +5,7 @@
* and reflect the functions defined in FIPS pub. 180-2.
*/
#include <u.h>
#include <libc.h>
#include "os.h"
#define ROTR(x,n) (((x) >> (n)) | ((x) << (32-(n))))
#define sigma0(x) (ROTR((x),7) ^ ROTR((x),18) ^ ((x) >> 3))