Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 1 | /** |
| 2 | * @file |
| 3 | * Encryption/decryption module documentation file. |
| 4 | */ |
| 5 | |
| 6 | /** |
| 7 | * @addtogroup encdec_module Encryption/decryption module |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 8 | * |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 9 | * 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 Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 26 | * The following algorithms are provided: |
| 27 | * - Symmetric: |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 28 | * - AES (see \c aes_crypt_ecb(), \c aes_crypt_cbc(), \c aes_crypt_cfb128() and |
| 29 | * \c aes_crypt_ctr()). |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 30 | * - ARCFOUR (see \c arc4_crypt()). |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 31 | * - 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 Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 36 | * and \c des3_crypt_cbc()). |
Paul Bakker | 4c52af2 | 2014-01-13 13:21:29 +0100 | [diff] [blame] | 37 | * - GCM (AES-GCM and CAMELLIA-GCM) (see \c gcm_init()) |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 38 | * - XTEA (see \c xtea_crypt_ecb()). |
| 39 | * - Asymmetric: |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 40 | * - Diffie-Hellman-Merkle (see \c dhm_read_public(), \c dhm_make_public() |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 41 | * and \c dhm_calc_secret()). |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 42 | * - RSA (see \c rsa_public() and \c rsa_private()). |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 43 | * - 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 Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 46 | * |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 47 | * This module provides encryption/decryption which can be used to provide |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 48 | * secrecy. |
Paul Bakker | dcbfdcc | 2013-09-10 16:16:50 +0200 | [diff] [blame] | 49 | * |
| 50 | * It also provides asymmetric key functions which can be used for |
| 51 | * confidentiality, integrity, authentication and non-repudiation. |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 52 | */ |