![JAR search and dependency download from the Maven repository](/logo.png)
org.spongycastle.tls.crypto.TlsHash Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bctls-jdk15on Show documentation
Show all versions of bctls-jdk15on Show documentation
Spongy Castle is a package-rename (org.bouncycastle.* to org.spongycastle.*) of Bouncy Castle
intended for the Android platform. Android unfortunately ships with a stripped-down version of
Bouncy Castle, which prevents easy upgrades - Spongy Castle overcomes this and provides a full,
up-to-date version of the Bouncy Castle cryptographic libs.
The newest version!
package org.spongycastle.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.
*/
Object clone();
/**
* Reset the hash underlying this service.
*/
void reset();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy