blockSize
const func integer: blockSize (BLOWFISH)
-
Block size used by the Blowfish block cipher.
- Returns:
- the block size used by the Blowfish cipher.
setBlowfishKey
const func blowfishState: setBlowfishKey (in string: blowfishKey)
-
Set key and initialization vector for the Blowfish block cipher.
- Parameters:
- blowfishKey - The key to be used for Blowfish.
- Returns:
- the Blowfish cipher state.
setCipherKey
const func cipherState: setCipherKey (BLOWFISH, in string: cipherKey,
in string: initializationVector)
-
Set key and initialization vector for the Blowfish block cipher.
- Parameters:
- cipherKey - The key to be used for Blowfish.
- initializationVector - The initialisation vector (IV) for Blowfish.
- Returns:
- the initial cipherState of a Blowfish cipher.
encode
const func string: encode (inout blowfishState: state, in string: plaintext)
-
Encode a string with the Blowfish block cipher.
- Returns:
- the encoded string.
decode
const func string: decode (inout blowfishState: state, in string: encoded)
-
Decode a string with the Blowfish block cipher.
- Returns:
- the decoded string.