| 111 | } |
| 112 | |
| 113 | void CBCCommon::decrypt(uint8_t* output, const uint8_t* input, size_t len) |
| 114 | { |
| 115 | uint8_t posn; |
| 116 | while (len >= 16) { |
| 117 | blockCipher->decryptBlock(temp, input); |
| 118 | for (posn = 0; posn < 16; ++posn) { |
| 119 | uint8_t in = *input++; |
| 120 | *output++ = temp[posn] ^ iv[posn]; |
| 121 | iv[posn] = in; |
| 122 | } |
| 123 | len -= 16; |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | void CBCCommon::clear() |
| 128 | { |
nothing calls this directly
no outgoing calls
no test coverage detected