init method

  1. @override
void init(
  1. bool forEncryption,
  2. CipherParameters params
)
override

Initialise the cipher for processing.

Implementation

@override
void init(bool forEncryption, CipherParameters params) {
  if (params is! KeyParameter) {
    throw ArgumentError('DES requer KeyParameter.');
  }
  _workingKey = generateWorkingKey(forEncryption, params.key);
}