iText 8.0.5 API
iText.Commons.Bouncycastle.Crypto.IDigest Interface Reference

This interface represents the wrapper for IDigest that provides the ability to switch between bouncy-castle and bouncy-castle FIPS implementations. More...

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

Public Member Functions

byte[]  Digest (byte[] enc2)
  Calls actual Digest method for the wrapped IDigest object. More...
 
byte[]  Digest ()
  Calls actual Digest method for the wrapped IDigest object. Leaves the digest reset. More...
 
int  GetDigestLength ()
  Gets byte length of wrapped digest algorithm. More...
 
void  Update (byte[] buf, int off, int len)
  Calls actual Update method for the wrapped IDigest object. More...
 
void  Update (byte[] buf)
  Calls actual Update method for the wrapped IDigest object. More...
 
void  Reset ()
  Calls actual Reset method for the wrapped IDigest object. More...
 
string  GetAlgorithmName ()
  Gets actual AlgorithmName for the wrapped IDigest object. More...
 

Detailed Description

This interface represents the wrapper for IDigest that provides the ability to switch between bouncy-castle and bouncy-castle FIPS implementations.

Member Function Documentation

◆ Digest() [1/2]

byte [] iText.Commons.Bouncycastle.Crypto.IDigest.Digest ( )

Calls actual Digest method for the wrapped IDigest object. Leaves the digest reset.

Returns
byte array.

Implements iText.Commons.Digest.IMessageDigest.

Implemented in iText.Bouncycastlefips.Crypto.DigestBCFips, and iText.Bouncycastle.Crypto.DigestBC.

◆ Digest() [2/2]

byte [] iText.Commons.Bouncycastle.Crypto.IDigest.Digest ( byte[]  enc2 )

Calls actual Digest method for the wrapped IDigest object.

Parameters
enc2 byte array
Returns
byte array.

Implements iText.Commons.Digest.IMessageDigest.

Implemented in iText.Bouncycastlefips.Crypto.DigestBCFips, and iText.Bouncycastle.Crypto.DigestBC.

◆ GetAlgorithmName()

string iText.Commons.Bouncycastle.Crypto.IDigest.GetAlgorithmName ( )

Gets actual AlgorithmName for the wrapped IDigest object.

Returns
algorithm name.

Implements iText.Commons.Digest.IMessageDigest.

Implemented in iText.Bouncycastlefips.Crypto.DigestBCFips, and iText.Bouncycastle.Crypto.DigestBC.

◆ GetDigestLength()

int iText.Commons.Bouncycastle.Crypto.IDigest.GetDigestLength ( )

Gets byte length of wrapped digest algorithm.

Returns
digest length

Implements iText.Commons.Digest.IMessageDigest.

Implemented in iText.Bouncycastlefips.Crypto.DigestBCFips, and iText.Bouncycastle.Crypto.DigestBC.

◆ Reset()

void iText.Commons.Bouncycastle.Crypto.IDigest.Reset ( )

Calls actual Reset method for the wrapped IDigest object.

Implements iText.Commons.Digest.IMessageDigest.

Implemented in iText.Bouncycastlefips.Crypto.DigestBCFips, and iText.Bouncycastle.Crypto.DigestBC.

◆ Update() [1/2]

void iText.Commons.Bouncycastle.Crypto.IDigest.Update ( byte[]  buf )

Calls actual Update method for the wrapped IDigest object.

Parameters
buf byte array buffer

Implements iText.Commons.Digest.IMessageDigest.

Implemented in iText.Bouncycastlefips.Crypto.DigestBCFips, and iText.Bouncycastle.Crypto.DigestBC.

◆ Update() [2/2]

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

Calls actual Update method for the wrapped IDigest object.

Parameters
buf byte array buffer
off offset
len buffer length

Implements iText.Commons.Digest.IMessageDigest.

Implemented in iText.Bouncycastlefips.Crypto.DigestBCFips, and iText.Bouncycastle.Crypto.DigestBC.