add all
This commit is contained in:
29
Packages/com.tivadar.best.http/Runtime/3rdParty/BouncyCastle/crypto/IVerifier.cs
vendored
Normal file
29
Packages/com.tivadar.best.http/Runtime/3rdParty/BouncyCastle/crypto/IVerifier.cs
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
#pragma warning disable
|
||||
namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Crypto
|
||||
{
|
||||
/// <summary>
|
||||
/// Operators that reduce their input to the validation of a signature produce this type.
|
||||
/// </summary>
|
||||
public interface IVerifier
|
||||
{
|
||||
/// <summary>
|
||||
/// Return true if the passed in data matches what is expected by the verification result.
|
||||
/// </summary>
|
||||
/// <param name="data">The bytes representing the signature.</param>
|
||||
/// <returns>true if the signature verifies, false otherwise.</returns>
|
||||
bool IsVerified(byte[] data);
|
||||
|
||||
/// <summary>
|
||||
/// Return true if the length bytes from off in the source array match the signature
|
||||
/// expected by the verification result.
|
||||
/// </summary>
|
||||
/// <param name="source">Byte array containing the signature.</param>
|
||||
/// <param name="off">The offset into the source array where the signature starts.</param>
|
||||
/// <param name="length">The number of bytes in source making up the signature.</param>
|
||||
/// <returns>true if the signature verifies, false otherwise.</returns>
|
||||
bool IsVerified(byte[] source, int off, int length);
|
||||
}
|
||||
}
|
||||
#pragma warning restore
|
||||
#endif
|
||||
Reference in New Issue
Block a user