| 33 | #define sg1(x) (rotr32(x,17) ^ rotr32(x,19) ^ (x >> 10)) |
| 34 | |
| 35 | void sha256_init(sha256_context *ctx) |
| 36 | { |
| 37 | ctx->H[0] = 0x6a09e667; // Set the initial hash value. |
| 38 | ctx->H[1] = 0xbb67ae85; |
| 39 | ctx->H[2] = 0x3c6ef372; |
| 40 | ctx->H[3] = 0xa54ff53a; |
| 41 | ctx->H[4] = 0x510e527f; |
| 42 | ctx->H[5] = 0x9b05688c; |
| 43 | ctx->H[6] = 0x1f83d9ab; |
| 44 | ctx->H[7] = 0x5be0cd19; |
| 45 | ctx->Count = 0; // Processed data counter. |
| 46 | } |
| 47 | |
| 48 | |
| 49 | static void sha256_transform(sha256_context *ctx) |
no outgoing calls
no test coverage detected