Class V3PuTTYSecretKeyDerivationFunction

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​java.lang.String> headers  
      private static int KEY_LENGTH  
      private static java.lang.String SECRET_KEY_ALGORITHM  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.crypto.SecretKey deriveSecretKey​(char[] passphrase)
      Derive Secret Key from provided passphrase characters
      private int getAlgorithmType()  
      private org.bouncycastle.crypto.params.Argon2Parameters getParameters()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SECRET_KEY_ALGORITHM

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

        private final java.util.Map<java.lang.String,​java.lang.String> headers
    • Constructor Detail

      • V3PuTTYSecretKeyDerivationFunction

        V3PuTTYSecretKeyDerivationFunction​(java.util.Map<java.lang.String,​java.lang.String> headers)
    • 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
      • getParameters

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

        private int getAlgorithmType()