Class V3PuTTYSecretKeyDerivationFunction
java.lang.Object
net.schmizz.sshj.userauth.keyprovider.V3PuTTYSecretKeyDerivationFunction
- All Implemented Interfaces:
PuTTYSecretKeyDerivationFunction
PuTTY Key Derivation Function supporting Version 3 Key files with Argon2 Key Derivation using Bouncy Castle
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionderiveSecretKey(char[] passphrase) Derive Secret Key from provided passphrase charactersprivate intprivate org.bouncycastle.crypto.params.Argon2Parameters
-
Field Details
-
SECRET_KEY_ALGORITHM
- See Also:
-
KEY_LENGTH
private static final int KEY_LENGTH- See Also:
-
headers
-
-
Constructor Details
-
V3PuTTYSecretKeyDerivationFunction
-
-
Method Details
-
deriveSecretKey
Derive Secret Key from provided passphrase characters- Specified by:
deriveSecretKeyin interfacePuTTYSecretKeyDerivationFunction- Parameters:
passphrase- Passphrase characters required- Returns:
- Derived Secret Key
-
getParameters
private org.bouncycastle.crypto.params.Argon2Parameters getParameters() -
getAlgorithmType
private int getAlgorithmType()
-