Will set the Initial Value, used in conjunction with CBC mode
(self, IV)
| 163 | return self._iv |
| 164 | |
| 165 | def setIV(self, IV): |
| 166 | """Will set the Initial Value, used in conjunction with CBC mode""" |
| 167 | if not IV or len(IV) != self.block_size: |
| 168 | raise ValueError("Invalid Initial Value (IV), must be a multiple of " + str(self.block_size) + " bytes") |
| 169 | IV = self._guardAgainstUnicode(IV) |
| 170 | self._iv = IV |
| 171 | |
| 172 | def _padData(self, data, pad, padmode): |
| 173 | # Pad data depending on the mode |
no test coverage detected