deriveKey method

  1. @override
int deriveKey(
  1. Uint8List? inp,
  2. int inpOff,
  3. Uint8List out,
  4. int outOff,
)
override

Derive key from given input and put it in out at offset outOff.

Implementation

@override
int deriveKey(Uint8List? inp, int inpOff, Uint8List out, int outOff) {
  // append input to the 'info' part for key derivation
  if (inp != null) {
    // TODO: find better way to concatenate Uint8Lists with null elements
    _info = combineLists(_info!, inp);
  }

  return _generate(out, outOff, keySize);
}