blob: 7d37d9333e7be40ead77405dcdf0295d80465846 [file] [log] [blame]
Paul Bakker37ca75d2011-01-06 12:28:03 +00001/**
2 * @file
3 * Encryption/decryption module documentation file.
4 */
5
6/**
7 * @addtogroup encdec_module Encryption/decryption module
Paul Bakkerf3b86c12011-01-27 15:24:17 +00008 *
Paul Bakkerdcbfdcc2013-09-10 16:16:50 +02009 * The Encryption/decryption module provides encryption/decryption functions.
10 * One can differentiate between symmetric and asymmetric algorithms; the
11 * symmetric ones are mostly used for message confidentiality and the asymmetric
12 * ones for key exchange and message integrity.
13 * Some symmetric algorithms provide different block cipher modes, mainly
14 * Electronic Code Book (ECB) which is used for short (64-bit) messages and
15 * Cipher Block Chaining (CBC) which provides the structure needed for longer
16 * messages. In addition the Cipher Feedback Mode (CFB-128) stream cipher mode,
17 * Counter mode (CTR) and Galois Counter Mode (GCM) are implemented for
18 * specific algorithms.
19 *
20 * All symmetric encryption algorithms are accessible via the generic cipher layer
21 * (see \c cipher_init_ctx()).
22 *
23 * The asymmetric encryptrion algorithms are accessible via the generic public
24 * key layer (see \c pk_init()).
25 *
Paul Bakker37ca75d2011-01-06 12:28:03 +000026 * The following algorithms are provided:
27 * - Symmetric:
Paul Bakkerdcbfdcc2013-09-10 16:16:50 +020028 * - AES (see \c aes_crypt_ecb(), \c aes_crypt_cbc(), \c aes_crypt_cfb128() and
29 * \c aes_crypt_ctr()).
Paul Bakker37ca75d2011-01-06 12:28:03 +000030 * - ARCFOUR (see \c arc4_crypt()).
Paul Bakkerdcbfdcc2013-09-10 16:16:50 +020031 * - Blowfish / BF (see \c blowfish_crypt_ecb(), \c blowfish_crypt_cbc(),
32 * \c blowfish_crypt_cfb64() and \c blowfish_crypt_ctr())
33 * - Camellia (see \c camellia_crypt_ecb(), \c camellia_crypt_cbc(),
34 * \c camellia_crypt_cfb128() and \c camellia_crypt_ctr()).
35 * - DES/3DES (see \c des_crypt_ecb(), \c des_crypt_cbc(), \c des3_crypt_ecb()
Paul Bakkerf3b86c12011-01-27 15:24:17 +000036 * and \c des3_crypt_cbc()).
Paul Bakker4c52af22014-01-13 13:21:29 +010037 * - GCM (AES-GCM and CAMELLIA-GCM) (see \c gcm_init())
Paul Bakker37ca75d2011-01-06 12:28:03 +000038 * - XTEA (see \c xtea_crypt_ecb()).
39 * - Asymmetric:
Paul Bakkerdcbfdcc2013-09-10 16:16:50 +020040 * - Diffie-Hellman-Merkle (see \c dhm_read_public(), \c dhm_make_public()
Paul Bakker37ca75d2011-01-06 12:28:03 +000041 * and \c dhm_calc_secret()).
Paul Bakkerf3b86c12011-01-27 15:24:17 +000042 * - RSA (see \c rsa_public() and \c rsa_private()).
Paul Bakkerdcbfdcc2013-09-10 16:16:50 +020043 * - Elliptic Curves over GF(p) (see \c ecp_point_init()).
44 * - Elliptic Curve Digital Signature Algorithm (ECDSA) (see \c ecdsa_init()).
45 * - Elliptic Curve Diffie Hellman (ECDH) (see \c ecdh_init()).
Paul Bakker37ca75d2011-01-06 12:28:03 +000046 *
Paul Bakkerdcbfdcc2013-09-10 16:16:50 +020047 * This module provides encryption/decryption which can be used to provide
Paul Bakker37ca75d2011-01-06 12:28:03 +000048 * secrecy.
Paul Bakkerdcbfdcc2013-09-10 16:16:50 +020049 *
50 * It also provides asymmetric key functions which can be used for
51 * confidentiality, integrity, authentication and non-repudiation.
Paul Bakker37ca75d2011-01-06 12:28:03 +000052 */