summaryrefslogtreecommitdiff
path: root/sys/src/libsec
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-11-30 21:50:52 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2017-11-30 21:50:52 +0100
commitf03260bf257c34bd261493806b963feddd3df42b (patch)
tree4fbadc47446a263607f71ac6d3a9610338bc3b98 /sys/src/libsec
parent4cdd7049a6159f8d2ee863c08346fb08f51852b4 (diff)
libsec: make includes consistent for sha2block*.c
Diffstat (limited to 'sys/src/libsec')
-rw-r--r--sys/src/libsec/port/sha2block128.c4
-rw-r--r--sys/src/libsec/port/sha2block64.c3
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))