iText 9.8.0 API
iText.Bouncycastlefips.Crypto.DigestBCFips Class Reference

Wrapper class for IStreamCalculator digest. More...

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

Public Member Functions

  DigestBCFips (IStreamCalculator< IBlockResult > iDigest)
  Creates new wrapper instance for digest. More...
 
  DigestBCFips (string hashAlgorithm)
  Creates new wrapper instance for digest. More...
 
virtual IStreamCalculator< IBlockResult >  GetIDigest ()
  Gets actual org.bouncycastle object being wrapped. More...
 
virtual void  SetAlgorithmName (string algorithmName)
  Sets algorithm name. 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...
 
int  GetDigestLength ()
  Gets byte length of wrapped digest algorithm. More...
 
void  Update (byte[] buf, int off, int len)
  Updates the digest using the specified array of bytes, starting at the specified offset. 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...
 

Static Public Member Functions

static FipsShs.Parameters  GetMessageDigestParams (String hashAlgorithm)
  Gets Message Digest parameters. More...
 

Detailed Description

Wrapper class for IStreamCalculator digest.

Constructor & Destructor Documentation

◆ DigestBCFips() [1/2]

iText.Bouncycastlefips.Crypto.DigestBCFips.DigestBCFips ( IStreamCalculator< IBlockResult >  iDigest )
inline

Creates new wrapper instance for digest.

Parameters
iDigest

IStreamCalculator to be wrapped

◆ DigestBCFips() [2/2]

iText.Bouncycastlefips.Crypto.DigestBCFips.DigestBCFips ( string  hashAlgorithm )
inline

Creates new wrapper instance for digest.

Parameters
hashAlgorithm

hash algorithm to create IStreamCalculator

Member Function Documentation

◆ Digest() [1/2]

byte [] iText.Bouncycastlefips.Crypto.DigestBCFips.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.Bouncycastlefips.Crypto.DigestBCFips.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.Bouncycastlefips.Crypto.DigestBCFips.Equals ( Object  o )
inline

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

◆ GetAlgorithmName()

string iText.Bouncycastlefips.Crypto.DigestBCFips.GetAlgorithmName ( )
inline

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

Implements iText.Commons.Digest.IMessageDigest.

◆ GetDigestLength()

int iText.Bouncycastlefips.Crypto.DigestBCFips.GetDigestLength ( )
inline

Gets byte length of wrapped digest algorithm.

Implements iText.Commons.Digest.IMessageDigest.

◆ GetHashCode()

override int iText.Bouncycastlefips.Crypto.DigestBCFips.GetHashCode ( )
inline

Returns a hash code value based on the wrapped object.

◆ GetIDigest()

virtual IStreamCalculator iText.Bouncycastlefips.Crypto.DigestBCFips.GetIDigest ( )
inlinevirtual

Gets actual org.bouncycastle object being wrapped.

Returns
wrapped IStreamCalculator.

◆ GetMessageDigestParams()

static FipsShs.Parameters iText.Bouncycastlefips.Crypto.DigestBCFips.GetMessageDigestParams ( String  hashAlgorithm )
inlinestatic

Gets Message Digest parameters.

Parameters
hashAlgorithm hash algorithm

◆ Reset()

void iText.Bouncycastlefips.Crypto.DigestBCFips.Reset ( )
inline

Resets the digest for further use.

Implements iText.Commons.Digest.IMessageDigest.

◆ SetAlgorithmName()

virtual void iText.Bouncycastlefips.Crypto.DigestBCFips.SetAlgorithmName ( string  algorithmName )
inlinevirtual

Sets algorithm name.

Parameters
algorithmName algorithm name

◆ ToString()

override String iText.Bouncycastlefips.Crypto.DigestBCFips.ToString ( )
inline

Delegates toString method call to the wrapped object.

◆ Update() [1/2]

void iText.Bouncycastlefips.Crypto.DigestBCFips.Update ( byte[]  buf )
inline

Updates the digest using the specified array of bytes.

Implements iText.Commons.Digest.IMessageDigest.

◆ Update() [2/2]

void iText.Bouncycastlefips.Crypto.DigestBCFips.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.