Class KBKDFFeedbackParams

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.security.spec.AlgorithmParameterSpec, java.security.spec.KeySpec

    public class KBKDFFeedbackParams
    extends KBKDFParameterSpec
    • Constructor Detail

      • KBKDFFeedbackParams

        public KBKDFFeedbackParams()
    • Method Detail

      • setInitialValue

        public void setInitialValue​(byte[] iv)
                             throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • zeroInitialValue

        public void zeroInitialValue()
        Zero out the copiend contents of the initial value. Call this method when the contents of the initial value are sensitive and they're done being used. Note that this isn't called during close() as a given KBKDFParameterSpec instance may be reused, updating relevant parameters between calls.
      • validateParameters

        protected void validateParameters()
                                   throws java.lang.IllegalArgumentException
        Description copied from class: KBKDFParameterSpec
        Validate all class members prior to acquiring native resources. This is implemented by the derived KBKDF modes in an effort to give useful exceptions before derivation, instead of vague errors during derivation.
        Specified by:
        validateParameters in class KBKDFParameterSpec
        Throws:
        java.lang.IllegalArgumentException