Virgil Security Crypto library  1.8.2
VirgilCipher.h
1 
37 #ifndef VIRGIL_CIPHER_H
38 #define VIRGIL_CIPHER_H
39 
40 #include <vector>
41 
42 #include <virgil/crypto/VirgilCipherBase.h>
43 #include <virgil/crypto/VirgilByteArray.h>
44 
45 namespace virgil { namespace crypto {
46 
51 public:
55  virtual ~VirgilCipher() throw();
56 
57 public:
66  VirgilByteArray encrypt(const VirgilByteArray& data, bool embedContentInfo = false);
67 
74  VirgilByteArray decryptWithKey(
75  const VirgilByteArray& encryptedData,
76  const VirgilByteArray& recipientId, const VirgilByteArray& privateKey,
77  const VirgilByteArray& privateKeyPassword = VirgilByteArray());
78 
85  VirgilByteArray decryptWithPassword(const VirgilByteArray& encryptedData, const VirgilByteArray& pwd);
86 
87 private:
92  VirgilByteArray decrypt(
93  const VirgilByteArray& encryptedData,
95 };
96 
97 }}
98 
99 #endif /* VIRGIL_CIPHER_H */
VirgilByteArray encrypt(const VirgilByteArray &data, bool embedContentInfo=false)
Encrypt given data.
Definition: VirgilAsn1Compatible.h:46
virtual ~VirgilCipher()
Dispose used resources.
This class provides high-level interface to encrypt / decrypt data using Virgil Security keys...
Definition: VirgilCipher.h:50
Provides symmetric ciphers algorithms.
Definition: VirgilSymmetricCipher.h:57
VirgilByteArray decryptWithKey(const VirgilByteArray &encryptedData, const VirgilByteArray &recipientId, const VirgilByteArray &privateKey, const VirgilByteArray &privateKeyPassword=VirgilByteArray())
Decrypt given data for recipient defined by id and private key.
VirgilByteArray decryptWithPassword(const VirgilByteArray &encryptedData, const VirgilByteArray &pwd)
Decrypt given data for recipient defined by password.
This class provides configuration methods to all Virgil*Cipher classes.
Definition: VirgilCipherBase.h:64