Beispiel #1
0
  // ------------------------------------------------
  public final void tripledes(
      byte[] key3, byte[] data, short dOff, short dLen, byte[] r, short rOff, byte mode) {
    ((DESKey) des3Key).setKey(key3, (short) 0);

    desEngine.init(des3Key, mode);
    desEngine.doFinal(data, dOff, dLen, r, rOff);
  }
Beispiel #2
0
  // ------------------------------------------------
  public final void cdes(
      byte[] akey,
      short kOff,
      byte[] data,
      short dOff,
      short dLen,
      byte[] r,
      short rOff,
      byte mode) {
    ((DESKey) desKey).setKey(akey, kOff);

    desEngine.init(desKey, mode);
    desEngine.doFinal(data, dOff, dLen, r, rOff);
  }