Class GordianPBESpecBuilder
java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.cipher.GordianPBESpecBuilder
PBE Specification.
-
Method Summary
Modifier and TypeMethodDescriptionargon2(int pLanes, int pMemory, int pIterations) Create an argonSpec.pbKDF2(GordianDigestSpec pDigestSpec, int pCount) Create a pbkdf2Spec.pkcs12(GordianDigestSpec pDigestSpec, int pCount) Create a pkcs12Spec.scrypt(int pCost, int pBlockSize, int pParallel) Create a scryptSpec.
-
Method Details
-
pbKDF2
public static GordianPBESpec.GordianPBEDigestAndCountSpec pbKDF2(GordianDigestSpec pDigestSpec, int pCount) Create a pbkdf2Spec.- Parameters:
pDigestSpec- the digestSpec.pCount- the iteration count- Returns:
- the new spec
-
pkcs12
public static GordianPBESpec.GordianPBEDigestAndCountSpec pkcs12(GordianDigestSpec pDigestSpec, int pCount) Create a pkcs12Spec.- Parameters:
pDigestSpec- the digestSpec.pCount- the iteration count- Returns:
- the new spec
-
scrypt
Create a scryptSpec.- Parameters:
pCost- the costpBlockSize- the blockSizepParallel- the parallelisation- Returns:
- the new spec
-
argon2
Create an argonSpec.- Parameters:
pLanes- the LanespMemory- the MemorypIterations- the iterations- Returns:
- the new spec
-