Exemple #1
0
        public override void Init(int mode, Key keyspec, IvParameterSpec spec)
        {
            SecretKey key = (SecretKey)keyspec;

            if (mode == Cipher.ENCRYPT_MODE)
            {
                transformer = des.CreateEncryptor(key.Key, spec.Iv);
            }
            else
            {
                transformer = des.CreateDecryptor(key.Key, spec.Iv);
            }
        }
Exemple #2
0
 public override void Init(int mode, Key keyspec, IvParameterSpec spec)
 {
     SecretKeySpec key = (SecretKeySpec)keyspec;
     if (mode == Cipher.ENCRYPT_MODE)
         transformer = encryptor.CreateEncryptor (key.Key, spec.Iv);
     else
         transformer = encryptor.CreateDecryptor (key.Key, spec.Iv);
 }
Exemple #3
0
 public virtual void Init(int mode, Key keyspec, IvParameterSpec spec)
 {
     throw new NotSupportedException ();
 }
Exemple #4
0
 public virtual void Init(int mode, Key keyspec, IvParameterSpec spec)
 {
     throw new NotSupportedException();
 }
Exemple #5
0
 public override void Init(int mode, Key keyspec, IvParameterSpec spec)
 {
     //SecretKeySpec ks = (SecretKeySpec) keyspec;
 }
Exemple #6
0
		public override void Init (int mode, Key keyspec, IvParameterSpec spec)
		{
			//SecretKeySpec ks = (SecretKeySpec) keyspec;
		}