ParseRSAPrivateKey() private method

private ParseRSAPrivateKey ( ) : RSAParameters
return System.Security.Cryptography.RSAParameters
コード例 #1
0
ファイル: Security.cs プロジェクト: pdelvo/Pdelvo.Minecraft
 private static RSAParameters GenerateRsaKey(byte[] key, bool isPrivate)
 {
     var parser = new AsnKeyParser(key);
     return isPrivate ? parser.ParseRSAPrivateKey () : parser.ParseRSAPublicKey ();
 }