Home
last modified time | relevance | path

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

/OK3568_Linux_fs/external/security/librkcrypto/test/c_mode/
H A Dhash_sha256.c127 #define ROTR(x,n) (SHR(x,n) | (x << (32 - n))) macro
129 #define S0(x) (ROTR(x, 7) ^ ROTR(x,18) ^ SHR(x, 3))
130 #define S1(x) (ROTR(x,17) ^ ROTR(x,19) ^ SHR(x,10))
132 #define S2(x) (ROTR(x, 2) ^ ROTR(x,13) ^ ROTR(x,22))
133 #define S3(x) (ROTR(x, 6) ^ ROTR(x,11) ^ ROTR(x,25))
H A Dhash_sha512.c201 #define ROTR(x,n) (SHR(x,n) | (x << (64 - n))) in mbedtls_sha512_process() macro
203 #define S0(x) (ROTR(x, 1) ^ ROTR(x, 8) ^ SHR(x, 7)) in mbedtls_sha512_process()
204 #define S1(x) (ROTR(x,19) ^ ROTR(x,61) ^ SHR(x, 6)) in mbedtls_sha512_process()
206 #define S2(x) (ROTR(x,28) ^ ROTR(x,34) ^ ROTR(x,39)) in mbedtls_sha512_process()
207 #define S3(x) (ROTR(x,14) ^ ROTR(x,18) ^ ROTR(x,41)) in mbedtls_sha512_process()
/OK3568_Linux_fs/u-boot/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.c90 #define ROTR(x,n) (SHR(x,n) | (x << (32 - n))) in sha256_process_one() macro
92 #define S0(x) (ROTR(x, 7) ^ ROTR(x,18) ^ SHR(x, 3)) in sha256_process_one()
93 #define S1(x) (ROTR(x,17) ^ ROTR(x,19) ^ SHR(x,10)) in sha256_process_one()
95 #define S2(x) (ROTR(x, 2) ^ ROTR(x,13) ^ ROTR(x,22)) in sha256_process_one()
96 #define S3(x) (ROTR(x, 6) ^ ROTR(x,11) ^ ROTR(x,25)) in sha256_process_one()
/OK3568_Linux_fs/u-boot/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.c67 #define ROTR(x, n) ((x >> n) | (x << ((sizeof(x) << 3) - n))) macro
72 #define SHA256_F1(x) (ROTR(x, 2) ^ ROTR(x, 13) ^ ROTR(x, 22))
73 #define SHA256_F2(x) (ROTR(x, 6) ^ ROTR(x, 11) ^ ROTR(x, 25))
74 #define SHA256_F3(x) (ROTR(x, 7) ^ ROTR(x, 18) ^ SHFR(x, 3))
75 #define SHA256_F4(x) (ROTR(x, 17) ^ ROTR(x, 19) ^ SHFR(x, 10))
/OK3568_Linux_fs/external/security/rk_tee_user/v2/ta/crypt/
H A Dsha2_impl.c46 #define ROTR(x, n) ((x >> n) | (x << ((sizeof(x) << 3) - n))) macro
51 #define SHA256_F1(x) (ROTR(x, 2) ^ ROTR(x, 13) ^ ROTR(x, 22))
52 #define SHA256_F2(x) (ROTR(x, 6) ^ ROTR(x, 11) ^ ROTR(x, 25))
53 #define SHA256_F3(x) (ROTR(x, 7) ^ ROTR(x, 18) ^ SHFR(x, 3))
54 #define SHA256_F4(x) (ROTR(x, 17) ^ ROTR(x, 19) ^ SHFR(x, 10))
/OK3568_Linux_fs/kernel/scripts/
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
/OK3568_Linux_fs/u-boot/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
/OK3568_Linux_fs/kernel/arch/mips/crypto/
H A Dchacha-core.S59 #define ROTR(n) rotr n, 24 macro
68 #define ROTR(n) macro
376 ROTR(SAVED_X)
/OK3568_Linux_fs/kernel/arch/arm/crypto/
H A Dsha512-core.S_shipped214 @ Sigma1(x) (ROTR((x),14) ^ ROTR((x),18) ^ ROTR((x),41))
272 @ Sigma0(x) (ROTR((x),28) ^ ROTR((x),34) ^ ROTR((x),39))
311 @ sigma0(x) (ROTR((x),1) ^ ROTR((x),8) ^ ((x)>>7))
328 @ sigma1(x) (ROTR((x),19) ^ ROTR((x),61) ^ ((x)>>6))
354 @ Sigma1(x) (ROTR((x),14) ^ ROTR((x),18) ^ ROTR((x),41))
412 @ Sigma0(x) (ROTR((x),28) ^ ROTR((x),34) ^ ROTR((x),39))