mirror of
https://github.com/taigrr/arduinolibs
synced 2025-01-18 04:33:12 -08:00
Recommended tag and IV sizes in GCM were backwards
This commit is contained in:
parent
e046533aff
commit
dadfcf55f2
@ -65,13 +65,13 @@ size_t GCMCommon::keySize() const
|
||||
|
||||
size_t GCMCommon::ivSize() const
|
||||
{
|
||||
return 16;
|
||||
// The GCM specification recommends an IV size of 96 bits.
|
||||
return 12;
|
||||
}
|
||||
|
||||
size_t GCMCommon::tagSize() const
|
||||
{
|
||||
// The GCM specification recommends an IV size of 96 bits.
|
||||
return 12;
|
||||
return 16;
|
||||
}
|
||||
|
||||
bool GCMCommon::setKey(const uint8_t *key, size_t len)
|
||||
|
Loading…
x
Reference in New Issue
Block a user