Top Description Fields Constructors Methods
org.bouncycastle.crypto.fips

pack-priv Class X931Signer

extends BaseX931Signer
Class Inheritance
Imports
org.bouncycastle.crypto.internal.AsymmetricBlockCipher, .Digest, org.bouncycastle.crypto.internal.signers.BaseX931Signer, org.bouncycastle.crypto.internal.util.ISOTrailers

X9.31-1998 - signing using a hash.

The message digest hash, H, is encapsulated to form a byte string as follows

EB = 06 || PS || 0xBA || H || TRAILER
where PS is a string of bytes all of value 0xBB of length such that |EB|=|n|, and TRAILER is the ISO/IEC 10118 part number† for the digest. The byte string, EB, is converted to an integer value, the message representative, f.

Field Summary

Inherited from org.bouncycastle.crypto.internal.signers.BaseX931Signer:
TRAILER_IMPLICIT

Constructor Summary

AccessConstructor and Description
public
X931Signer(AsymmetricBlockCipher
base cipher to use for signature creation/verification
cipher
,
Digest
digest to use.
digest
,
boolean
whether or not the trailer is implicit or gives the hash.
implicit
)

Generate a signer for the with either implicit or explicit trailers for ISO9796-2.

public
X931Signer(AsymmetricBlockCipher
cipher to use.
cipher
,
Digest
digest to sign with.
digest
)

Constructor for a signer with an explicit digest trailer.

Method Summary

Inherited from org.bouncycastle.crypto.internal.signers.BaseX931Signer:
generateSignatureinitresetupdateupdateverifySignature

Constructor Detail

X931Signerback to summary
public X931Signer(AsymmetricBlockCipher cipher, Digest digest, boolean implicit)

Generate a signer for the with either implicit or explicit trailers for ISO9796-2.

Parameters
cipher:AsymmetricBlockCipher

base cipher to use for signature creation/verification

digest:Digest

digest to use.

implicit:boolean

whether or not the trailer is implicit or gives the hash.

X931Signerback to summary
public X931Signer(AsymmetricBlockCipher cipher, Digest digest)

Constructor for a signer with an explicit digest trailer.

Parameters
cipher:AsymmetricBlockCipher

cipher to use.

digest:Digest

digest to sign with.