|
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.openpgp.operator.bc.BcPGPS2KCalculator
A PGPS2KCalculator backed by the lightweight Argon2BytesGenerator. The cost parameters
are bounded by the caller () before this is invoked.
| Constructor Summary | |
BcPGPS2KCalculator()
|
|
| Method Summary | |
int |
getType()
Return the algorithm type |
byte[] |
makeKey(char[] passPhrase,
S2K s2k,
int keyLen)
Derive bytes from the supplied passphrase using the parameters carried by the given Argon2 S2K specifier. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BcPGPS2KCalculator()
| Method Detail |
public int getType()
PGPS2KCalculator
getType in interface PGPS2KCalculator
public byte[] makeKey(char[] passPhrase,
S2K s2k,
int keyLen)
throws PGPException
PGPS2KCalculatorArgon2 S2K specifier.
makeKey in interface PGPS2KCalculatorpassPhrase - the passphrase.s2k - an S2K.ARGON_2 S2K carrying the salt, passes, parallelism and memory size.keyLen - the number of key bytes to produce.
PGPException - on error.
|
Bouncy Castle Cryptography Library 1.85 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||