DES3.encrypt

void encrypt(const(ubyte)[] input, ubyte[] output)

Encrypts a single 8-byte block using EDE mode.

The encryption operation is: C = E_K1(D_K2(E_K3(P)))

  • Step 1: Encrypt with K3
  • Step 2: Decrypt with K2
  • Step 3: Encrypt with K1

Parameters

inputInput buffer (at least 8 bytes).
outputOutput buffer (at least 8 bytes).

Throws

CryptoException if buffers are too short.