Package org.conscrypt

Class OpenSSLMessageDigestJDK

    • Method Detail

      • engineReset

        protected void engineReset()
        Description copied from class: MessageDigestSpi
        Puts this MessageDigestSpi back in an initial state, such that it is ready to compute a one way hash value.
        Specified by:
        engineReset in class MessageDigestSpi
      • engineGetDigestLength

        protected int engineGetDigestLength()
        Description copied from class: MessageDigestSpi
        Returns the engine digest length in bytes. If the implementation does not implement this function 0 is returned.
        Overrides:
        engineGetDigestLength in class MessageDigestSpi
        Returns:
        the digest length in bytes, or 0.
      • engineUpdate

        protected void engineUpdate​(byte[] input,
                                    int offset,
                                    int len)
        Description copied from class: MessageDigestSpi
        Updates this MessageDigestSpi using the given byte[].
        Specified by:
        engineUpdate in class MessageDigestSpi
        Parameters:
        input - the byte array.
        offset - the index of the first byte in input to update from.
        len - the number of bytes in input to update from.
      • clone

        public Object clone()
        Description copied from class: Object
        Creates and returns a copy of this Object. The default implementation returns a so-called "shallow" copy: It creates a new instance of the same class and then copies the field values (including object references) from this instance to the new instance. A "deep" copy, in contrast, would also recursively clone nested objects. A subclass that needs to implement this kind of cloning should call super.clone() to create the new instance and then create deep copies of the nested, mutable objects.
        Overrides:
        clone in class MessageDigestSpi
        Returns:
        a copy of this object.