| 96 | } |
| 97 | |
| 98 | static KeyType ToKey(std::span<const std::byte, KEY_SIZE> key_span) |
| 99 | { |
| 100 | KeyType key{}; |
| 101 | std::memcpy(&key, key_span.data(), KEY_SIZE); |
| 102 | return key; |
| 103 | } |
| 104 | |
| 105 | static void XorWord(std::span<std::byte> target, KeyType key) |
| 106 | { |