C# 클래스 Org.BouncyCastle.Crypto.Signers.Iso9796d2Signer

ISO9796-2 - mechanism using a hash function with recovery (scheme 1)
상속: ISignerWithRecovery
파일 보기 프로젝트 열기: red-gate/iTextSharp-4.1.6 1 사용 예제들

공개 메소드들

메소드 설명
BlockUpdate ( byte input, int inOff, int length ) : void

update the internal digest with the byte array in

GenerateSignature ( ) : byte[]

Generate a signature for the loaded message using the key we were initialised with.

GetRecoveredMessage ( ) : byte[]

Return a reference to the recoveredMessage message.

HasFullMessage ( ) : bool

Return true if the full message was recoveredMessage.

Init ( bool forSigning, ICipherParameters parameters ) : void
Iso9796d2Signer ( IAsymmetricBlockCipher cipher, IDigest digest ) : System

Constructor for a signer with an explicit digest trailer.

Iso9796d2Signer ( IAsymmetricBlockCipher cipher, IDigest digest, bool isImplicit ) : System

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

Reset ( ) : void

reset the internal state

Update ( byte input ) : void

update the internal digest with the byte b

VerifySignature ( byte signature ) : bool

return true if the signature represents a ISO9796-2 signature for the passed in message.

비공개 메소드들

메소드 설명
ClearBlock ( byte block ) : void

clear possible sensitive data

IsSameAs ( byte a, byte b ) : bool

compare two byte arrays.

메소드 상세

BlockUpdate() 공개 메소드

update the internal digest with the byte array in
public BlockUpdate ( byte input, int inOff, int length ) : void
input byte
inOff int
length int
리턴 void

GenerateSignature() 공개 메소드

Generate a signature for the loaded message using the key we were initialised with.
public GenerateSignature ( ) : byte[]
리턴 byte[]

GetRecoveredMessage() 공개 메소드

Return a reference to the recoveredMessage message.
public GetRecoveredMessage ( ) : byte[]
리턴 byte[]

HasFullMessage() 공개 메소드

Return true if the full message was recoveredMessage.
public HasFullMessage ( ) : bool
리턴 bool

Init() 공개 메소드

public Init ( bool forSigning, ICipherParameters parameters ) : void
forSigning bool
parameters ICipherParameters
리턴 void

Iso9796d2Signer() 공개 메소드

Constructor for a signer with an explicit digest trailer.
public Iso9796d2Signer ( IAsymmetricBlockCipher cipher, IDigest digest ) : System
cipher IAsymmetricBlockCipher cipher to use. ///
digest IDigest digest to sign with. ///
리턴 System

Iso9796d2Signer() 공개 메소드

Generate a signer for the with either implicit or explicit trailers for ISO9796-2.
public Iso9796d2Signer ( IAsymmetricBlockCipher cipher, IDigest digest, bool isImplicit ) : System
cipher IAsymmetricBlockCipher base cipher to use for signature creation/verification
digest IDigest digest to use.
isImplicit bool whether or not the trailer is implicit or gives the hash.
리턴 System

Reset() 공개 메소드

reset the internal state
public Reset ( ) : void
리턴 void

Update() 공개 메소드

update the internal digest with the byte b
public Update ( byte input ) : void
input byte
리턴 void

VerifySignature() 공개 메소드

return true if the signature represents a ISO9796-2 signature for the passed in message.
public VerifySignature ( byte signature ) : bool
signature byte
리턴 bool