Class JcaTlsHash
java.lang.Object
org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsHash
- All Implemented Interfaces:
TlsHash
Wrapper class for providing support methods for a TlsHash based on the JCA MessageDigest class.
-
Constructor Summary
-
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[] data, int offSet, int length) Update the hash with the passed in input.
-
Constructor Details
-
JcaTlsHash
-
-
Method Details
-
update
public void update(byte[] data, int offSet, int length) Description copied from interface:TlsHash
Update the hash with the passed in input. -
calculateHash
public byte[] calculateHash()Description copied from interface:TlsHash
Return calculated hash for any input passed in.- Specified by:
calculateHash
in interfaceTlsHash
- Returns:
- the hash value.
-
cloneHash
Description copied from interface:TlsHash
Return a clone of this hash object representing its current state. -
reset
public void reset()Description copied from interface:TlsHash
Reset the hash underlying this service.
-