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.

VerifyDigitalSignature[key]

is an operator form of VerifyDigitalSignature, suitable for application to {expr,sig} or a list of such pairs.

Details

Examples

open all close all

Basic Examples  (2)

Generate an elliptic curvebased key pair:

In[1]:=
Click for copyable input
Out[1]=

Generate a digital signature using your private key:

In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=

Verify a digital signature using your public key:

In[4]:=
Click for copyable input
Out[4]=

Sign a message using a hashing function of your choice:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=

Verification will automatically consider the hashing function used for signing:

In[4]:=
Click for copyable input
Out[4]=

Scope  (3)

Applications  (4)

Introduced in 2019
(12.0)