Home
last modified time | relevance | path

Searched refs:ROTR (Results 1 – 3 of 3) sorted by relevance

/u-boot/lib/libavb/
A Davb_sha256.c14 #define ROTR(x, n) ((x >> n) | (x << ((sizeof(x) << 3) - n))) macro
19 #define SHA256_F1(x) (ROTR(x, 2) ^ ROTR(x, 13) ^ ROTR(x, 22))
20 #define SHA256_F2(x) (ROTR(x, 6) ^ ROTR(x, 11) ^ ROTR(x, 25))
21 #define SHA256_F3(x) (ROTR(x, 7) ^ ROTR(x, 18) ^ SHFR(x, 3))
22 #define SHA256_F4(x) (ROTR(x, 17) ^ ROTR(x, 19) ^ SHFR(x, 10))
A Davb_sha512.c14 #define ROTR(x, n) ((x >> n) | (x << ((sizeof(x) << 3) - n))) macro
19 #define SHA512_F1(x) (ROTR(x, 28) ^ ROTR(x, 34) ^ ROTR(x, 39))
20 #define SHA512_F2(x) (ROTR(x, 14) ^ ROTR(x, 18) ^ ROTR(x, 41))
21 #define SHA512_F3(x) (ROTR(x, 1) ^ ROTR(x, 8) ^ SHFR(x, 7))
22 #define SHA512_F4(x) (ROTR(x, 19) ^ ROTR(x, 61) ^ SHFR(x, 6))
/u-boot/lib/
A Dsha256.c82 #define ROTR(x,n) (SHR(x,n) | (x << (32 - n))) in sha256_process() macro
84 #define S0(x) (ROTR(x, 7) ^ ROTR(x,18) ^ SHR(x, 3)) in sha256_process()
85 #define S1(x) (ROTR(x,17) ^ ROTR(x,19) ^ SHR(x,10)) in sha256_process()
87 #define S2(x) (ROTR(x, 2) ^ ROTR(x,13) ^ ROTR(x,22)) in sha256_process()
88 #define S3(x) (ROTR(x, 6) ^ ROTR(x,11) ^ ROTR(x,25)) in sha256_process()

Completed in 4 milliseconds