MCPcopy Create free account
hub / github.com/ElementsProject/elements / SHA256D64

Function SHA256D64

src/crypto/sha256.cpp:820–852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

818}
819
820void SHA256D64(unsigned char* out, const unsigned char* in, size_t blocks)
821{
822 if (TransformD64_8way) {
823 while (blocks >= 8) {
824 TransformD64_8way(out, in);
825 out += 256;
826 in += 512;
827 blocks -= 8;
828 }
829 }
830 if (TransformD64_4way) {
831 while (blocks >= 4) {
832 TransformD64_4way(out, in);
833 out += 128;
834 in += 256;
835 blocks -= 4;
836 }
837 }
838 if (TransformD64_2way) {
839 while (blocks >= 2) {
840 TransformD64_2way(out, in);
841 out += 64;
842 in += 128;
843 blocks -= 2;
844 }
845 }
846 while (blocks) {
847 TransformD64(out, in);
848 out += 32;
849 in += 64;
850 --blocks;
851 }
852}

Callers 3

BOOST_AUTO_TEST_CASEFunction · 0.85
SHA256D64_1024Function · 0.85
ComputeMerkleRootFunction · 0.85

Calls 1

TransformD64Function · 0.85

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68