decryptWithKeyRef method

  1. @override
Future<List<int>> decryptWithKeyRef(
  1. KeyRef keyRef,
  2. List<int> cipher,
  3. EncryptionAlgorithm algorithm
)

Implementation

@override
Future<List<int>> decryptWithKeyRef(
  KeyRef keyRef,
  List<int> cipher,
  EncryptionAlgorithm algorithm,
) async {
  final result = await _channel.invokeMethod<Uint8List>('decryptWithKeyRef', {
    'keyId': keyRef.keyId,
    'cipher': Uint8List.fromList(cipher),
    'algorithm': encryptionAlgorithmName(algorithm),
  });
  return result ?? const [];
}