| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- using Microsoft.VisualStudio.TestTools.UnitTesting;
- using Renci.SshNet.Security.Cryptography.Ciphers;
- using Renci.SshNet.Tests.Common;
- namespace Renci.SshNet.Tests.Classes.Security.Cryptography.Ciphers
- {
- /// <summary>
- /// Implements Serpent cipher algorithm.
- /// </summary>
- [TestClass]
- public class SerpentCipherTest : TestBase
- {
- /// <summary>
- ///A test for SerpentCipher Constructor
- ///</summary>
- [TestMethod]
- [Ignore] // placeholder for actual test
- public void SerpentCipherConstructorTest()
- {
- byte[] key = null; // TODO: Initialize to an appropriate value
- CipherMode mode = null; // TODO: Initialize to an appropriate value
- CipherPadding padding = null; // TODO: Initialize to an appropriate value
- SerpentCipher target = new SerpentCipher(key, mode, padding);
- Assert.Inconclusive("TODO: Implement code to verify target");
- }
- /// <summary>
- ///A test for DecryptBlock
- ///</summary>
- [TestMethod]
- [Ignore] // placeholder for actual test
- public void DecryptBlockTest()
- {
- byte[] key = null; // TODO: Initialize to an appropriate value
- CipherMode mode = null; // TODO: Initialize to an appropriate value
- CipherPadding padding = null; // TODO: Initialize to an appropriate value
- SerpentCipher target = new SerpentCipher(key, mode, padding); // TODO: Initialize to an appropriate value
- byte[] inputBuffer = null; // TODO: Initialize to an appropriate value
- int inputOffset = 0; // TODO: Initialize to an appropriate value
- int inputCount = 0; // TODO: Initialize to an appropriate value
- byte[] outputBuffer = null; // TODO: Initialize to an appropriate value
- int outputOffset = 0; // TODO: Initialize to an appropriate value
- int expected = 0; // TODO: Initialize to an appropriate value
- int actual;
- actual = target.DecryptBlock(inputBuffer, inputOffset, inputCount, outputBuffer, outputOffset);
- Assert.AreEqual(expected, actual);
- Assert.Inconclusive("Verify the correctness of this test method.");
- }
- /// <summary>
- ///A test for EncryptBlock
- ///</summary>
- [TestMethod]
- [Ignore] // placeholder for actual test
- public void EncryptBlockTest()
- {
- byte[] key = null; // TODO: Initialize to an appropriate value
- CipherMode mode = null; // TODO: Initialize to an appropriate value
- CipherPadding padding = null; // TODO: Initialize to an appropriate value
- SerpentCipher target = new SerpentCipher(key, mode, padding); // TODO: Initialize to an appropriate value
- byte[] inputBuffer = null; // TODO: Initialize to an appropriate value
- int inputOffset = 0; // TODO: Initialize to an appropriate value
- int inputCount = 0; // TODO: Initialize to an appropriate value
- byte[] outputBuffer = null; // TODO: Initialize to an appropriate value
- int outputOffset = 0; // TODO: Initialize to an appropriate value
- int expected = 0; // TODO: Initialize to an appropriate value
- int actual;
- actual = target.EncryptBlock(inputBuffer, inputOffset, inputCount, outputBuffer, outputOffset);
- Assert.AreEqual(expected, actual);
- Assert.Inconclusive("Verify the correctness of this test method.");
- }
- }
- }
|