10Duke Enterprise C++ SDK
Toggle main menu visibility
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
8
namespace
tenduke
{
namespace
crypto
{
namespace
aes {
9
16
class
AESGCMCipher
:
public
virtual
::tenduke::crypto::aes::AESCipher
17
{
18
public
:
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
33
using
::
tenduke::crypto::Cipher::encryptData
;
34
};
35
36
}}}
37
38
#endif
//TENDUKE_CRYPTO_AES_AESGCMCIPHER_H
tenduke::crypto::Cipher::encryptData
virtual void encryptData(const ::tenduke::utl::DataSpan &plaintext, ::tenduke::utl::DataSink &ciphertext) const =0
Utility method to encrypt data.
tenduke::crypto::aes::AESCipher
An AES cipher.
Definition
AESCipher.h:20
tenduke::crypto::aes::AESGCMCipher
An AES-GCM cipher that supports encryption with an externally provided nonce.
Definition
AESGCMCipher.h:17
tenduke::crypto::aes::AESGCMCipher::encryptData
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.
tenduke::utl::DataSink
A sink to which binary data can be appended.
Definition
DataSink.h:14
tenduke::crypto
Cryptography services.
Definition
AbstractCiphers.h:18
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
core
src
crypto
symmetric
aes
AESGCMCipher.h
Generated by
1.17.0