doc_encdec.h 3.2 KB

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