diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-11-30 21:50:52 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-11-30 21:50:52 +0100 |
commit | f03260bf257c34bd261493806b963feddd3df42b (patch) | |
tree | 4fbadc47446a263607f71ac6d3a9610338bc3b98 /sys/src/libsec | |
parent | 4cdd7049a6159f8d2ee863c08346fb08f51852b4 (diff) |
libsec: make includes consistent for sha2block*.c
Diffstat (limited to 'sys/src/libsec')
-rw-r--r-- | sys/src/libsec/port/sha2block128.c | 4 | ||||
-rw-r--r-- | sys/src/libsec/port/sha2block64.c | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sys/src/libsec/port/sha2block128.c b/sys/src/libsec/port/sha2block128.c index 6bf662a41..728afa8cd 100644 --- a/sys/src/libsec/port/sha2block128.c +++ b/sys/src/libsec/port/sha2block128.c @@ -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)) diff --git a/sys/src/libsec/port/sha2block64.c b/sys/src/libsec/port/sha2block64.c index 144ce5f26..aec7820ef 100644 --- a/sys/src/libsec/port/sha2block64.c +++ b/sys/src/libsec/port/sha2block64.c @@ -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)) |