Virgil Security Crypto library
2.6.3
|
Define proxy interface for the Symmetric Cipher functionality. More...
#include <VirgilOperationCipher.h>
Public Member Functions | |
template<class Impl > | |
VirgilOperationCipher (Impl impl) | |
Captures implementation object. More... | |
size_t | getKeySize () const |
Return size of the encryption/decryption key. More... | |
size_t | getNonceSize () const |
Return size of the nonce. More... | |
VirgilByteArray | encrypt (const VirgilByteArray &plainText, const VirgilByteArray &key, const VirgilByteArray &nonce, const VirgilByteArray &authData=VirgilByteArray()) const |
Encrypt given plain text. More... | |
VirgilByteArray | decrypt (const VirgilByteArray &cipherText, const VirgilByteArray &key, const VirgilByteArray &nonce, const VirgilByteArray &authData=VirgilByteArray()) const |
Decrypt given cipher text. More... | |
Static Public Member Functions | |
static VirgilOperationCipher | getDefault () |
Return default implementation. | |
Define proxy interface for the Symmetric Cipher functionality.
|
inline |
Captures implementation object.
Impl | - class that contains functions that has identical signature to this class functions. |
impl | - object that implements interface. |
|
inline |
Decrypt given cipher text.
cipherText | - encrypted data to be decrypted. |
key | - decryption key. |
nonce | - Nonce or IV (same as for encryption). |
authData | - additional data that participate in an authentication (same as for encryption). |
|
inline |
Encrypt given plain text.
plainText | - data to be encrypted. |
key | - encryption key. |
nonce | - Nonce or IV. |
authData | - additional data that participate in an authentication. |
|
inline |
Return size of the encryption/decryption key.
|
inline |
Return size of the nonce.