Thursday, February 10, 2011

Javax Hierarchy of Crypto Classes

CipherSpi => Cipher

KeyGeneratorSPi => KeyGenerator

Cipher

CipherInputStream

CipherOutputStream

SecretKey


SecureRandom
Key


MessageDigestSpi => MessageDigest

RC-4

RC-4(w)

Key length: Minimum 8, maximum 2048, multiple of 8 bits; default 128 bits.

RC-2

RC-2(w)


Key length: Minimum 0; maximum 1024, multiple of 8 bits; default 128 bits.
Block size: 8 bytes.

IDEA

IDEA(w)

Block size: 8 bytes.
Key length: 128 bits.

DES

DES(w)

Block size: 8 bytes
Key length: 64 bits as encoded; 56 bits excluding parity bits.

RC-6

RC-6(w)

In cryptography, RC6 is a symmetric key block cipher derived from RC5.

RC6 proper has a block size of 128 bits and supports key sizes of 128, 192 and 256 bits, but, like RC5, it can be parameterized to support a wide variety of word-lengths, key sizes and number of rounds.

CAST5

CAST5

Block size: 8 bytes.
Key length: Minimum 40, maximum 128, multiple of 8 bits; default 128 bits.

Skipjack

Skipjack(w)

Block size: 8 bytes.
Key length: 80 bits.

Serpent

Serpent(w)

Block size: 16 bytes.
Key length: Minimum 0, maximum 256, multiple of 8 bits; default 128 bits.

Twofish

Twofish(w)

In cryptography, Twofish is a symmetric key block cipher with a block size of 128 bits and key sizes up to 256 bits. It was one of the five finalists of the Advanced Encryption Standard contest, but was not selected for standardisation. Twofish is related to the earlier block cipher Blowfish.

On most software platforms Twofish is slightly slower than Rijndael (the chosen algorithm for Advanced Encryption Standard) for 128-bit keys, but somewhat faster for 256-bit keys.

Twofish has a 128-bit block size, a key size ranging from 128 to 256 bits, and is optimized for 32-bit CPUs. Currently there is no successful cryptanalysis of Twofish.

Block sizes : 128 bits
Key sizes : 128, 192 or 256 bits

Blowfish

Blowfish

Blowfish is a keyed, symmetric block cipher, designed in 1993 by Bruce Schneier and included in a large number of cipher suites and encryption products. Blowfish provides a good encryption rate in software and no effective cryptanalysis of it has been found to date. Blowfish is a fast block cipher, except when changing keys.

Bruce Schneier notes that while Blowfish is still in use, he recommends using the more recent Twofish algorithm instead.

Block Size : 64 bits
Key Sizes : 32–448 bits in steps of 8 bits

My Crypto Links

RFC-1321 - MD5
RFC-2268 - RC2
RFC-3174 - SHA-1
RFC-3874 - SHA-224
RFC-2144 - CAST

Message Digests

Block ciphers & List
Modes of Operation

Stream ciphers & List

AES
Blowfish
CAST5
DES
IDEA
RC-2
RC4
RC-6

Serpent
Skipjack

Twofish



BouncyCastle.org