Lines Matching defs:macSize
11721 unsigned int macSize)
11724 const unsigned int overhead = 1 /* padding length byte */ + macSize;
11746 ssl_RemoveTLSCBCPadding(sslBuffer *plaintext, unsigned int macSize)
11749 const unsigned int overhead = 1 /* padding length byte */ + macSize;
11803 * originalLength >= macSize
11804 * macSize <= MAX_MAC_LENGTH
11805 * plaintext->len >= macSize
11811 unsigned int macSize)
11817 unsigned macStart = macEnd - macSize;
11824 if (originalLength > macSize + 255 + 1)
11825 scanStart = originalLength - (macSize + 255 + 1);
11827 /* divSpoiler contains a multiple of macSize that is used to cause the
11831 * The aim of right-shifting macSize is so that the compiler doesn't
11833 * to prove that macSize is always even, which I hope is beyond it. */
11834 divSpoiler = macSize >> 1;
11836 rotateOffset = (divSpoiler + macStart - scanStart) % macSize;
11838 memset(rotatedMac, 0, macSize);
11840 for (j = 0; j < macSize && i < originalLength; i++, j++) {
11851 memset(out, 0, macSize);
11852 for (i = 0; i < macSize; i++) {
11854 (divSpoiler + macSize - rotateOffset + i) % macSize;
11855 for (j = 0; j < macSize; j++) {
12101 const unsigned int macSize = crSpec->mac_size;
12105 plaintext, blockSize, macSize));
12108 plaintext, macSize));