Home
last modified time | relevance | path

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

/rk3399_rockchip-uboot/lib/
H A Dsha512.c165 #define ROTR(x,n) (SHR(x,n) | (x << (64 - n))) in sha512_process() macro
167 #define S0(x) (ROTR(x, 1) ^ ROTR(x, 8) ^ SHR(x, 7)) in sha512_process()
168 #define S1(x) (ROTR(x,19) ^ ROTR(x,61) ^ SHR(x, 6)) in sha512_process()
170 #define S2(x) (ROTR(x,28) ^ ROTR(x,34) ^ ROTR(x,39)) in sha512_process()
171 #define S3(x) (ROTR(x,14) ^ ROTR(x,18) ^ ROTR(x,41)) in sha512_process()
H A Dsha256.c108 #define ROTR(x,n) (SHR(x,n) | (x << (32 - n))) in sha256_process_one() macro
110 #define S0(x) (ROTR(x, 7) ^ ROTR(x,18) ^ SHR(x, 3)) in sha256_process_one()
111 #define S1(x) (ROTR(x,17) ^ ROTR(x,19) ^ SHR(x,10)) in sha256_process_one()
113 #define S2(x) (ROTR(x, 2) ^ ROTR(x,13) ^ ROTR(x,22)) in sha256_process_one()
114 #define S3(x) (ROTR(x, 6) ^ ROTR(x,11) ^ ROTR(x,25)) in sha256_process_one()
/rk3399_rockchip-uboot/lib/avb/libavb/
H A Davb_sha512.c42 #define ROTR(x, n) ((x >> n) | (x << ((sizeof(x) << 3) - n))) macro
47 #define SHA512_F1(x) (ROTR(x, 28) ^ ROTR(x, 34) ^ ROTR(x, 39))
48 #define SHA512_F2(x) (ROTR(x, 14) ^ ROTR(x, 18) ^ ROTR(x, 41))
49 #define SHA512_F3(x) (ROTR(x, 1) ^ ROTR(x, 8) ^ SHFR(x, 7))
50 #define SHA512_F4(x) (ROTR(x, 19) ^ ROTR(x, 61) ^ SHFR(x, 6))
H A Davb_sha256.c59 #define ROTR(x, n) ((x >> n) | (x << ((sizeof(x) << 3) - n))) macro
64 #define SHA256_F1(x) (ROTR(x, 2) ^ ROTR(x, 13) ^ ROTR(x, 22))
65 #define SHA256_F2(x) (ROTR(x, 6) ^ ROTR(x, 11) ^ ROTR(x, 25))
66 #define SHA256_F3(x) (ROTR(x, 7) ^ ROTR(x, 18) ^ SHFR(x, 3))
67 #define SHA256_F4(x) (ROTR(x, 17) ^ ROTR(x, 19) ^ SHFR(x, 10))
/rk3399_rockchip-uboot/tools/rockchip/
H A Dresource_tool.c358 #define ROTR(x,n) (SHR(x,n) | (x << (32 - n))) in sha256_process() macro
360 #define S0(x) (ROTR(x, 7) ^ ROTR(x,18) ^ SHR(x, 3)) in sha256_process()
361 #define S1(x) (ROTR(x,17) ^ ROTR(x,19) ^ SHR(x,10)) in sha256_process()
363 #define S2(x) (ROTR(x, 2) ^ ROTR(x,13) ^ ROTR(x,22)) in sha256_process()
364 #define S3(x) (ROTR(x, 6) ^ ROTR(x,11) ^ ROTR(x,25)) in sha256_process()
473 #undef ROTR