Class V1PuTTYSecretKeyDerivationFunction

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

class V1PuTTYSecretKeyDerivationFunction extends Object implements PuTTYSecretKeyDerivationFunction
PuTTY Key Derivation Function supporting Version 1 and 2 Key files with historical SHA-1 key derivation
  • Field Details

  • Constructor Details

    • V1PuTTYSecretKeyDerivationFunction

      V1PuTTYSecretKeyDerivationFunction()
  • 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
    • getMessageDigest

      private MessageDigest getMessageDigest()