setKey abstract method

Future<void> setKey(
  1. String userId,
  2. int keyIndex,
  3. Uint8List rawKey
)

Registers rawKey at keyIndex for a single user.

rawKey must be exactly EncryptionAlgorithm.keyLengthBytes long and keyIndex must be in 0..255.

Implementation

Future<void> setKey(String userId, int keyIndex, Uint8List rawKey);