iText 9.8.0 API
iText.Bouncycastle.Crypto.DigestBC Class Reference

Wrapper class for Org.BouncyCastle.Crypto.IDigest. More...

Inheritance diagram for iText.Bouncycastle.Crypto.DigestBC:
iText.Commons.Bouncycastle.Crypto.IDigest iText.Commons.Digest.IMessageDigest

Public Member Functions

  DigestBC (Org.BouncyCastle.Crypto.IDigest iDigest)
  Creates new wrapper instance for Org.BouncyCastle.Crypto.IDigest. More...
 
virtual Org.BouncyCastle.Crypto.IDigest  GetIDigest ()
  Gets actual org.bouncycastle object being wrapped. More...
 
byte[]  Digest (byte[] enc2)
  Performs a final update on the digest using the specified array of bytes, then completes the digest computation. More...
 
byte[]  Digest ()
  Completes the hash computation by performing final operations such as padding. Leaves the digest reset. More...
 
void  Update (byte[] buf, int off, int len)
  Updates the digest using the specified array of bytes, starting at the specified offset. More...
 
int  GetDigestLength ()
  Gets byte length of wrapped digest algorithm. More...
 
void  Update (byte[] buf)
  Updates the digest using the specified array of bytes. More...
 
void  Reset ()
  Resets the digest for further use. More...
 
string  GetAlgorithmName ()
  Returns a string that identifies the algorithm, independent of implementation details. More...
 
override bool  Equals (Object o)
  Indicates whether some other object is "equal to" this one. Compares wrapped objects. More...
 
override int  GetHashCode ()
  Returns a hash code value based on the wrapped object. More...
 
override String  ToString ()
  Delegates toString method call to the wrapped object. More...
 

Detailed Description

Wrapper class for Org.BouncyCastle.Crypto.IDigest.

Constructor & Destructor Documentation

◆ DigestBC()

iText.Bouncycastle.Crypto.DigestBC.DigestBC ( Org.BouncyCastle.Crypto.IDigest  iDigest )
inline

Creates new wrapper instance for Org.BouncyCastle.Crypto.IDigest.

Parameters
iDigest

Org.BouncyCastle.Crypto.IDigest to be wrapped

Member Function Documentation

◆ Digest() [1/2]

byte [] iText.Bouncycastle.Crypto.DigestBC.Digest ( )
inline

Completes the hash computation by performing final operations such as padding. Leaves the digest reset.

Implements iText.Commons.Digest.IMessageDigest.

◆ Digest() [2/2]

byte [] iText.Bouncycastle.Crypto.DigestBC.Digest ( byte[]  enc2 )
inline

Performs a final update on the digest using the specified array of bytes, then completes the digest computation.

Implements iText.Commons.Digest.IMessageDigest.

◆ Equals()

override bool iText.Bouncycastle.Crypto.DigestBC.Equals ( Object  o )
inline

Indicates whether some other object is "equal to" this one. Compares wrapped objects.

◆ GetAlgorithmName()

string iText.Bouncycastle.Crypto.DigestBC.GetAlgorithmName ( )
inline

Returns a string that identifies the algorithm, independent of implementation details.

Implements iText.Commons.Digest.IMessageDigest.

◆ GetDigestLength()

int iText.Bouncycastle.Crypto.DigestBC.GetDigestLength ( )
inline

Gets byte length of wrapped digest algorithm.

Implements iText.Commons.Digest.IMessageDigest.

◆ GetHashCode()

override int iText.Bouncycastle.Crypto.DigestBC.GetHashCode ( )
inline

Returns a hash code value based on the wrapped object.

◆ GetIDigest()

virtual Org.BouncyCastle.Crypto.IDigest iText.Bouncycastle.Crypto.DigestBC.GetIDigest ( )
inlinevirtual

Gets actual org.bouncycastle object being wrapped.

Returns
wrapped IDigest.

◆ Reset()

void iText.Bouncycastle.Crypto.DigestBC.Reset ( )
inline

Resets the digest for further use.

Implements iText.Commons.Digest.IMessageDigest.

◆ ToString()

override String iText.Bouncycastle.Crypto.DigestBC.ToString ( )
inline

Delegates toString method call to the wrapped object.

◆ Update() [1/2]

void iText.Bouncycastle.Crypto.DigestBC.Update ( byte[]  buf )
inline

Updates the digest using the specified array of bytes.

Implements iText.Commons.Digest.IMessageDigest.

◆ Update() [2/2]

void iText.Bouncycastle.Crypto.DigestBC.Update ( byte[]  buf,
int  off,
int  len 
)
inline

Updates the digest using the specified array of bytes, starting at the specified offset.

Implements iText.Commons.Digest.IMessageDigest.