doc_encdec.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /**
  2. * @file
  3. * Encryption/decryption module documentation file.
  4. *
  5. * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
  6. * SPDX-License-Identifier: Apache-2.0
  7. *
  8. * Licensed under the Apache License, Version 2.0 (the "License"); you may
  9. * not use this file except in compliance with the License.
  10. * You may obtain a copy of the License at
  11. *
  12. * http://www.apache.org/licenses/LICENSE-2.0
  13. *
  14. * Unless required by applicable law or agreed to in writing, software
  15. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  16. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17. * See the License for the specific language governing permissions and
  18. * limitations under the License.
  19. *
  20. * This file is part of mbed TLS (https://tls.mbed.org)
  21. */
  22. /**
  23. * @addtogroup encdec_module Encryption/decryption module
  24. *
  25. * The Encryption/decryption module provides encryption/decryption functions.
  26. * One can differentiate between symmetric and asymmetric algorithms; the
  27. * symmetric ones are mostly used for message confidentiality and the asymmetric
  28. * ones for key exchange and message integrity.
  29. * Some symmetric algorithms provide different block cipher modes, mainly
  30. * Electronic Code Book (ECB) which is used for short (64-bit) messages and
  31. * Cipher Block Chaining (CBC) which provides the structure needed for longer
  32. * messages. In addition the Cipher Feedback Mode (CFB-128) stream cipher mode,
  33. * Counter mode (CTR) and Galois Counter Mode (GCM) are implemented for
  34. * specific algorithms.
  35. *
  36. * All symmetric encryption algorithms are accessible via the generic cipher layer
  37. * (see \c mbedtls_cipher_setup()).
  38. *
  39. * The asymmetric encryptrion algorithms are accessible via the generic public
  40. * key layer (see \c mbedtls_pk_init()).
  41. *
  42. * The following algorithms are provided:
  43. * - Symmetric:
  44. * - AES (see \c mbedtls_aes_crypt_ecb(), \c mbedtls_aes_crypt_cbc(), \c mbedtls_aes_crypt_cfb128() and
  45. * \c mbedtls_aes_crypt_ctr()).
  46. * - ARCFOUR (see \c mbedtls_arc4_crypt()).
  47. * - Blowfish / BF (see \c mbedtls_blowfish_crypt_ecb(), \c mbedtls_blowfish_crypt_cbc(),
  48. * \c mbedtls_blowfish_crypt_cfb64() and \c mbedtls_blowfish_crypt_ctr())
  49. * - Camellia (see \c mbedtls_camellia_crypt_ecb(), \c mbedtls_camellia_crypt_cbc(),
  50. * \c mbedtls_camellia_crypt_cfb128() and \c mbedtls_camellia_crypt_ctr()).
  51. * - DES/3DES (see \c mbedtls_des_crypt_ecb(), \c mbedtls_des_crypt_cbc(), \c mbedtls_des3_crypt_ecb()
  52. * and \c mbedtls_des3_crypt_cbc()).
  53. * - GCM (AES-GCM and CAMELLIA-GCM) (see \c mbedtls_gcm_init())
  54. * - XTEA (see \c mbedtls_xtea_crypt_ecb()).
  55. * - Asymmetric:
  56. * - Diffie-Hellman-Merkle (see \c mbedtls_dhm_read_public(), \c mbedtls_dhm_make_public()
  57. * and \c mbedtls_dhm_calc_secret()).
  58. * - RSA (see \c mbedtls_rsa_public() and \c mbedtls_rsa_private()).
  59. * - Elliptic Curves over GF(p) (see \c mbedtls_ecp_point_init()).
  60. * - Elliptic Curve Digital Signature Algorithm (ECDSA) (see \c mbedtls_ecdsa_init()).
  61. * - Elliptic Curve Diffie Hellman (ECDH) (see \c mbedtls_ecdh_init()).
  62. *
  63. * This module provides encryption/decryption which can be used to provide
  64. * secrecy.
  65. *
  66. * It also provides asymmetric key functions which can be used for
  67. * confidentiality, integrity, authentication and non-repudiation.
  68. */