libsec: make includes consistent for sha2block*.c
This commit is contained in:
parent
4cdd7049a6
commit
f03260bf25
2 changed files with 3 additions and 4 deletions
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue