It is also known as Secret Key Cryptography.
The main characteristic of symmetric cryptography is that it uses the same shared key to encrypt and decrypt messages.
The key must be shared over another secure channel.
It is used for:
- Transmission of a message over an insecure channel
- Secure storage on insecure media
- Integrity checks.
The symmetric encryption algorithms are classified as block ciphers or stream ciphers based on its input type.
"A block cipher is a deterministic algorithm operating on fixed-length groups of bits, called a block, with an unvarying transformation that is specified by a symmetric key. (...) are a means of effectively improving security by combining simple operations such as substitutions and permutations. Iterated product ciphers carry out encryption in multiple rounds, each of which uses a different subkey derived from the original key." (Source)
Block ciphers need an IV - Initialization Vector to combine and initialize the first block. It should be used combined with a secure mode of operation and padding.
The block cipher's algorithm actually describes how to process a block, and the mode of operation describes how to apply the block cipher to a sequence of blocks to encrypt an uncertain amount of input data. There are various modes of operation, each one with its own advantages and disadvantages. Some of them are no longer secure.
The padding scheme defines some data to add somewhere in the message to mask the predictability that could be contained in the original message, therefore, adding complexity to the encryption. More complex paddings are usually more secure.
A stream cipher is a symmetric key cipher where plaintext digits are combined with a pseudorandom cipher digit stream (keystream). In a stream cipher, each plaintext digit is encrypted one at a time with the corresponding digit of the keystream, to give a digit of the ciphertext stream. Since encryption of each digit is dependent on the current state of the cipher, it is also known as state cipher. In practice, a digit is typically a bit and the combining operation an exclusive-or (XOR). (Source)
Stream ciphers are computationally cheaper and faster ciphers but are usually not as secure as block ciphers.
|Two-key TDEA Encryption
|Two-key TDEA Decryption
|Three-key TDEA Encryption
Deprecated through 2023
Disallowed after 2023
|Three-key TDEA Decryption
|AES-128 Encryption and Decryption
|AES-192 Encryption and Decryption
|AES-256 Encryption and Decryption
- Acceptable: is used to mean that the algorithm and key length in a FIPS or SP are safe to use; no security risk is currently known when used in accordance with any associated guidance.
- Deprecated: means that the algorithm and key length may be used, but the user must accept some security risk.
- Disallowed: means that the algorithm or key length is no longer allowed for applying cryptographic protection.