The AesAlgorithm class provides static methods to manipulate keys, encrypt and decrypt using the AES symmetric key cipher.
More...
#include <aes-algorithm.hpp>
|
|
static size_t | BLOCK_SIZE = ndn_AES_128_BLOCK_SIZE |
| |
The AesAlgorithm class provides static methods to manipulate keys, encrypt and decrypt using the AES symmetric key cipher.
- Note
- This class is an experimental feature. The API may change.
Decrypt the encryptedData using the keyBits according the encrypt params.
- Parameters
-
| keyBits | The key value. |
| encryptedData | The data to decrypt. |
| params | This decrypts according to params.getAlgorithmType() and other params as needed such as params.getInitialVector(). |
- Returns
- The decrypted data.
| static EncryptKey ndn::AesAlgorithm::deriveEncryptKey |
( |
const Blob & |
keyBits | ) |
|
|
inlinestatic |
Derive a new encrypt key from the given decrypt key value.
- Parameters
-
| keyBits | The key value of the decrypt key. |
- Returns
- The new encrypt key.
Encrypt the plainData using the keyBits according the encrypt params.
- Parameters
-
| keyBits | The key value. |
| plainData | The data to encrypt. |
| params | This encrypts according to params.getAlgorithmType() and other params as needed such as params.getInitialVector(). |
- Returns
- The encrypted data.
Generate a new random decrypt key for AES based on the given params.
- Parameters
-
| params | The key params with the key size (in bits). |
- Returns
- The new decrypt key.
The documentation for this class was generated from the following files: