/// <exception cref="System.Exception"></exception> public virtual void SetPrvKey(byte[] d, byte[] n) { RSAPrivateKeySpec rsaPrivKeySpec = new RSAPrivateKeySpec(new BigInteger(n), new BigInteger (d)); PrivateKey prvKey = keyFactory.GeneratePrivate(rsaPrivKeySpec); signature.InitSign(prvKey); }