Next: , Up: Symmetric cryptography


5.1 Available ciphers

GCRY_CIPHER_NONE
This is not a real algorithm but used by some functions as error return. The value always evaluates to false.
GCRY_CIPHER_IDEA
This is the IDEA algorithm. The constant is provided but there is currently no implementation for it because the algorithm is patented.
GCRY_CIPHER_3DES
Triple-DES with 3 Keys as EDE. The key size of this algorithm is 168 but you have to pass 192 bits because the most significant bits of each byte are ignored.
GCRY_CIPHER_CAST5
CAST128-5 block cipher algorithm. The key size is 128 bits.
GCRY_CIPHER_BLOWFISH
The blowfish algorithm. The current implementation allows only for a key size of 128 bits.
GCRY_CIPHER_SAFER_SK128
Reserved and not currently implemented.
GCRY_CIPHER_DES_SK
Reserved and not currently implemented.
GCRY_CIPHER_AES
GCRY_CIPHER_AES128
GCRY_CIPHER_RIJNDAEL
GCRY_CIPHER_RIJNDAEL128
AES (Rijndael) with a 128 bit key.
GCRY_CIPHER_AES192
GCRY_CIPHER_RIJNDAEL192
AES (Rijndael) with a 192 bit key.
GCRY_CIPHER_AES256
GCRY_CIPHER_RIJNDAEL256
AES (Rijndael) with a 256 bit key.
GCRY_CIPHER_TWOFISH
The Twofish algorithm with a 256 bit key.
GCRY_CIPHER_TWOFISH128
The Twofish algorithm with a 128 bit key.
GCRY_CIPHER_ARCFOUR
An algorithm which is 100% compatible with RSA Inc.'s RC4 algorithm. Note that this is a stream cipher and must be used very carefully to avoid a couple of weaknesses.
GCRY_CIPHER_DES
Standard DES with a 56 bit key. You need to pass 64 bit but the high bits of each byte are ignored. Note, that this is a weak algorithm which can be broken in reasonable time using a brute force approach.
GCRY_CIPHER_SERPENT128
GCRY_CIPHER_SERPENT192
GCRY_CIPHER_SERPENT256
The Serpent cipher from the AES contest.
GCRY_CIPHER_RFC2268_40
GCRY_CIPHER_RFC2268_128
Ron's Cipher 2 in the 40 and 128 bit variants. Note, that we currently only support the 40 bit variant. The identifier for 128 is reserved for future use.
GCRY_CIPHER_SEED
A 128 bit cipher as described by RFC4269.
GCRY_CIPHER_CAMELLIA128
GCRY_CIPHER_CAMELLIA192
GCRY_CIPHER_CAMELLIA256
The Camellia cipher by NTT. See http://info.isl.ntt.co.jp/crypt/eng/camellia/specifications.html.