Virgil Security Crypto library
1.8.2
|
This class provides high-level interface to sign and verify data using Virgil Security keys. More...
#include <VirgilSigner.h>
Public Member Functions | |
VirgilSigner (const virgil::crypto::foundation::VirgilHash &hash=virgil::crypto::foundation::VirgilHash::sha384()) | |
Create signer with predefined hash function. More... | |
VirgilByteArray | sign (const VirgilByteArray &data, const VirgilByteArray &privateKey, const VirgilByteArray &privateKeyPassword=VirgilByteArray()) |
Sign data with given private key. More... | |
bool | verify (const VirgilByteArray &data, const VirgilByteArray &sign, const VirgilByteArray &publicKey) |
Verify sign and data to be conformed to the given public key. More... | |
This class provides high-level interface to sign and verify data using Virgil Security keys.
This module can sign / verify as raw data and Virgil Security tickets.
|
explicit |
Create signer with predefined hash function.
VirgilByteArray virgil::crypto::VirgilSigner::sign | ( | const VirgilByteArray & | data, |
const VirgilByteArray & | privateKey, | ||
const VirgilByteArray & | privateKeyPassword = VirgilByteArray() |
||
) |
Sign data with given private key.
bool virgil::crypto::VirgilSigner::verify | ( | const VirgilByteArray & | data, |
const VirgilByteArray & | sign, | ||
const VirgilByteArray & | publicKey | ||
) |
Verify sign and data to be conformed to the given public key.