FlutterAesGcm.with192bits constructor

FlutterAesGcm.with192bits({
  1. CryptographyChannelPolicy? channelPolicy,
  2. Random? random,
})

Constructs Flutter-optimized AesGcm which will use 192-bit keys.

The channelPolicy can be used to choose which requests are sent to the plugin implementation (using a Flutter MethodChannel) and which ones are handled in the same isolate. The default FlutterCipher.defaultChannelPolicy forces small encrypt / decrypt calls to be handled in the same isolate.

When operating system APIs are not available fallback is used. The default fallback implementation is BackgroundAesGcm.

If you want deterministic key generation for testing, you can pass a Random instance that returns the same sequence of bytes every time.

Implementation

FlutterAesGcm.with192bits({
  CryptographyChannelPolicy? channelPolicy,
  Random? random,
}) : this(
        secretKeyLength: 24,
        channelPolicy: channelPolicy,
        random: random,
      );