Class OpenSSHKeyEncryptionContext

    • Field Detail

      • DEFAULT_KDF_ROUNDS

        public static final int DEFAULT_KDF_ROUNDS
        Default number of bcrypt KDF rounds to apply.
        See Also:
        Constant Field Values
      • kdfRounds

        private int kdfRounds
    • Constructor Detail

      • OpenSSHKeyEncryptionContext

        public OpenSSHKeyEncryptionContext()
    • Method Detail

      • getKdfRounds

        public int getKdfRounds()
        Retrieves the number of KDF rounds to apply.
        Returns:
        the default number of KDF rounds, >= DEFAULT_KDF_ROUNDS
      • setKdfRounds

        public void setKdfRounds​(int rounds)
        Sets the number of KDF rounds to apply. If smaller than the DEFAULT_KDF_ROUNDS, set that default.
        Parameters:
        rounds - number of rounds to apply
      • getCipherFactoryName

        protected java.lang.String getCipherFactoryName()
        Returns:
        the cipher's factory name.