All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bouncycastle.tls.crypto.TlsHash Maven / Gradle / Ivy

Go to download

The Bouncy Castle Java APIs for the TLS, including a JSSE provider. The APIs are designed primarily to be used in conjunction with the BC LTS provider but may also be used with other providers providing cryptographic services.

There is a newer version: 2.73.7
Show newest version
package org.bouncycastle.tls.crypto;

/**
 * Interface for message digest, or hash, services.
 */
public interface TlsHash
{
    /**
     * Update the hash with the passed in input.
     *
     * @param input input array containing the data.
     * @param inOff offset into the input array the input starts at.
     * @param length the length of the input data.
     */
    void update(byte[] input, int inOff, int length);

    /**
     * Return calculated hash for any input passed in.
     *
     * @return the hash value.
     */
    byte[] calculateHash();

    /**
     * Return a clone of this hash object representing its current state.
     *
     * @return a clone of the current hash.
     */
    TlsHash cloneHash();

    /**
     * Reset the hash underlying this service.
     */
    void reset();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy