| 98 | } |
| 99 | |
| 100 | bool 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 | } |
no test coverage detected