### 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.

`GCRY_CIPHER_3DES` ¶

  Triple-DES with 3 keys as EDE. The key size of this algorithm is 168 bits 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 supported key sizes are 8 to 576 bits in 8 bit increments.

`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 bits 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.

`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.

`GCRY_CIPHER_SALSA20` ¶

  This is the Salsa20 stream cipher.

`GCRY_CIPHER_SALSA20R12` ¶

  This is the Salsa20/12 - reduced round version of Salsa20 stream cipher.

`GCRY_CIPHER_GOST28147` ¶

  The GOST 28147-89 cipher, defined in the respective GOST standard. Translation of this GOST into English is provided in the RFC-5830.

`GCRY_CIPHER_GOST28147_MESH` ¶

  The GOST 28147-89 cipher, defined in the respective GOST standard. Translation of this GOST into English is provided in the RFC-5830. This cipher will use CryptoPro keymeshing as defined in RFC 4357 if it has to be used for the selected parameter set.

`GCRY_CIPHER_CHACHA20` ¶

  This is the ChaCha20 stream cipher.

`GCRY_CIPHER_SM4` ¶

  A 128 bit cipher by the State Cryptography Administration of China (SCA). See https://tools.ietf.org/html/draft-ribose-cfrg-sm4-10.