Пример #1
0
 private static RSAParameters GenerateRsaKey(byte[] key, bool isPrivate)
 {
     var parser = new AsnKeyParser(key);
     return isPrivate ? parser.ParseRSAPrivateKey () : parser.ParseRSAPublicKey ();
 }
Пример #2
0
 internal static RSAParameters GenerateRsaPublicKey(byte[] key)
 {
     var parser = new AsnKeyParser(key);
     return parser.ParseRSAPublicKey ();
 }