mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:07:34 +00:00
LibCrypto: Make GCM movable
This commit is contained in:
parent
f11f629731
commit
3d27550ab7
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ public:
|
|||
this->cipher().encrypt_block(key_block, key_block);
|
||||
key_block.bytes().copy_to(m_auth_key);
|
||||
|
||||
m_ghash = make<Authentication::GHash>(m_auth_key);
|
||||
m_ghash = Authentication::GHash(m_auth_key);
|
||||
}
|
||||
|
||||
virtual String class_name() const override
|
||||
|
@ -126,7 +126,7 @@ private:
|
|||
static constexpr auto block_size = T::BlockType::BlockSizeInBits / 8;
|
||||
u8 m_auth_key_storage[block_size];
|
||||
Bytes m_auth_key { m_auth_key_storage, block_size };
|
||||
OwnPtr<Authentication::GHash> m_ghash;
|
||||
Optional<Authentication::GHash> m_ghash;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue