Libraries
Blowfish Source Code
 previous   up   next 

Types
blowfishState
cipherState implementation type describing the state of a Blowfish cipher.

blowfishState

const type: blowfishState

cipherState implementation type describing the state of a Blowfish cipher. The data is encrypted / decrypted with the Blowfish block cipher.


Function Summary
integer
blockSize (BLOWFISH)
Block size used by the Blowfish block cipher.
blowfishState
setBlowfishKey (in string: blowfishKey)
Set key and initialization vector for the Blowfish block cipher.
cipherState
setCipherKey (BLOWFISH, in string: cipherKey, in string: initializationVector)
Set key and initialization vector for the Blowfish block cipher.
string
encode (inout blowfishState: state, in string: plaintext)
Encode a string with the Blowfish block cipher.
string
decode (inout blowfishState: state, in string: encoded)
Decode a string with the Blowfish block cipher.

Function Detail

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.


 previous   up   next