|
Virgil Security Crypto library
2.4.6
|
This class provides high-level interface to sign and verify data using Virgil Security keys. More...
#include <VirgilSigner.h>
Public Member Functions | |
| VirgilSigner (foundation::VirgilHash::Algorithm hashAlgorithm=foundation::VirgilHash::Algorithm::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... | |
Public Member Functions inherited from virgil::crypto::VirgilSignerBase | |
| VirgilSignerBase (foundation::VirgilHash::Algorithm hashAlgorithm=foundation::VirgilHash::Algorithm::SHA384) | |
| Create signer with predefined hash function. More... | |
| foundation::VirgilHash::Algorithm | getHashAlgorithm () const |
| Return hash algorithm that SHOULD be used to calculate digest of the data to be signed. More... | |
| VirgilByteArray | signHash (const VirgilByteArray &digest, const VirgilByteArray &privateKey, const VirgilByteArray &privateKeyPassword=VirgilByteArray()) |
| Create signature over pre-calculated hash. More... | |
| bool | verifyHash (const VirgilByteArray &digest, const VirgilByteArray &signature, const VirgilByteArray &publicKey) |
| Verify signature over pre-calculated hash. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from virgil::crypto::VirgilSignerBase | |
| VirgilByteArray | packSignature (const VirgilByteArray &signature) const |
| Pack given signature to the ASN.1 structure. More... | |
| VirgilByteArray | unpackSignature (const VirgilByteArray &packedSignature) |
| Unpack signature and correspond hash algorithm from the ASN.1 structure. 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.
|
inlineexplicit |
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.
1.8.6