Top Description Methods
org.bouncycastle.tls.crypto

public Interface TlsHash

Known Direct Subinterfaces
org.bouncycastle.tls.TlsHandshakeHash
Known Direct Implementers
org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsHash, org.bouncycastle.tls.CombinedHash

Interface for message digest, or hash, services.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

the hash value.
calculateHash
()

Return calculated hash for any input passed in.

public TlsHash

Returns:

a clone of the current hash.
cloneHash
()

Return a clone of this hash object representing its current state.

public void
reset()

Reset the hash underlying this service.

public void
update(byte[]
input array containing the data.
input
,
int
offset into the input array the input starts at.
inOff
,
int
the length of the input data.
length
)

Update the hash with the passed in input.

Method Detail

calculateHashback to summary
public byte[] calculateHash()

Return calculated hash for any input passed in.

Returns:byte[]

the hash value.

cloneHashback to summary
public TlsHash cloneHash()

Return a clone of this hash object representing its current state.

Returns:TlsHash

a clone of the current hash.

resetback to summary
public void reset()

Reset the hash underlying this service.

updateback to summary
public void update(byte[] input, int inOff, int length)

Update the hash with the passed in input.

Parameters
input:byte[]

input array containing the data.

inOff:int

offset into the input array the input starts at.

length:int

the length of the input data.