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); } }
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); }
public virtual void Init(int mode, Key keyspec, IvParameterSpec spec) { throw new NotSupportedException (); }
public virtual void Init(int mode, Key keyspec, IvParameterSpec spec) { throw new NotSupportedException(); }
public override void Init(int mode, Key keyspec, IvParameterSpec spec) { //SecretKeySpec ks = (SecretKeySpec) keyspec; }
public override void Init (int mode, Key keyspec, IvParameterSpec spec) { //SecretKeySpec ks = (SecretKeySpec) keyspec; }