Class ChaChaSpec.Builder
java.lang.Object
zeroecho.core.alg.chacha.ChaChaSpec.Builder
- Enclosing class:
ChaChaSpec
Fluent builder for
ChaChaSpec.- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an immutableChaChaSpec.header(SymmetricHeaderCodec codec) Sets the optional header codec.initialCounter(int c) Sets the initial counter value.
-
Constructor Details
-
Builder
public Builder()Creates a builder with counter1and stream headers disabled.
-
-
Method Details
-
initialCounter
Sets the initial counter value.- Parameters:
c- non-negative counter value- Returns:
- this builder
-
header
Sets the optional header codec.- Parameters:
codec- header codec ornull- Returns:
- this builder
-
build
-