| /OK3568_Linux_fs/external/security/librkcrypto/test/c_mode/ |
| H A D | hash_sha256.c | 127 #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 D | hash_sha512.c | 201 #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 D | sha512.c | 165 #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 D | sha256.c | 90 #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 D | avb_sha512.c | 42 #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 D | avb_sha256.c | 67 #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 D | sha2_impl.c | 46 #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 D | resource_tool.c | 358 #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 D | resource_tool.c | 358 #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 D | chacha-core.S | 59 #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 D | sha512-core.S_shipped | 214 @ 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))
|