add all
This commit is contained in:
23
Packages/com.tivadar.best.http/Runtime/3rdParty/BouncyCastle/tls/crypto/TlsSigner.cs
vendored
Normal file
23
Packages/com.tivadar.best.http/Runtime/3rdParty/BouncyCastle/tls/crypto/TlsSigner.cs
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
#pragma warning disable
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace Best.HTTP.SecureProtocol.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);
|
||||
}
|
||||
}
|
||||
#pragma warning restore
|
||||
#endif
|
||||
Reference in New Issue
Block a user