You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
820 B
20 lines
820 B
2 months ago
|
using System;
|
||
|
using System.IO;
|
||
|
|
||
|
namespace Org.BouncyCastle.Tls.Crypto
|
||
|
{
|
||
|
/// <summary>Base interface for a TLS signer that works on raw message digests.</summary>
|
||
|
public interface TlsSigner
|
||
|
{
|
||
|
/// <summary>Generate an encoded signature based on the passed in hash.</summary>
|
||
|
/// <param name="algorithm">the signature algorithm to use.</param>
|
||
|
/// <param name="hash">the hash calculated for the signature.</param>
|
||
|
/// <returns>an encoded signature.</returns>
|
||
|
/// <exception cref="IOException">in case of an exception processing the hash.</exception>
|
||
|
byte[] GenerateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash);
|
||
|
|
||
|
/// <exception cref="IOException"/>
|
||
|
TlsStreamSigner GetStreamSigner(SignatureAndHashAlgorithm algorithm);
|
||
|
}
|
||
|
}
|