SHA_Ch
(((x) & ((y) ^ (z))) ^ (z))
SHA_Maj
(((x) & ((y) | (z))) | ((y) & (z)))
SHA_Parity
((x) ^ (y) ^ (z))
SHA1_ROTL
(((word) << (bits)) | ((word) >> (32-(bits))))
Define the SHA1 circular left shift macro.
SHA1AddLength
(_sha1_add_temp = (context)->Length_Low, \
(context)->Corrupted = \
(((context)->Length_Low += (length)) < _sha1_add_temp) && \
(++(context)->Length_High == 0) ? SHERR_INVAL \
: (context)->Corrupted )
SHA256_SHR
((word) >> (bits))
SHA256_ROTL
(((word) << (bits)) | ((word) >> (32-(bits))))
SHA256_ROTR
(((word) >> (bits)) | ((word) << (32-(bits))))
SHA256_SIGMA0
(SHA256_ROTR( 2,word) ^ SHA256_ROTR(13,word) ^ SHA256_ROTR(22,word))
SHA256_SIGMA1
(SHA256_ROTR( 6,word) ^ SHA256_ROTR(11,word) ^ SHA256_ROTR(25,word))
SHA256_sigma0
(SHA256_ROTR( 7,word) ^ SHA256_ROTR(18,word) ^ SHA256_SHR( 3,word))
SHA256_sigma1
(SHA256_ROTR(17,word) ^ SHA256_ROTR(19,word) ^ SHA256_SHR(10,word))
SHA224_256AddLength
(_sha224_add_temp = (context)->Length_Low, (context)->Corrupted = \
(((context)->Length_Low += (length)) < _sha224_add_temp) && \
(++(context)->Length_High == 0) ? SHERR_INVAL : \
(context)->Corrupted )
SHA512_SHR
(((uint64_t)(word)) >> (bits))
SHA512_ROTR
((((uint64_t)(word)) >> (bits)) | \
(((uint64_t)(word)) << (64-(bits))))
SHA512_SIGMA0
(SHA512_ROTR(28,word) ^ SHA512_ROTR(34,word) ^ SHA512_ROTR(39,word))
SHA512_SIGMA1
(SHA512_ROTR(14,word) ^ SHA512_ROTR(18,word) ^ SHA512_ROTR(41,word))
SHA512_sigma0
(SHA512_ROTR( 1,word) ^ SHA512_ROTR( 8,word) ^ SHA512_SHR( 7,word))
SHA512_sigma1
(SHA512_ROTR(19,word) ^ SHA512_ROTR(61,word) ^ SHA512_SHR( 6,word))
SHA384_512AddLength
(addTemp = context->Length_Low, context->Corrupted = \
((context->Length_Low += length) < addTemp) && \
(++context->Length_High == 0) ? SHERR_INVAL : \
(context)->Corrupted)
SHAversion
shmem__alg__sha_8h_1a114d120352b4dfa40ae92c106eee701ca27028cc8b5d6f0a1cb3030c180019abcpublicSHA1 ( (1 << 9) | (1 << 0) )shmem__alg__sha_8h_1a114d120352b4dfa40ae92c106eee701cabc33a360f917f3102da72a29f2b0ecdepublicSHA224 ( (1 << 9) | (1 << 2) )shmem__alg__sha_8h_1a114d120352b4dfa40ae92c106eee701cac7716785728694693ec29eccd5ffa0e1publicSHA256 ( (1 << 9) | (1 << 3) )shmem__alg__sha_8h_1a114d120352b4dfa40ae92c106eee701cab862ee017e3edbfe0d48917a2a7fca68publicSHA384 ( (1 << 9) | (1 << 4) )shmem__alg__sha_8h_1a114d120352b4dfa40ae92c106eee701ca1a15fbc29a9b8189fa8adc19e45e9178publicSHA512 ( (1 << 9) | (1 << 5) )
(static)
uint32_t _sha1_add_temp
(static)
uint32_t _sha224_add_temp
(static)
uint64_t addTemp