| 730 | //} |
| 731 | |
| 732 | void CSHA256::Finalize(unsigned char hash[OUTPUT_SIZE]) |
| 733 | { |
| 734 | static const unsigned char pad[64] = {0x80}; |
| 735 | unsigned char sizedesc[8]; |
| 736 | WriteBE64(sizedesc, bytes << 3); |
| 737 | Write(pad, 1 + ((119 - (bytes % 64)) % 64)); |
| 738 | Write(sizedesc, 8); |
| 739 | Midstate(hash, NULL, NULL); |
| 740 | } |
| 741 | |
| 742 | void CSHA256::Midstate(unsigned char hash[OUTPUT_SIZE], uint64_t* len, unsigned char *buffer) |
| 743 | { |
nothing calls this directly
no test coverage detected