mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
LibCrypto: Require intent parameter in CTR constructor
This was preventing clang from building.
This commit is contained in:
parent
29e4dc7634
commit
72abf3491b
2 changed files with 4 additions and 2 deletions
|
@ -66,7 +66,7 @@ public:
|
|||
// FIXME: More than 2^20 bytes cannot be generated without refreshing the key.
|
||||
ASSERT(n < (1 << 20));
|
||||
|
||||
typename CipherType::CTRMode cipher(m_key, KeySize);
|
||||
typename CipherType::CTRMode cipher(m_key, KeySize, Crypto::Cipher::Intent::Encryption);
|
||||
|
||||
Bytes buffer_span { buffer, n };
|
||||
auto counter_span = m_counter.bytes();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue