MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ToBytes

Method ToBytes

src/crypto/muhash.cpp:526–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524}
525
526void Num3072::ToBytes(unsigned char (&out)[BYTE_SIZE]) {
527 for (int i = 0; i < LIMBS; ++i) {
528 if (sizeof(limb_t) == 4) {
529 WriteLE32(out + i * 4, this->limbs[i]);
530 } else if (sizeof(limb_t) == 8) {
531 WriteLE64(out + i * 8, this->limbs[i]);
532 }
533 }
534}
535
536Num3072 MuHash3072::ToNum3072(std::span<const unsigned char> in) {
537 unsigned char tmp[Num3072::BYTE_SIZE];

Callers 8

FinalizeMethod · 0.45
FUZZ_TARGETFunction · 0.45
BlockCheckedMethod · 0.45
test_kernel.cppFile · 0.45
CheckHandleFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
chainman_reindex_testFunction · 0.45

Calls 2

WriteLE32Function · 0.85
WriteLE64Function · 0.85

Tested by 6

FUZZ_TARGETFunction · 0.36
BlockCheckedMethod · 0.36
CheckHandleFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
chainman_reindex_testFunction · 0.36