Lines Matching refs:sha
70 int SHA224_Init(SHA256_CTX *sha) { in SHA224_Init() argument
71 memset(sha, 0, sizeof(SHA256_CTX)); in SHA224_Init()
72 sha->h[0] = 0xc1059ed8UL; in SHA224_Init()
73 sha->h[1] = 0x367cd507UL; in SHA224_Init()
74 sha->h[2] = 0x3070dd17UL; in SHA224_Init()
75 sha->h[3] = 0xf70e5939UL; in SHA224_Init()
76 sha->h[4] = 0xffc00b31UL; in SHA224_Init()
77 sha->h[5] = 0x68581511UL; in SHA224_Init()
78 sha->h[6] = 0x64f98fa7UL; in SHA224_Init()
79 sha->h[7] = 0xbefa4fa4UL; in SHA224_Init()
80 sha->md_len = SHA224_DIGEST_LENGTH; in SHA224_Init()
84 int SHA256_Init(SHA256_CTX *sha) { in SHA256_Init() argument
85 memset(sha, 0, sizeof(SHA256_CTX)); in SHA256_Init()
86 sha->h[0] = 0x6a09e667UL; in SHA256_Init()
87 sha->h[1] = 0xbb67ae85UL; in SHA256_Init()
88 sha->h[2] = 0x3c6ef372UL; in SHA256_Init()
89 sha->h[3] = 0xa54ff53aUL; in SHA256_Init()
90 sha->h[4] = 0x510e527fUL; in SHA256_Init()
91 sha->h[5] = 0x9b05688cUL; in SHA256_Init()
92 sha->h[6] = 0x1f83d9abUL; in SHA256_Init()
93 sha->h[7] = 0x5be0cd19UL; in SHA256_Init()
94 sha->md_len = SHA256_DIGEST_LENGTH; in SHA256_Init()