Package org.bouncycastle.crypto.util
Class ScryptConfig.Builder
java.lang.Object
org.bouncycastle.crypto.util.ScryptConfig.Builder
- Enclosing class:
ScryptConfig
-
Constructor Summary
ConstructorDescriptionBuilder
(int costParameter, int blockSize, int parallelizationParameter) Base constructor. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
withSaltLength
(int saltLength) Set the length of the salt to use.
-
Constructor Details
-
Builder
public Builder(int costParameter, int blockSize, int parallelizationParameter) Base constructor.- Parameters:
costParameter
- cost parameter (must be a power of 2)blockSize
- block sizeparallelizationParameter
- parallelization parameter
-
-
Method Details
-
withSaltLength
Set the length of the salt to use.- Parameters:
saltLength
- the length of the salt (in octets) to use.- Returns:
- the current builder.
-
build
-