DartChacha20Poly1305AeadMacAlgorithm constructor

DartChacha20Poly1305AeadMacAlgorithm({
  1. Chacha20? chacha20,
  2. Poly1305? poly1305,
  3. bool useStaticBuffer = false,
})

Implementation

DartChacha20Poly1305AeadMacAlgorithm({
  Chacha20? chacha20,
  Poly1305? poly1305,
  bool useStaticBuffer = false,
})  : _chacha20 = chacha20 ?? Chacha20(macAlgorithm: MacAlgorithm.empty),
      _poly1305 = poly1305 ?? Poly1305(),
      _useStaticBuffer = useStaticBuffer;