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
|
size_t GCMCommon::ivSize() const
|
||||||
{
|
{
|
||||||
return 16;
|
// The GCM specification recommends an IV size of 96 bits.
|
||||||
|
return 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t GCMCommon::tagSize() const
|
size_t GCMCommon::tagSize() const
|
||||||
{
|
{
|
||||||
// The GCM specification recommends an IV size of 96 bits.
|
return 16;
|
||||||
return 12;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GCMCommon::setKey(const uint8_t *key, size_t len)
|
bool GCMCommon::setKey(const uint8_t *key, size_t len)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user