mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:07:34 +00:00
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:
parent
7adb93ede9
commit
f1578d7e9e
10 changed files with 93 additions and 49 deletions
|
@ -51,6 +51,8 @@ namespace Hash {
|
|||
virtual DigestType peek() = 0;
|
||||
virtual DigestType digest() = 0;
|
||||
|
||||
virtual void reset() = 0;
|
||||
|
||||
virtual String class_name() const = 0;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue