Class SCryptParallel
- java.lang.Object
- 
- jadex.platform.service.security.auth.SCryptParallel
 
- 
 public class SCryptParallel extends java.lang.ObjectParallelized SCrypt, based on Bouncy Castle SCrypt. Implementation of the scrypt a password-based key derivation function.- 
- 
Constructor SummaryConstructors Constructor Description SCryptParallel()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]generate(byte[] P, byte[] S, int N, int r, int p, int dkLen)Generate a key using the scrypt key derivation function.
 
- 
 - 
- 
Method Detail- 
generatepublic static byte[] generate(byte[] P, byte[] S, int N, int r, int p, int dkLen)Generate a key using the scrypt key derivation function.- Parameters:
- P- the bytes of the pass phrase.
- S- the salt to use for this invocation.
- N- CPU/Memory cost parameter. Must be larger than 1, a power of 2 and less than- 2^(128 * r / 8).
- r- the block size, must be >= 1.
- p- Parallelization parameter. Must be a positive integer less than or equal to- Integer.MAX_VALUE / (128 * r * 8).
- dkLen- the length of the key to generate.
- Returns:
- the generated key.
 
 
- 
 
- 
 
-