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

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

Inheritance diagram for iText.Commons.Bouncycastle.Crypto.ISigner:
iText.Bouncycastle.Crypto.SignerBC iText.Bouncycastlefips.Crypto.SignerBCFips

Public Member Functions

void  InitVerify (IPublicKey publicKey)
  Calls actual InitVerify method for the wrapped ISigner object. More...
 
void  InitSign (IPrivateKey key)
  Calls actual InitVerify method for the wrapped ISigner object. More...
 
void  InitRsaPssSigner (string digestAlgoName, int saltLen, int trailerField)
  Creates actual signer object to create RSASSA-PSS signature More...
 
void  Update (byte[] buf, int off, int len)
  Calls actual Update method for the wrapped ISigner object. More...
 
void  Update (byte[] digest)
  Calls actual Update method for the wrapped ISigner object. More...
 
bool  VerifySignature (byte[] digest)
  Calls actual VerifySignature method for the wrapped ISigner object. More...
 
byte[]  GenerateSignature ()
  Calls actual GenerateSignature method for the wrapped ISigner object. More...
 
void  UpdateVerifier (byte[] digest)
  Calls actual UpdateVerifier method for the wrapped ISigner object. More...
 
void  SetDigestAlgorithm (string algorithm)
  Sets hash and encryption algorithms for the wrapped ISigner object. More...
 

Detailed Description

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

Member Function Documentation

◆ GenerateSignature()

byte [] iText.Commons.Bouncycastle.Crypto.ISigner.GenerateSignature ( )

Calls actual GenerateSignature method for the wrapped ISigner object.

Returns
byte array.

Implemented in iText.Bouncycastle.Crypto.SignerBC, and iText.Bouncycastlefips.Crypto.SignerBCFips.

◆ InitRsaPssSigner()

void iText.Commons.Bouncycastle.Crypto.ISigner.InitRsaPssSigner ( string  digestAlgoName,
int  saltLen,
int  trailerField 
)

Creates actual signer object to create RSASSA-PSS signature

Parameters
digestAlgoName digect algorithm
saltLen salt length
trailerField trailer field

Implemented in iText.Bouncycastlefips.Crypto.SignerBCFips, and iText.Bouncycastle.Crypto.SignerBC.

◆ InitSign()

void iText.Commons.Bouncycastle.Crypto.ISigner.InitSign ( IPrivateKey  key )

Calls actual InitVerify method for the wrapped ISigner object.

Parameters
publicKey public key

Implemented in iText.Bouncycastlefips.Crypto.SignerBCFips, and iText.Bouncycastle.Crypto.SignerBC.

◆ InitVerify()

void iText.Commons.Bouncycastle.Crypto.ISigner.InitVerify ( IPublicKey  publicKey )

Calls actual InitVerify method for the wrapped ISigner object.

Parameters
publicKey public key

Implemented in iText.Bouncycastlefips.Crypto.SignerBCFips, and iText.Bouncycastle.Crypto.SignerBC.

◆ SetDigestAlgorithm()

void iText.Commons.Bouncycastle.Crypto.ISigner.SetDigestAlgorithm ( string  algorithm )

Sets hash and encryption algorithms for the wrapped ISigner object.

Parameters
algorithm digest algorithm

Implemented in iText.Bouncycastlefips.Crypto.SignerBCFips, and iText.Bouncycastle.Crypto.SignerBC.

◆ Update() [1/2]

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

Calls actual Update method for the wrapped ISigner object.

Parameters
buf byte array buffer
off offset
len buffer length

Implemented in iText.Bouncycastle.Crypto.SignerBC, and iText.Bouncycastlefips.Crypto.SignerBCFips.

◆ Update() [2/2]

void iText.Commons.Bouncycastle.Crypto.ISigner.Update ( byte[]  digest )

Calls actual Update method for the wrapped ISigner object.

Parameters
buf byte array buffer

Implemented in iText.Bouncycastle.Crypto.SignerBC, and iText.Bouncycastlefips.Crypto.SignerBCFips.

◆ UpdateVerifier()

void iText.Commons.Bouncycastle.Crypto.ISigner.UpdateVerifier ( byte[]  digest )

Calls actual UpdateVerifier method for the wrapped ISigner object.

Parameters
digest byte array

Implemented in iText.Bouncycastle.Crypto.SignerBC, and iText.Bouncycastlefips.Crypto.SignerBCFips.

◆ VerifySignature()

bool iText.Commons.Bouncycastle.Crypto.ISigner.VerifySignature ( byte[]  digest )

Calls actual VerifySignature method for the wrapped ISigner object.

Parameters
digest byte array
Returns
boolean value.

Implemented in iText.Bouncycastle.Crypto.SignerBC, and iText.Bouncycastlefips.Crypto.SignerBCFips.