Scrypt was created by Colin Percival and is specified in RFC 7914 - The scrypt Password-Based Key Derivation Function
| Modifier and Type | Class and Description |
|---|---|
| public static class | Scrypt.
Factory for scrypt KDFs. |
| public static class | Scrypt.
Parameters for the scrypt key derivation function. |
| public static class | Scrypt.
Parameters builder for the scrypt key derivation function. |
| Modifier and Type | Field and Description |
|---|---|
| public static final Scrypt. |
| Access | Constructor and Description |
|---|---|
| private |
| ALGORITHM | back to summary |
|---|---|
| public static final Scrypt. | |
| Scrypt | back to summary |
|---|---|
| private Scrypt() | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public KDFCalculator | createKDFCalculator(final Scrypt.
the parameter set to initialize the calculator with. paramsImplements org. |
| KDFFactory | back to summary |
|---|---|
| public KDFFactory() | |
| createKDFCalculator | back to summary |
|---|---|
| public KDFCalculator Implements org. Doc from org. Return a calculator for generating bytes for key material.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv final int | |
| pack-priv final int | |
| pack-priv final byte[] | |
| pack-priv final byte[] |
| Access | Constructor and Description |
|---|---|
| private |
| n | back to summary |
|---|---|
| pack-priv final int n | |
| p | back to summary |
|---|---|
| pack-priv final int p | |
| r | back to summary |
|---|---|
| pack-priv final int r | |
| salt | back to summary |
|---|---|
| pack-priv final byte[] salt | |
| seed | back to summary |
|---|---|
| pack-priv final byte[] seed | |
| Parameters | back to summary |
|---|---|
| private Parameters(int n, byte[] seed, int r, int p, byte[] salt) | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Scrypt. | Returns: the generated key.the salt to use for this invocation. salt, int CPU/Memory cost parameter. Must be larger than 1, a power of 2 and less than
n, int 2^(128 * r / 8).the block size, must be >= 1. r, int Parallelization parameter. Must be a positive integer less than or equal to
p, byte[] Integer.MAX_VALUE / (128 * r * 8).the value feed into the PBKDF2 function. seed)Generate a key using the scrypt key derivation function. |
| public Scrypt. | Returns: the generated key.the salt to use for this invocation. salt, int CPU/Memory cost parameter. Must be larger than 1, a power of 2 and less than
n, int 2^(128 * r / 8).the block size, must be >= 1. r, int Parallelization parameter. Must be a positive integer less than or equal to
p, PasswordConverter Integer.MAX_VALUE / (128 * r * 8).a converter to turn the password characters into the byte array for the seed. converter, char[] a character string to use as a seed. password)Generate a key using the scrypt key derivation function. |
| ParametersBuilder | back to summary |
|---|---|
| pack-priv ParametersBuilder(FipsAlgorithm algorithm) | |
| using | back to summary |
|---|---|
| public Scrypt. Generate a key using the scrypt key derivation function.
| |
| using | back to summary |
|---|---|
| public Scrypt. Generate a key using the scrypt key derivation function.
| |