Granados.PKI.EdwardsCurve.Verify C# (CSharp) Method

Verify() public abstract method

Verify
public abstract Verify ( byte publicKey, byte signature, byte data ) : bool
publicKey byte public key
signature byte signature to verify
data byte data
return bool
        public abstract bool Verify(byte[] publicKey, byte[] signature, byte[] data);

Usage Example

Esempio n. 1
0
 /// <summary>
 /// Verifies signature with this public key
 /// </summary>
 /// <param name="signature">signature</param>
 /// <param name="data">data</param>
 /// <exception cref="VerifyException">verification failure</exception>
 public void Verify(byte[] signature, byte[] data)
 {
     if (!_curve.Verify(_publicKey, signature, data))
     {
         throw new VerifyException("verification failed");
     }
 }