Virgil Security Crypto library  2.6.3
VirgilSigner.h
1 
37 #ifndef VIRGIL_SIGNER_H
38 #define VIRGIL_SIGNER_H
39 
40 #include "VirgilSignerBase.h"
41 
42 #include "VirgilByteArray.h"
43 #include "foundation/VirgilHash.h"
44 
45 namespace virgil { namespace crypto {
46 
53 public:
58  explicit VirgilSigner (
59  foundation::VirgilHash::Algorithm hashAlgorithm =
61 
67  const VirgilByteArray& data, const VirgilByteArray& privateKey,
68  const VirgilByteArray& privateKeyPassword = VirgilByteArray());
69 
74  bool verify(const VirgilByteArray& data, const VirgilByteArray& sign, const VirgilByteArray& publicKey);
75 };
76 
77 }}
78 
79 #endif /* VIRGIL_SIGNER_H */
Algorithm
Enumerates possible Hash algorithms.
Definition: VirgilHash.h:57
VirgilByteArray sign(const VirgilByteArray &data, const VirgilByteArray &privateKey, const VirgilByteArray &privateKeyPassword=VirgilByteArray())
Sign data with given private key.
This class provides common functionality to sign and verify data using Virgil Security keys...
Definition: VirgilSignerBase.h:49
bool verify(const VirgilByteArray &data, const VirgilByteArray &sign, const VirgilByteArray &publicKey)
Verify sign and data to be conformed to the given public key.
VirgilSigner(foundation::VirgilHash::Algorithm hashAlgorithm=foundation::VirgilHash::Algorithm::SHA384)
Create signer with predefined hash function.
Definition: VirgilSigner.h:58
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 sign and verify data using Virgil Security keys...
Definition: VirgilSigner.h:52