Package org.bouncycastle.tls
Class CombinedHash
- java.lang.Object
-
- org.bouncycastle.tls.CombinedHash
-
-
Constructor Summary
Constructors Constructor Description CombinedHash(CombinedHash t)
CombinedHash(TlsCrypto crypto)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
calculateHash()
Return calculated hash for any input passed in.java.lang.Object
clone()
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 len)
Update the hash with the passed in input.
-
-
-
Field Detail
-
context
protected TlsContext context
-
crypto
protected TlsCrypto crypto
-
md5
protected TlsHash md5
-
sha1
protected TlsHash sha1
-
-
Constructor Detail
-
CombinedHash
public CombinedHash(TlsCrypto crypto)
-
CombinedHash
public CombinedHash(CombinedHash t)
-
-
Method Detail
-
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.
-
clone
public java.lang.Object clone()
Description copied from interface:TlsHash
Return a clone of this hash object representing its current state.
-
-