MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / setIV

Method setIV

thirdparty/pydes/pyDes.py:165–170  ·  view source on GitHub ↗

Will set the Initial Value, used in conjunction with CBC mode

(self, IV)

Source from the content-addressed store, hash-verified

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

Callers 3

setIVMethod · 0.45
encryptMethod · 0.45
decryptMethod · 0.45

Calls 1

_guardAgainstUnicodeMethod · 0.95

Tested by

no test coverage detected