Lines Matching refs:aHeaderLength
59 void AesCcm::Init(uint32_t aHeaderLength, in Init() argument
106 …mBlock[0] = (static_cast<uint8_t>((aHeaderLength != 0) << 6) | static_cast<uint8_t>(((aTagLength -… in Init()
125 if (aHeaderLength > 0) in Init()
128 if (aHeaderLength < (65536U - 256U)) in Init()
130 mBlock[blockLength++] ^= aHeaderLength >> 8; in Init()
131 mBlock[blockLength++] ^= aHeaderLength >> 0; in Init()
137 mBlock[blockLength++] ^= aHeaderLength >> 24; in Init()
138 mBlock[blockLength++] ^= aHeaderLength >> 16; in Init()
139 mBlock[blockLength++] ^= aHeaderLength >> 8; in Init()
140 mBlock[blockLength++] ^= aHeaderLength >> 0; in Init()
150 mHeaderLength = aHeaderLength; in Init()
159 void AesCcm::Header(const void *aHeader, uint32_t aHeaderLength) in Header() argument
163 OT_ASSERT(mHeaderCur + aHeaderLength <= mHeaderLength); in Header()
166 for (unsigned i = 0; i < aHeaderLength; i++) in Header()
177 mHeaderCur += aHeaderLength; in Header()