public static byte[] Decrypt(this RSA rsa, byte[] bytes) { #if !NETSTANDARD1_6 return ((RSACryptoServiceProvider)rsa).Decrypt(bytes, RsaUtils.DoOAEPPadding); #else return rsa.Decrypt(bytes, RSAEncryptionPadding.OaepSHA1); #endif }