VerifyDigitalSignature
VerifyDigitalSignature[{expr,sig},key]
verifies the digital signature sig for expr using the specified public key.
VerifyDigitalSignature[{{expr1,sig1},{expr2,sig2},…},key]
verifies the digital signatures sigi for each of the expri, all using the specified public key.
is an operator form of VerifyDigitalSignature, suitable for application to {expr,sig} or a list of such pairs.
Details
- The signature in VerifyDigitalSignature must be a DigitalSignature object generated by GenerateDigitalSignature.
- The key in VerifyDigitalSignature should be a PublicKey object.
- VerifyDigitalSignature returns True or False for each provided signature, indicating whether or not the signatures are valid.
Examples
open allclose allBasic Examples (2)
Scope (3)
Single Signature (1)
Applications (5)
Security Certificates (1)
Cryptocurrencies Networks (2)
Byte Arrays (1)
Sign Files (1)
Generate a pair of elliptic curve keys:
Import the contents of the file you wish to sign:
Create a signature for the imported bytes of the file:
Equivalently, this can be done using GenerateFileSignature on the file directly:
Text
Wolfram Research (2019), VerifyDigitalSignature, Wolfram Language function, https://reference.wolfram.com/language/ref/VerifyDigitalSignature.html.
CMS
Wolfram Language. 2019. "VerifyDigitalSignature." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/VerifyDigitalSignature.html.
APA
Wolfram Language. (2019). VerifyDigitalSignature. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VerifyDigitalSignature.html