Class V1PuTTYSecretKeyDerivationFunction

    • Field Detail

      • SECRET_KEY_ALGORITHM

        private static final java.lang.String SECRET_KEY_ALGORITHM
        See Also:
        Constant Field Values
      • DIGEST_ALGORITHM

        private static final java.lang.String DIGEST_ALGORITHM
        See Also:
        Constant Field Values
    • Constructor Detail

      • V1PuTTYSecretKeyDerivationFunction

        V1PuTTYSecretKeyDerivationFunction()
    • Method Detail

      • deriveSecretKey

        public javax.crypto.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 java.security.MessageDigest getMessageDigest()