|
10Duke Enterprise C++ SDK
|
#include <Cipher.h>
Public Member Functions | |
| Cipher (const Cipher &)=delete | |
| Cipher & | operator= (const Cipher &)=delete |
| Cipher (Cipher &&other) noexcept=default | |
| Cipher & | operator= (Cipher &&other) noexcept=default |
| virtual void | decryptData (const ::tenduke::utl::DataSpan &ciphertext, ::tenduke::utl::DataSink &plaintext) const =0 |
| Utility method to decrypt data. | |
| virtual void | encryptData (const ::tenduke::utl::DataSpan &plaintext, ::tenduke::utl::DataSink &ciphertext) const =0 |
| Utility method to encrypt data. | |
|
pure virtual |
Utility method to decrypt data.
This method decrypts the provided data, encrypted by ::encryptData() method.
| ciphertext | the encrypted data |
| plaintext | the decrypted data |
Implemented in LibcryptoAESCipher, tenduke::crypto::aes::libcrypto::LibcryptoAESCipher, and tenduke::crypto::win::cng::WinCNGAESCipher.
|
pure virtual |
Utility method to encrypt data.
This method encrypts the provided data and outputs a binary data object which contains:
| plaintext | the data to encrypt |
| ciphertext | the encrypted data |
Implemented in AESGCMCipher, LibcryptoAESCipher, tenduke::crypto::aes::AESGCMCipher, tenduke::crypto::aes::libcrypto::LibcryptoAESCipher, and tenduke::crypto::win::cng::WinCNGAESCipher.