DartChacha20 constructor

const DartChacha20({
  1. required MacAlgorithm macAlgorithm,
  2. Random? random,
})

Constructs DartChacha20 with any MAC.

In almost every case, you should use DartChacha20.poly1305Aead, which constructs AEAD_CHACHA20_POLY1305 cipher (RFC 7539).

Implementation

const DartChacha20({
  required this.macAlgorithm,
  super.random,
}) : super.constructor();