Class V3PuTTYSecretKeyDerivationFunction

java.lang.Object
net.schmizz.sshj.userauth.keyprovider.V3PuTTYSecretKeyDerivationFunction
All Implemented Interfaces:
PuTTYSecretKeyDerivationFunction

class V3PuTTYSecretKeyDerivationFunction extends Object implements PuTTYSecretKeyDerivationFunction
PuTTY Key Derivation Function supporting Version 3 Key files with Argon2 Key Derivation using Bouncy Castle
  • Field Details

  • Constructor Details

    • V3PuTTYSecretKeyDerivationFunction

      V3PuTTYSecretKeyDerivationFunction(Map<String,String> headers)
  • Method Details

    • deriveSecretKey

      public SecretKey deriveSecretKey(char[] passphrase)
      Derive Secret Key from provided passphrase characters
      Specified by:
      deriveSecretKey in interface PuTTYSecretKeyDerivationFunction
      Parameters:
      passphrase - Passphrase characters required
      Returns:
      Derived Secret Key
    • getParameters

      private org.bouncycastle.crypto.params.Argon2Parameters getParameters()
    • getAlgorithmType

      private int getAlgorithmType()