mirror of
https://github.com/espressif/openthread.git
synced 2026-08-09 20:27:47 +00:00
[aes-ccm] add lower-bound check for tag length (#2008)
This commit is contained in:
@@ -69,7 +69,7 @@ void otCryptoAesCcm(
|
||||
assert((aKey != NULL) && (aNonce != NULL) && (aPlainText != NULL) && (aCipherText != NULL) && (aTag != NULL));
|
||||
|
||||
SuccessOrExit(aesCcm.SetKey(aKey, aKeyLength));
|
||||
aesCcm.Init(aHeaderLength, aLength, aTagLength, aNonce, aNonceLength);
|
||||
SuccessOrExit(aesCcm.Init(aHeaderLength, aLength, aTagLength, aNonce, aNonceLength));
|
||||
|
||||
if (aHeaderLength != 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user