MCPcopy Create free account
hub / github.com/albertobsd/keyhunt / Set32Bytes

Method Set32Bytes

secp256k1/Int.cpp:295–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295void Int::Set32Bytes(unsigned char *bytes) {
296
297 CLEAR();
298 uint64_t *ptr = (uint64_t *)bytes;
299 bits64[3] = _byteswap_uint64(ptr[0]);
300 bits64[2] = _byteswap_uint64(ptr[1]);
301 bits64[1] = _byteswap_uint64(ptr[2]);
302 bits64[0] = _byteswap_uint64(ptr[3]);
303
304}
305
306void Int::Get32Bytes(unsigned char *buff) {
307

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected