培训考核三期,新版培训,网页版培训登录器
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.
 
 

33 lines
830 B

#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Operators
{
public class DefaultVerifierResult
: IVerifier
{
private readonly ISigner mSigner;
public DefaultVerifierResult(ISigner signer)
{
this.mSigner = signer;
}
public bool IsVerified(byte[] signature)
{
return mSigner.VerifySignature(signature);
}
public bool IsVerified(byte[] sig, int sigOff, int sigLen)
{
byte[] signature = Arrays.CopyOfRange(sig, sigOff, sigOff + sigLen);
return IsVerified(signature);
}
}
}
#pragma warning restore
#endif