shithub: riscv

Download patch

ref: f03260bf257c34bd261493806b963feddd3df42b
parent: 4cdd7049a6159f8d2ee863c08346fb08f51852b4
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Nov 30 16:50:52 EST 2017

libsec: make includes consistent for sha2block*.c

--- 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))
--- 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))