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

Method Num3072

src/crypto/muhash.cpp:278–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278Num3072::Num3072(const unsigned char (&data)[BYTE_SIZE]) {
279 for (int i = 0; i < LIMBS; ++i) {
280 if (sizeof(limb_t) == 4) {
281 this->limbs[i] = ReadLE32(data + 4 * i);
282 } else if (sizeof(limb_t) == 8) {
283 this->limbs[i] = ReadLE64(data + 8 * i);
284 }
285 }
286}
287
288void Num3072::ToBytes(unsigned char (&out)[BYTE_SIZE]) {
289 for (int i = 0; i < LIMBS; ++i) {

Callers

nothing calls this directly

Calls 2

ReadLE32Function · 0.85
ReadLE64Function · 0.85

Tested by

no test coverage detected