Class OpenSSHKeyEncryptionContext

    • 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 String getCipherFactoryName()
        Returns:
        the cipher's factory name.