예제 #1
0
        public void DecryptRsa_decrypts_ciphertext(RsaTestCase tc)
        {
            var plaintext = Crypto.DecryptRsa(tc.Ciphertext, RsaKey, tc.Padding);

            Assert.Equal(RsaPlaintext.ToBytes(), plaintext);
        }
예제 #2
0
        public void DecryptRsaSha1_decrypts_ciphertext()
        {
            var plaintext = Crypto.DecryptRsaSha1(RsaSha1.Ciphertext, RsaKey);

            Assert.Equal(RsaPlaintext.ToBytes(), plaintext);
        }