Encapsulates a nonce for encryption. More...
#include <DwmCredenceNonce.hh>
Public Member Functions | |
| Nonce (bool init=true) | |
| Default constructor. | |
| std::istream & | Read (std::istream &is) |
Reads the nonce from the given istream is. Returns is. | |
| std::ostream & | Write (std::ostream &os) const |
Writes the nonce to the given ostream os. Returns os. | |
| Nonce (const Nonce &)=default | |
| Copy constructor. | |
| operator const uint8_t * () const | |
| Returns a pointer to const of the encapsulated nonce data. | |
Encapsulates a nonce for encryption.
|
inline |
Default constructor.
Initializes the nonce with random data if init is true.