Class JcaTlsHash
- java.lang.Object
-
- org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsHash
-
-
Constructor Summary
Constructors Constructor Description JcaTlsHash(java.security.MessageDigest digest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]calculateHash()Return calculated hash for any input passed in.TlsHashcloneHash()Return a clone of this hash object representing its current state.voidreset()Reset the hash underlying this service.voidupdate(byte[] data, int offSet, int length)Update the hash with the passed in input.
-
-
-
Method Detail
-
update
public void update(byte[] data, int offSet, int length)Description copied from interface:TlsHashUpdate the hash with the passed in input.
-
calculateHash
public byte[] calculateHash()
Description copied from interface:TlsHashReturn calculated hash for any input passed in.- Specified by:
calculateHashin interfaceTlsHash- Returns:
- the hash value.
-
cloneHash
public TlsHash cloneHash()
Description copied from interface:TlsHashReturn a clone of this hash object representing its current state.
-
-