Ciphers (package com.kryptel.cipher)
- Introduction to the Library
- Basic support package (com.kryptel.bslx)
- Kryptel API Commons package (com.kryptel)
- Cipher package (com.kryptel.cipher)
- Compressor package (com.kryptel.compressor)
- Exceptions package (com.kryptel.exceptions)
- Hash function package (com.kryptel.hash_function)
- MAC function package (com.kryptel.mac)
- Key-related functions (com.kryptel.key)
- Silver Key engine (com.kryptel.silver_key)
- Kryptel encrypted storage (com.kryptel.storage)
This package contains all Kryptel ciphers. Cipher is a basic low-level encryption component converting plaintext to ciphertext. The library includes the following ciphers: AES, Blowfish, DES, NullCipher, Serpent, Triple-DES, and Twofish.
DES is outdated; its usage is strongly discouraged. The reason for inclusion of that cipher was compatibility with old Kryptel / Silver Key versions. The library DES component has TYPE_HIDDEN_COMPONENT flag (see the Constants class).
Null cipher is a special 'cipher' component performing no ciphering at all. It has TYPE_HIDDEN_COMPONENT flag (see the Constants class) and should be used for debugging purpose only.
|Cipher||Class Name||Component ID|
Note that all the ciphers are block ones. Although the library interface structure allows adding a stream cipher, there simply is no reputable enough stream cipher worth including.
A static cipher component's structure describing allowed cipher parameters.
A helper structure, used to pack cipher parameters in order to return them in a single function call.
Block encryption or decryption. Blocks may be chained.
See also: Block encryption example.
Extends ICipherParams with parameters specific for block ciphers.
Main cipher interface for encrypting or decrypting data blocks of arbitrary size.
See also: File encryption example.
Set or get cipher parameters. Block ciphers use interface IBlockCipherParams, which extends this one.
Very basic block cipher interface for encrypting or decrypting exactly one block of unchained data.
A simple example of using IBlockCipher for encrypting several blocks of data.
A more complex example utilizing ICipher for file encryption – or a stream of data of arbitrary size.
How to add a completely new cipher component to the library.