Package org.bouncycastle.tls.crypto
Interface TlsHash
- All Known Subinterfaces:
TlsHandshakeHash
- All Known Implementing Classes:
CombinedHash
,JcaTlsHash
public interface TlsHash
Interface for message digest, or hash, services.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Return calculated hash for any input passed in.Return a clone of this hash object representing its current state.void
reset()
Reset the hash underlying this service.void
update
(byte[] input, int inOff, int length) Update the hash with the passed in input.
-
Method Details
-
update
void update(byte[] input, int inOff, int length) Update the hash with the passed in input.- Parameters:
input
- input array containing the data.inOff
- offset into the input array the input starts at.length
- the length of the input data.
-
calculateHash
byte[] calculateHash()Return calculated hash for any input passed in.- Returns:
- the hash value.
-
cloneHash
TlsHash cloneHash()Return a clone of this hash object representing its current state.- Returns:
- a clone of the current hash.
-
reset
void reset()Reset the hash underlying this service.
-