ISignatureProvider

Namespace: Babel.Licensing Assembly: Babel.Licensing.dll

Interface for signature providers.

public interface ISignatureProvider

Properties

AlgorithmName

Gets the name of the sign algorithm.

string AlgorithmName { get; }

Property Value

string

Methods

SignData(byte[])

Generate the signature for the given data.

byte[] SignData(byte[] data)

Parameters

NameDescription

data byte[]

The data to sign.

Returns

NameDescription

Returns the generated signature.

VerifyData(byte[], byte[])

Verify the signature of a given data buffer.

bool VerifyData(byte[] data, byte[] signature)

Parameters

NameDescription

data byte[]

The data to verify.

signature byte[]

The signature buffer.

Returns

NameDescription

true if the signature is valid, false if is not valid.

See Also

ECDsaSignature, RSASignature, XmlDigitalSignature

Last updated