ServiceStack.PlatformRsaUtils.VerifyData C# (CSharp) Method

VerifyData() public static method

public static VerifyData ( this rsa, byte bytes, byte signature, string hashAlgorithm ) : bool
rsa this
bytes byte
signature byte
hashAlgorithm string
return bool
        public static bool VerifyData(this RSA rsa, byte[] bytes, byte[] signature, string hashAlgorithm)
        {
#if !NETSTANDARD1_6
            return ((RSACryptoServiceProvider)rsa).VerifyData(bytes, hashAlgorithm, signature);
#else
            return rsa.VerifyData(bytes, signature, ToHashAlgorithmName(hashAlgorithm), RSASignaturePadding.Pkcs1);
#endif
        }