DartChacha20Poly1305AeadMacAlgorithm constructor
- @literal
- @Deprecated('Do not use') Chacha20? chacha20,
- @Deprecated('Do not use') Poly1305? poly1305,
- @Deprecated('Do not use') bool useStaticBuffer = false,
Constructs AEAD_CHACHA20_POLY1305.
Optional parameter chacha20
defines the non-AEAD ChaCha20
implementation used by this algorithm. The default is DartChacha20.
Optional parameter poly1305
defines the Poly1305 implementation used
by this algorithm. The default is DartPoly1305.
Example
import 'package:cryptography/dart.dart';
void main() {
final algorithm = DartChacha20Poly1305AeadMacAlgorithm();
// ...
}
Implementation
@literal
const DartChacha20Poly1305AeadMacAlgorithm({
@Deprecated('Do not use') Chacha20? chacha20,
@Deprecated('Do not use') Poly1305? poly1305,
@Deprecated('Do not use') bool useStaticBuffer = false,
});