LibCrypto: Fix issues in the Crypto stack

This commit fixes up the following:
- HMAC should not reuse a single hasher when successively updating
- AES Key should not assume its user key is valid signed char*
- Mode should have a virtual destructor
And adds a RFC5246 padding mode, which is required for TLS
This commit is contained in:
AnotherTest 2020-04-29 19:17:47 +04:30 committed by Andreas Kling
commit f1578d7e9e
Notes: sideshowbarker 2024-07-19 07:05:16 +09:00
10 changed files with 93 additions and 49 deletions

View file

@ -36,6 +36,7 @@ namespace Cipher {
template <typename T>
class CBC : public Mode<T> {
public:
virtual ~CBC() {}
template <typename... Args>
explicit constexpr CBC<T>(Args... args)
: Mode<T>(args...)