|
Bouncy Castle Cryptography Library 1.85 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.crypto.params.Argon2Parameters
Configuration parameters for the Argon2 PBKDF.
Build instances with Argon2Parameters.Builder, e.g.
Argon2Parameters params = new Argon2Parameters.Builder(Argon2Parameters.ARGON2_id)
.withVersion(Argon2Parameters.ARGON2_VERSION_13)
.withSalt(salt)
.withIterations(3)
.withMemoryPowOfTwo(16)
.withParallelism(4)
.build();
| Nested Class Summary | |
static class |
Argon2Parameters.Builder
Fluent builder for Argon2Parameters. |
| Field Summary | |
static int |
ARGON2_d
Argon2d - data-dependent memory access. |
static int |
ARGON2_i
Argon2i - data-independent memory access. |
static int |
ARGON2_id
Argon2id - hybrid of ARGON2_i and ARGON2_d. |
static int |
ARGON2_VERSION_10
Argon2 v1.0 (legacy). |
static int |
ARGON2_VERSION_13
Argon2 v1.3 - the version standardised by RFC 9106. |
static java.lang.String |
MAX_MEMORY_EXP
System/security property setting the maximum permitted memory exponent (i.e. |
static java.lang.String |
MAX_PARALLELISM
System/security property bounding the Argon2 parallelism (lanes) accepted when a key is derived from untrusted cost parameters - notably an OpenPGP Argon2 S2K specifier. |
static java.lang.String |
MAX_PASSES
System/security property bounding the number of Argon2 passes (iterations) accepted when a key is derived from untrusted cost parameters - notably an OpenPGP Argon2 S2K specifier. |
| Method Summary | |
void |
clear()
Zeroise sensitive state (salt, secret, additional) held by these parameters. |
byte[] |
getAdditional()
|
Argon2BytesGenerator.BlockPool |
getBlockPool()
|
CharToByteConverter |
getCharToByteConverter()
|
int |
getIterations()
|
int |
getLanes()
|
int |
getMemory()
|
byte[] |
getSalt()
|
byte[] |
getSecret()
|
int |
getType()
|
int |
getVersion()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String MAX_MEMORY_EXP
public static final java.lang.String MAX_PASSES
Properties.asInteger(java.lang.String, int).
public static final java.lang.String MAX_PARALLELISM
Properties.asInteger(java.lang.String, int).
public static final int ARGON2_d
public static final int ARGON2_i
public static final int ARGON2_id
ARGON2_i and ARGON2_d.
public static final int ARGON2_VERSION_10
public static final int ARGON2_VERSION_13
| Method Detail |
public byte[] getSalt()
public byte[] getSecret()
public byte[] getAdditional()
public int getIterations()
public int getMemory()
public int getLanes()
public int getVersion()
ARGON2_VERSION_10 or ARGON2_VERSION_13).public int getType()
ARGON2_d, ARGON2_i, or ARGON2_id).public CharToByteConverter getCharToByteConverter()
public Argon2BytesGenerator.BlockPool getBlockPool()
BlockPool, or null if the generator should use its default per-call pool.public void clear()
|
Bouncy Castle Cryptography Library 1.85 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||