blob: 34b9b73af2a92703fe349a28d59d72d73b81e88d [file] [log] [blame]
Paul Bakker37ca75d2011-01-06 12:28:03 +00001/**
2 * @file
3 * Encryption/decryption module documentation file.
Manuel Pégourié-Gonnard8119dad2015-08-06 10:59:26 +02004 *
5 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
6 *
7 * This file is part of mbed TLS (https://tls.mbed.org)
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Paul Bakker37ca75d2011-01-06 12:28:03 +000022 */
23
24/**
25 * @addtogroup encdec_module Encryption/decryption module
Paul Bakkerf3b86c12011-01-27 15:24:17 +000026 *
Paul Bakkerdcbfdcc2013-09-10 16:16:50 +020027 * The Encryption/decryption module provides encryption/decryption functions.
28 * One can differentiate between symmetric and asymmetric algorithms; the
29 * symmetric ones are mostly used for message confidentiality and the asymmetric
30 * ones for key exchange and message integrity.
31 * Some symmetric algorithms provide different block cipher modes, mainly
32 * Electronic Code Book (ECB) which is used for short (64-bit) messages and
33 * Cipher Block Chaining (CBC) which provides the structure needed for longer
34 * messages. In addition the Cipher Feedback Mode (CFB-128) stream cipher mode,
35 * Counter mode (CTR) and Galois Counter Mode (GCM) are implemented for
36 * specific algorithms.
37 *
38 * All symmetric encryption algorithms are accessible via the generic cipher layer
Manuel Pégourié-Gonnard151dc772015-05-14 13:55:51 +020039 * (see \c mbedtls_cipher_setup()).
Paul Bakkerdcbfdcc2013-09-10 16:16:50 +020040 *
41 * The asymmetric encryptrion algorithms are accessible via the generic public
Manuel Pégourié-Gonnard151dc772015-05-14 13:55:51 +020042 * key layer (see \c mbedtls_pk_init()).
Paul Bakkerdcbfdcc2013-09-10 16:16:50 +020043 *
Paul Bakker37ca75d2011-01-06 12:28:03 +000044 * The following algorithms are provided:
45 * - Symmetric:
Manuel Pégourié-Gonnard151dc772015-05-14 13:55:51 +020046 * - AES (see \c mbedtls_aes_crypt_ecb(), \c mbedtls_aes_crypt_cbc(), \c mbedtls_aes_crypt_cfb128() and
47 * \c mbedtls_aes_crypt_ctr()).
48 * - ARCFOUR (see \c mbedtls_arc4_crypt()).
49 * - Blowfish / BF (see \c mbedtls_blowfish_crypt_ecb(), \c mbedtls_blowfish_crypt_cbc(),
50 * \c mbedtls_blowfish_crypt_cfb64() and \c mbedtls_blowfish_crypt_ctr())
51 * - Camellia (see \c mbedtls_camellia_crypt_ecb(), \c mbedtls_camellia_crypt_cbc(),
52 * \c mbedtls_camellia_crypt_cfb128() and \c mbedtls_camellia_crypt_ctr()).
53 * - DES/3DES (see \c mbedtls_des_crypt_ecb(), \c mbedtls_des_crypt_cbc(), \c mbedtls_des3_crypt_ecb()
54 * and \c mbedtls_des3_crypt_cbc()).
55 * - GCM (AES-GCM and CAMELLIA-GCM) (see \c mbedtls_gcm_init())
56 * - XTEA (see \c mbedtls_xtea_crypt_ecb()).
Paul Bakker37ca75d2011-01-06 12:28:03 +000057 * - Asymmetric:
Manuel Pégourié-Gonnard151dc772015-05-14 13:55:51 +020058 * - Diffie-Hellman-Merkle (see \c mbedtls_dhm_read_public(), \c mbedtls_dhm_make_public()
59 * and \c mbedtls_dhm_calc_secret()).
60 * - RSA (see \c mbedtls_rsa_public() and \c mbedtls_rsa_private()).
61 * - Elliptic Curves over GF(p) (see \c mbedtls_ecp_point_init()).
62 * - Elliptic Curve Digital Signature Algorithm (ECDSA) (see \c mbedtls_ecdsa_init()).
63 * - Elliptic Curve Diffie Hellman (ECDH) (see \c mbedtls_ecdh_init()).
Paul Bakker37ca75d2011-01-06 12:28:03 +000064 *
Paul Bakkerdcbfdcc2013-09-10 16:16:50 +020065 * This module provides encryption/decryption which can be used to provide
Paul Bakker37ca75d2011-01-06 12:28:03 +000066 * secrecy.
Paul Bakkerdcbfdcc2013-09-10 16:16:50 +020067 *
68 * It also provides asymmetric key functions which can be used for
69 * confidentiality, integrity, authentication and non-repudiation.
Paul Bakker37ca75d2011-01-06 12:28:03 +000070 */