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

Method Decrypt

src/bip324.cpp:100–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100bool BIP324Cipher::Decrypt(std::span<const std::byte> input, std::span<const std::byte> aad, bool& ignore, std::span<std::byte> contents) noexcept
101{
102 assert(input.size() + LENGTH_LEN == contents.size() + EXPANSION);
103
104 std::byte header[HEADER_LEN];
105 if (!m_recv_p_cipher->Decrypt(input, aad, header, contents)) return false;
106
107 ignore = (header[0] & IGNORE_BIT) == IGNORE_BIT;
108 return true;
109}

Callers 1

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected