Virgil Security Crypto library  2.6.3
VirgilCipher.h
1 
37 #ifndef VIRGIL_CIPHER_H
38 #define VIRGIL_CIPHER_H
39 
40 #include <vector>
41 
42 #include "VirgilCipherBase.h"
43 #include "VirgilByteArray.h"
44 
45 namespace virgil { namespace crypto {
46 
51 public:
60  VirgilByteArray encrypt(const VirgilByteArray& data, bool embedContentInfo = true);
61 
69  const VirgilByteArray& encryptedData,
70  const VirgilByteArray& recipientId, const VirgilByteArray& privateKey,
71  const VirgilByteArray& privateKeyPassword = VirgilByteArray());
72 
79  VirgilByteArray decryptWithPassword(const VirgilByteArray& encryptedData, const VirgilByteArray& pwd);
80 private:
85  VirgilByteArray decrypt(const VirgilByteArray& encryptedData);
86 };
87 
88 }}
89 
90 #endif /* VIRGIL_CIPHER_H */
Root namespace for all Virgil Security libraries.
Definition: VirgilAsn1Compatible.h:46
std::vector< unsigned char > VirgilByteArray
This type represents a sequence of bytes.
Definition: VirgilByteArray.h:50
This class provides high-level interface to encrypt / decrypt data using Virgil Security keys...
Definition: VirgilCipher.h:50
VirgilByteArray encrypt(const VirgilByteArray &data, bool embedContentInfo=true)
Encrypt given data.
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:61