Home
last modified time | relevance | path

Searched refs:tagLength (Results 1 – 2 of 2) sorted by relevance

/openthread-latest/tests/unit/
Dtest_aes.cpp64 uint8_t tagLength = 8; in TestMacBeaconFrame() local
73 aesCcm.Init(headerLength, payloadLength, tagLength, nonce, sizeof(nonce)); in TestMacBeaconFrame()
75 VerifyOrQuit(aesCcm.GetTagLength() == tagLength); in TestMacBeaconFrame()
80 aesCcm.Init(headerLength, payloadLength, tagLength, nonce, sizeof(nonce)); in TestMacBeaconFrame()
82 VerifyOrQuit(aesCcm.GetTagLength() == tagLength); in TestMacBeaconFrame()
/openthread-latest/src/core/mac/
Dmac_frame.cpp1398 uint8_t tagLength; in ProcessTransmitAesCcm()
1409 tagLength = GetFooterLength() - GetFcsSize(); in ProcessTransmitAesCcm()
1411 aesCcm.Init(GetHeaderLength(), GetPayloadLength(), tagLength, nonce, sizeof(nonce)); in ProcessTransmitAesCcm()
1534 uint8_t tagLength; in ProcessReceiveAesCcm()
1545 tagLength = GetFooterLength() - GetFcsSize(); in ProcessReceiveAesCcm()
1547 aesCcm.Init(GetHeaderLength(), GetPayloadLength(), tagLength, nonce, sizeof(nonce)); in ProcessReceiveAesCcm()
1559 VerifyOrExit(memcmp(tag, GetFooter(), tagLength) == 0); in ProcessReceiveAesCcm()