Exemplo n.º 1
0
        public void TestEncodeLength1024()
        {
            // Arrange
            byte[] message = new byte[1024];
            IAONT  aont    = new OAEPEncoding();

            // Act
            byte[] encodedMessage = aont.Encode(message);

            // Assert
            Assert.AreEqual <int>(message.Length + aont.seedSize, encodedMessage.Length);
        }
Exemplo n.º 2
0
        public void EncryptDecryptEncMsgLength258Test()
        {
            IAONT aont = new OAEPEncoding();

            EncryptDecryptMsgLengthTest(258 - aont.seedSize);
        }