Initializes the new VirgilCardCrypto
VirgilCrypto instance, providing implementation of crypto operations.
Exports public key material in DER format from the given public key object.
The public key object to export the key material from.
Computes SHA-512 hash of the given data.
The data to be hashed.
Generates digital signature of the given data using the given private key.
The data to be signed.
The private key object.
Creates a VirgilPublicKey object from public key material in PEM or DER format.
The public key material. If publicKeyData
is
a string, base64 encoding is assumed.
The public key object.
Verifies the validity of the digital signature for the given data and public key.
The data that were signed.
The signature.
The signer's public key.
true
if signature is valid, otherwise false
Class implementing cryptographic operations required to create and verify the validity of Virgil Cards (i.e. the
ICardCrypto
interface from virgil-sdk), using VirgilCrypto.