|
Virgil Security Crypto library
2.1.2
|
This class provides high-level interface to sign and verify data using Virgil Security keys. More...
#include <VirgilStreamSigner.h>
Public Member Functions | |
| VirgilStreamSigner (foundation::VirgilHash::Algorithm hashAlgorithm=foundation::VirgilHash::Algorithm::SHA384) | |
| Create signer with predefined hash function. More... | |
| VirgilByteArray | sign (VirgilDataSource &source, const VirgilByteArray &privateKey, const VirgilByteArray &privateKeyPassword=VirgilByteArray()) |
| Sign data provided by the source with given private key. More... | |
| bool | verify (VirgilDataSource &source, const VirgilByteArray &sign, const VirgilByteArray &publicKey) |
| Verify sign and data provided by the source 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 data provided by stream.
|
explicit |
Create signer with predefined hash function.
| VirgilByteArray virgil::crypto::VirgilStreamSigner::sign | ( | VirgilDataSource & | source, |
| const VirgilByteArray & | privateKey, | ||
| const VirgilByteArray & | privateKeyPassword = VirgilByteArray() |
||
| ) |
Sign data provided by the source with given private key.
| bool virgil::crypto::VirgilStreamSigner::verify | ( | VirgilDataSource & | source, |
| const VirgilByteArray & | sign, | ||
| const VirgilByteArray & | publicKey | ||
| ) |
Verify sign and data provided by the source to be conformed to the given public key.
1.8.10