Home
last modified time | relevance | path

Searched refs:SHR (Results 1 – 2 of 2) sorted by relevance

/openthread-latest/third_party/mbedtls/repo/library/
Dsha256.c455 #define SHR(x, n) (((x) & 0xFFFFFFFF) >> (n)) macro
456 #define ROTR(x, n) (SHR(x, n) | ((x) << (32 - (n))))
458 #define S0(x) (ROTR(x, 7) ^ ROTR(x, 18) ^ SHR(x, 3))
459 #define S1(x) (ROTR(x, 17) ^ ROTR(x, 19) ^ SHR(x, 10))
Dsha512.c610 #define SHR(x, n) ((x) >> (n)) in mbedtls_internal_sha512_process_c() macro
611 #define ROTR(x, n) (SHR((x), (n)) | ((x) << (64 - (n)))) in mbedtls_internal_sha512_process_c()
613 #define S0(x) (ROTR(x, 1) ^ ROTR(x, 8) ^ SHR(x, 7)) in mbedtls_internal_sha512_process_c()
614 #define S1(x) (ROTR(x, 19) ^ ROTR(x, 61) ^ SHR(x, 6)) in mbedtls_internal_sha512_process_c()