Пример #1
0
        public void RsaShouldEncryptAndThenDecryptCorrectly(ulong message, uint p, uint q, ulong E)
        {
            //act
            var actualCipherResult     = _rsaCipher.EnCrypt(message, p, q, E);
            var actualDecryptionResult = _rsaCipher.DeCrypt(actualCipherResult);

            //assert
            Assert.Equal(message, actualDecryptionResult);
        }