GHash now uses a full-size key for the cipher

This commit is contained in:
Leonetienne 2022-05-22 14:30:24 +02:00
parent fe6ec11672
commit bedfc91e04
No known key found for this signature in database
GPG Key ID: C33879CD92E9708C

View File

@ -9,7 +9,7 @@ namespace Leonetienne::GCrypt {
cipher( cipher(
// Can't use Key::FromPassword here, because it depends on GHash. // Can't use Key::FromPassword here, because it depends on GHash.
// Instead use a hardcoded key. // Instead use a hardcoded key.
Key(StringToBitblock("CfRtNdMTP4Y5CWRd")), Key(StringToBitblock("nsoCZfvdqpRkeVTt9wzvPR3TT26peOW9E2kTHh3pdPCq2M7BpskvUljJHSrobUTI")),
GCipher::DIRECTION::ENCIPHER GCipher::DIRECTION::ENCIPHER
) { ) {
block = InitializationVector(StringToBitblock("3J7IipfQTDJbO8jtasz9PgWui6faPaEMOuVuAqyhB1S2CRcLw5caawewgDUEG1WN")); block = InitializationVector(StringToBitblock("3J7IipfQTDJbO8jtasz9PgWui6faPaEMOuVuAqyhB1S2CRcLw5caawewgDUEG1WN"));