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

Method Seek

src/crypto/chacha20.cpp:68–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void ChaCha20::Seek(uint64_t pos)
69{
70 input[12] = pos;
71 input[13] = pos >> 32;
72}
73
74void ChaCha20::Keystream(unsigned char* c, size_t bytes)
75{

Callers 14

CursorMethod · 0.45
LoadBlockIndexGutsMethod · 0.45
UpgradeMethod · 0.45
CryptMethod · 0.45
GetLengthMethod · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
TestChaCha20Function · 0.45
TestChaCha20Poly1305AEADFunction · 0.45
FUZZ_TARGETFunction · 0.45
FUZZ_TARGETFunction · 0.45

Calls

no outgoing calls

Tested by 5

BOOST_AUTO_TEST_CASEFunction · 0.36
TestChaCha20Function · 0.36
TestChaCha20Poly1305AEADFunction · 0.36
FUZZ_TARGETFunction · 0.36
FUZZ_TARGETFunction · 0.36