Class CombinedHash
- Namespace
- Org.BouncyCastle.Tls
- Assembly
- BouncyCastle.Cryptography.dll
A combined hash, which implements md5(m) || sha1(m).
public class CombinedHash : TlsHash
- Inheritance
-
CombinedHash
- Implements
- Inherited Members
Constructors
CombinedHash(CombinedHash)
public CombinedHash(CombinedHash t)
Parameters
CombinedHash(TlsCrypto)
public CombinedHash(TlsCrypto crypto)
Parameters
cryptoTlsCrypto
Fields
m_context
protected readonly TlsContext m_context
Field Value
m_crypto
protected readonly TlsCrypto m_crypto
Field Value
m_md5
protected readonly TlsHash m_md5
Field Value
m_sha1
protected readonly TlsHash m_sha1
Field Value
Methods
CalculateHash()
Return calculated hash for any input passed in.
public virtual byte[] CalculateHash()
Returns
- byte[]
the hash value.
CloneHash()
Return a clone of this hash object representing its current state.
public virtual TlsHash CloneHash()
Returns
- TlsHash
a clone of the current hash.
Reset()
Reset the hash underlying this service.
public virtual void Reset()
Update(byte[], int, int)
Update the hash with the passed in input.
public virtual void Update(byte[] input, int inOff, int len)
Parameters
inputbyte[]input array containing the data.
inOffintoffset into the input array the input starts at.
lenint
Update(ReadOnlySpan<byte>)
public void Update(ReadOnlySpan<byte> input)
Parameters
inputReadOnlySpan<byte>