DES3.this

this(const(ubyte)[] key)

Constructs a Triple DES cipher with the given key.

The 24-byte key is split into three 8-byte DES keys:

  • K1 = key[0..8]
  • K2 = key[8..16]
  • K3 = key[16..24]

Parameters

keyThe 24-byte key (three 8-byte DES keys).

Throws

CryptoException if the key length is not 24 bytes.