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

Method ToBytes

src/crypto/muhash.cpp:288–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288void Num3072::ToBytes(unsigned char (&out)[BYTE_SIZE]) {
289 for (int i = 0; i < LIMBS; ++i) {
290 if (sizeof(limb_t) == 4) {
291 WriteLE32(out + i * 4, this->limbs[i]);
292 } else if (sizeof(limb_t) == 8) {
293 WriteLE64(out + i * 8, this->limbs[i]);
294 }
295 }
296}
297
298Num3072 MuHash3072::ToNum3072(Span<const unsigned char> in) {
299 unsigned char tmp[Num3072::BYTE_SIZE];

Callers 2

FinalizeMethod · 0.45
FormatPAKListFunction · 0.45

Calls 2

WriteLE64Function · 0.85
WriteLE32Function · 0.70

Tested by

no test coverage detected