Package org.bouncycastle.tls
Class CombinedHash
java.lang.Object
org.bouncycastle.tls.CombinedHash
- All Implemented Interfaces:
TlsHash
A combined hash, which implements md5(m) || sha1(m).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
context
-
crypto
-
md5
-
sha1
-
-
Constructor Details
-
CombinedHash
-
CombinedHash
-
-
Method Details
-
update
public void update(byte[] input, int inOff, int len) 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.
-