2011-01-06 12:28:03 +00:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Encryption/decryption module documentation file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @addtogroup encdec_module Encryption/decryption module
|
|
|
|
*
|
|
|
|
* The Encryption/decryption module provides encryption/decryption functions.
|
|
|
|
* One can differtiate between symmetric and asymetric algorithms; the
|
|
|
|
* symmetric ones are mostly used for message confidentiality and the asymmetric
|
|
|
|
* ones for key exchange and message integrity.
|
|
|
|
* Some symmetric algorithms provide different block cipher modes, mainly
|
|
|
|
* Electronic Code Book (ECB) which is used for short (64-bit) messages and
|
2011-01-27 15:24:17 +00:00
|
|
|
* Cipher Block Chaining (CBC) which provides the structure needed for longer
|
|
|
|
* messages. In addition the Cipher Feedback Mode (CFB-128) stream cipher mode
|
|
|
|
* is implemented for specific algorithms.
|
|
|
|
*
|
2011-01-06 12:28:03 +00:00
|
|
|
* Sometimes the same functions are used for encryption and decryption.
|
|
|
|
* The following algorithms are provided:
|
|
|
|
* - Symmetric:
|
2011-01-27 15:24:17 +00:00
|
|
|
* - AES (see \c aes_crypt_ecb(), \c aes_crypt_cbc() and \c aes_crypt_cfb128()).
|
2011-01-06 12:28:03 +00:00
|
|
|
* - ARCFOUR (see \c arc4_crypt()).
|
2011-01-27 15:24:17 +00:00
|
|
|
* - Camellia (see \c camellia_crypt_ecb(), \c camellia_crypt_cbc() and \c camellia_crypt_cfb128()).
|
|
|
|
* - DES/3DES (see \c des_crypt_ecb(), \c des_crypt_cbc(), \c des3_crypt_ecb()
|
|
|
|
* and \c des3_crypt_cbc()).
|
2011-01-06 12:28:03 +00:00
|
|
|
* - XTEA (see \c xtea_crypt_ecb()).
|
|
|
|
* - Asymmetric:
|
2011-01-27 15:24:17 +00:00
|
|
|
* - Diffie-Hellman-Merkle (see \c dhm_read_public(), \c dhm_make_public()
|
2011-01-06 12:28:03 +00:00
|
|
|
* and \c dhm_calc_secret()).
|
2011-01-27 15:24:17 +00:00
|
|
|
* - RSA (see \c rsa_public() and \c rsa_private()).
|
2011-01-06 12:28:03 +00:00
|
|
|
*
|
|
|
|
* This module provides encryption/decryption which can be used to provide
|
|
|
|
* secrecy.
|
|
|
|
* It also provides asymmetric key functions which can be used for
|
|
|
|
* confidentiality, integrity, authentication and non-repudiation.
|
|
|
|
*/
|