summaryrefslogtreecommitdiff
path: root/Libraries/LibCrypto
diff options
context:
space:
mode:
authorLuke <luke.wilde@live.co.uk>2020-11-27 20:13:55 +0000
committerAndreas Kling <kling@serenityos.org>2020-11-29 20:22:56 +0100
commit72abf3491bebae7be76d436d16581668a78fe130 (patch)
treeca17d90c0c051374160f26add0b224949c4ccd06 /Libraries/LibCrypto
parent29e4dc76341a4592682271d3955efe992967c3e7 (diff)
downloadserenity-72abf3491bebae7be76d436d16581668a78fe130.zip
LibCrypto: Require intent parameter in CTR constructor
This was preventing clang from building.
Diffstat (limited to 'Libraries/LibCrypto')
-rw-r--r--Libraries/LibCrypto/Cipher/Mode/CTR.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Libraries/LibCrypto/Cipher/Mode/CTR.h b/Libraries/LibCrypto/Cipher/Mode/CTR.h
index 4525e48d43..e1db3ce0c2 100644
--- a/Libraries/LibCrypto/Cipher/Mode/CTR.h
+++ b/Libraries/LibCrypto/Cipher/Mode/CTR.h
@@ -113,8 +113,10 @@ public:
// Must intercept `Intent`, because AES must always be set to
// Encryption, even when decrypting AES-CTR.
// TODO: How to deal with ciphers that take different arguments?
+ // FIXME: Add back the default intent parameter once clang-11 is the default in GitHub Actions.
+ // Once added back, remove the parameter where it's constructed in get_random_bytes in Kernel/Random.h.
template<typename KeyType, typename... Args>
- explicit constexpr CTR(const KeyType& user_key, size_t key_bits, Intent = Intent::Encryption, Args... args)
+ explicit constexpr CTR(const KeyType& user_key, size_t key_bits, Intent, Args... args)
: Mode<T>(user_key, key_bits, Intent::Encryption, args...)
{
}