public void Setup()
        {
            IRSA rsa = (T)Activator.CreateInstance(typeof(T), 1024);

            propagatingCipherBlockChaining = new PropagatingCipherBlockChaining(rsa);
            imageBlockCipher = new ImageBlockCipher(propagatingCipherBlockChaining);
        }
示例#2
0
        public void Setup()
        {
            IRSA rsa = (T)Activator.CreateInstance(typeof(T), 1024);

            electronicCodebook = new ElectronicCodebook(rsa);
            imageBlockCipher   = new ImageBlockCipher(electronicCodebook);
        }
        public PropagatingCipherBlockChainingTestsOnFiles()
        {
            IRSA rsa = (T)Activator.CreateInstance(typeof(T), 1024);

            imageBlockCipher = new ImageBlockCipher(new PropagatingCipherBlockChaining(rsa));
        }
示例#4
0
 public CipherFeedback(IRSA rsa, BigInteger initializationVector)
 {
     this.rsa = rsa;
     this.InitializationVector = initializationVector;
 }
示例#5
0
 public CipherFeedback(IRSA rsa)
 {
     this.rsa             = rsa;
     InitializationVector = BigIntegerExtensions.Random(BlockSize);
 }
 public void Initialize()
 {
     serviceMock = new RSA();
 }
示例#7
0
 public void Setup()
 {
     rsa              = new MyRSA(1024);
     cipherFeedback   = new CipherFeedback(rsa);
     imageBlockCipher = new ImageBlockCipher(cipherFeedback);
 }
示例#8
0
 public void Setup()
 {
     rsa              = new MyRSA(1024);
     outputFeedback   = new OutputFeedback(rsa);
     imageBlockCipher = new ImageBlockCipher(outputFeedback);
 }
示例#9
0
        public ElectronicCodebookTestsOnFiles()
        {
            IRSA rsa = (T)Activator.CreateInstance(typeof(T), 1024);

            imageBlockCipher = new ImageBlockCipher(new ElectronicCodebook(rsa));
        }
示例#10
0
 public CipherBlockChaining(IRSA rsa, BigInteger initializationVector)
 {
     this.rsa = rsa;
     this.InitializationVector = initializationVector;
 }
示例#11
0
 public Counter(IRSA rsa, BigInteger initializationVector)
 {
     this.rsa = rsa;
     this.InitializationVector = initializationVector;
 }
示例#12
0
 public Counter(IRSA rsa)
 {
     this.rsa             = rsa;
     InitializationVector = BigIntegerExtensions.Random(BlockSize);
 }
示例#13
0
 public ElectronicCodebook(IRSA rsa)
 {
     this.rsa = rsa;
 }
示例#14
0
 public void Initialize()
 {
     serviceMock    = new AESService();
     serviceRSAMock = new RSA();
 }
示例#15
0
 public PropagatingCipherBlockChaining(IRSA rsa)
 {
     this.rsa             = rsa;
     InitializationVector = BigIntegerExtensions.Random(BlockSize);
 }