Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ISignatureAlgorithm.cs
1using System;
2using System.Collections.Generic;
3using System.IO;
4
5namespace Waher.Security
6{
10 public interface ISignatureAlgorithm
11 {
17 byte[] Sign(byte[] Data);
18
24 byte[] Sign(Stream Data);
25
33 bool Verify(byte[] Data, byte[] PublicKey, byte[] Signature);
34
42 bool Verify(Stream Data, byte[] PublicKey, byte[] Signature);
43 }
44}
Interface for digital signature algorithms.
byte[] Sign(byte[] Data)
Creates a signature of Data .
bool Verify(Stream Data, byte[] PublicKey, byte[] Signature)
Verifies a signature of Data .
byte[] Sign(Stream Data)
Creates a signature of Data .
bool Verify(byte[] Data, byte[] PublicKey, byte[] Signature)
Verifies a signature of Data .