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

Method Seek

src/crypto/chacha20.cpp:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void ChaCha20Aligned::Seek(Nonce96 nonce, uint32_t block_counter) noexcept
52{
53 input[8] = block_counter;
54 input[9] = nonce.first;
55 input[10] = nonce.second;
56 input[11] = nonce.second >> 32;
57}
58
59inline void ChaCha20Aligned::Keystream(std::span<std::byte> output) noexcept
60{

Callers 15

NeedsUpgradeMethod · 0.45
CursorMethod · 0.45
SeekImplMethod · 0.45
CryptMethod · 0.45
EncryptMethod · 0.45
DecryptMethod · 0.45
KeystreamMethod · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
TestChaCha20Method · 0.45
TestFSChaCha20Method · 0.45
FUZZ_TARGETFunction · 0.45
VerifyIteratorFunction · 0.45

Calls

no outgoing calls

Tested by 7

BOOST_AUTO_TEST_CASEFunction · 0.36
TestChaCha20Method · 0.36
TestFSChaCha20Method · 0.36
FUZZ_TARGETFunction · 0.36
VerifyIteratorFunction · 0.36
FUZZ_TARGETFunction · 0.36
ChaCha20SplitFuzzFunction · 0.36