Home
last modified time | relevance | path

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

/openbmc/phosphor-net-ipmid/
H A Dcrypt_algo.cpp72 auto paddingLen = AESCBC128BlockSize - ((payloadLen + 1) & 0xF); in encryptPayload() local
79 payload.resize(payloadLen + paddingLen + 1); in encryptPayload()
87 if (0 != paddingLen) in encryptPayload()
90 payload.begin() + payloadLen + paddingLen, 1); in encryptPayload()
93 payload.back() = paddingLen; in encryptPayload()
H A Dmessage_parsers.cpp330 auto paddingLen = 4 - ((payloadLen + 2) & 3); in verifyPacketIntegrity() local
332 auto sessTrailerPos = sizeof(SessionHeader_t) + payloadLen + paddingLen; in verifyPacketIntegrity()
345 if (trailer->padLength != paddingLen) in verifyPacketIntegrity()
380 auto paddingLen = 4 - ((payloadLen + 2) & 3); in addIntegrityData() local
381 packet.insert(packet.end(), paddingLen, 0xFF); in addIntegrityData()
388 trailer->padLength = paddingLen; in addIntegrityData()