| 83 | } |
| 84 | |
| 85 | void sha256_init(SHA256_CTX *ctx) |
| 86 | { |
| 87 | ctx->datalen = 0; |
| 88 | ctx->bitlen = 0; |
| 89 | ctx->state[0] = 0x6a09e667; |
| 90 | ctx->state[1] = 0xbb67ae85; |
| 91 | ctx->state[2] = 0x3c6ef372; |
| 92 | ctx->state[3] = 0xa54ff53a; |
| 93 | ctx->state[4] = 0x510e527f; |
| 94 | ctx->state[5] = 0x9b05688c; |
| 95 | ctx->state[6] = 0x1f83d9ab; |
| 96 | ctx->state[7] = 0x5be0cd19; |
| 97 | } |
| 98 | |
| 99 | void sha256_update(SHA256_CTX *ctx, const BYTE data[], size_t len) |
| 100 | { |
no outgoing calls
no test coverage detected