#include <string>
#include <cryptopp/aes.h>
#include <cryptopp/modes.h>
#include <cryptopp/filters.h>
#include <cryptopp/osrng.h>
#include <cryptopp/hex.h>
#include <cryptopp/secblock.h>
#include <cryptopp/config.h>
Go to the source code of this file.
|
std::string | ns3::EncryptPayload (const std::string &data, const CryptoPP::byte *key, std::string &ivOut) |
| Encrypts the given plaintext using AES-CBC with a randomly generated IV.
|
|
std::string | ns3::DecryptPayload (const std::string &cipher, const CryptoPP::byte *key) |
| Decrypts the given ciphertext using AES-CBC.
|
|
SecByteBlock | ns3::HexDecodeKey (const std::string &hex) |
| Decodes a hex-encoded AES key string into a raw key byte block.
|
|
std::vector< CryptoPP::byte > | ns3::HexToBytes (const std::string &hex) |
| Converts a hexadecimal string into a byte vector.
|
|