Seed7 - The extensible programming language
Seed7 FAQ Manual Screenshots Examples Libraries Algorithms Download Links
Libraries AES ARC4 Array ASN.1 Bigfile Bigint Bigrat Bin32 Bin64 Bitdata Bitmapfont Bitset Bitsetof Boolean Browser Bstring Bytedata Cards Category CC config Cgi Cgi dialog Char Charsets Cipher Clib_file Color CLI Commands Complex Console Crc32 Deflate DES Dialog Dir Draw Duration Echo Editline Enable_input Enable_io Enable_output Encoding Environment External_file File File system Float Font Forloop Ftp Getf Gethttp Gethttps Graph Graph_file Gzip Hash Hashsetof Hmac Html_ent Httpserv Idxarray Image Inflate Inflate file Inifile Integer Keybd Line Listener LZW Make Math Msgdigest Null_file Osfiles Picture utility Pixmap_file Pixmapfont PKCS #1 Poll Process Progs Propertyfile Rational Reference Ref_list Scanfile Scanstri Set Shell Smtp Sockbase Socket SQL base Stdio Strifile String Stritext Subrange Tar Text Time TLS/SSL Triple DES Unicode Utf16 Utf8 Vectorfont 3D Vector Wildcard Window Wrinum X.509 Xmldom Xml_ent Zip
Libraries
DES Source Code
 previous   up   next 

Types
desState
cipherState implementation type describing the state of a DES cipher.

desState

const type: desState

cipherState implementation type describing the state of a DES cipher. The data is encrypted / decrypted with the DES (Data Encryption Standard) block cipher.


Function Summary
integer
blockSize (DES)
Block size used by the DES (Data Encryption Standard) block cipher.
desState
setDesKey (in string: desKey, in string: initializationVector)
Set key and initialization vector for the DES (Data Encryption Standard) block cipher.
cipherState
setCipherKey (DES, in string: cipherKey, in string: initializationVector)
Set key and initialization vector for the DES (Data Encryption Standard) block cipher.
string
encode (inout desState: state, in string: plaintext)
Encode a string with the DES (Data Encryption Standard) block cipher.
string
decode (inout desState: state, in string: encoded)
Decode a string with the DES (Data Encryption Standard) block cipher.

Function Detail

blockSize

const func integer: blockSize (DES)

Block size used by the DES (Data Encryption Standard) block cipher.

Returns:
the block size used by the DES cipher.

setDesKey

const func desState: setDesKey (in string: desKey, in string: initializationVector)

Set key and initialization vector for the DES (Data Encryption Standard) block cipher.

Parameters:
desKey - The key to be used for DES.
initializationVector - The initialisation vector (IV) for DES.
Returns:
the DES cipher state.

setCipherKey

const func cipherState: setCipherKey (DES, in string: cipherKey, in string: initializationVector)

Set key and initialization vector for the DES (Data Encryption Standard) block cipher.

Parameters:
cipherKey - The key to be used for DES.
initializationVector - The initialisation vector (IV) for DES.
Returns:
the initial cipherState of a DES cipher.

encode

const func string: encode (inout desState: state, in string: plaintext)

Encode a string with the DES (Data Encryption Standard) block cipher.

Returns:
the encoded string.

decode

const func string: decode (inout desState: state, in string: encoded)

Decode a string with the DES (Data Encryption Standard) block cipher.

Returns:
the decoded string.


 previous   up   next