Example #1
0
		internal static CipherBlock ClientCipher(RSACryptoServiceProvider publicKey)
		{
			var aes = new AesCryptoServiceProvider {Padding = PaddingMode.Zeros};
			return new CipherBlock(aes, new RSAOAEPKeyExchangeFormatter(publicKey).CreateKeyExchange(aes.Key, typeof(Aes)), publicKey.PublicKey_Hash());
		}