10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
AESGCMCipher.h
1#ifndef TENDUKE_CRYPTO_AES_AESGCMCIPHER_H
2#define TENDUKE_CRYPTO_AES_AESGCMCIPHER_H
3
4#include "./AESCipher.h"
5#include "../../../utl/DataSink.h"
6#include "../../../utl/DataSpan.h"
7
8namespace tenduke { namespace crypto { namespace aes {
9
17{
18public:
27 virtual void encryptData(
28 const ::tenduke::utl::DataSpan &nonce,
29 const ::tenduke::utl::DataSpan &plaintext,
30 ::tenduke::utl::DataSink &ciphertext
31 ) const = 0;
32
34};
35
36}}}
37
38#endif //TENDUKE_CRYPTO_AES_AESGCMCIPHER_H
virtual void encryptData(const ::tenduke::utl::DataSpan &plaintext, ::tenduke::utl::DataSink &ciphertext) const =0
Utility method to encrypt data.
An AES cipher.
Definition AESCipher.h:20
An AES-GCM cipher that supports encryption with an externally provided nonce.
Definition AESGCMCipher.h:17
virtual void encryptData(const ::tenduke::utl::DataSpan &nonce, const ::tenduke::utl::DataSpan &plaintext, ::tenduke::utl::DataSink &ciphertext) const =0
Encrypts data using the provided nonce.
A sink to which binary data can be appended.
Definition DataSink.h:14
Cryptography services.
Definition AbstractCiphers.h:18
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4