newMacSinkSync method
DartMacSinkMixin
newMacSinkSync({
- required SecretKeyData secretKeyData,
- List<
int> nonce = const <int>[], - List<
int> aad = const <int>[],
override
Returns DartMacSinkMixin, which can be used synchronously.
Implementation
@override
DartMacSinkMixin newMacSinkSync({
required SecretKeyData secretKeyData,
List<int> nonce = const <int>[],
List<int> aad = const <int>[],
}) {
final sink = DartChacha20Poly1305AeadMacAlgorithmSink();
sink.initializeSync(
secretKey: secretKeyData,
nonce: nonce,
aad: aad,
);
return sink;
}