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

RSA-PSS as described in Pkcs# 1 v 2.1.

Note: the usual value for the salt length is the number of bytes in the hash function.

상속: ISigner
파일 보기 프로젝트 열기: nonorganic/dssnet 1 사용 예제들

공개 메소드들

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

update the internal digest with the byte array in

CreateRawSigner ( IAsymmetricBlockCipher cipher, IDigest digest ) : PssSigner
CreateRawSigner ( IAsymmetricBlockCipher cipher, IDigest contentDigest, IDigest mgfDigest, int saltLen, byte trailer ) : PssSigner
CurrentSignature ( ) : byte[]
GenerateSignature ( ) : byte[]

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

Init ( bool forSigning, ICipherParameters parameters ) : void
PssSigner ( IAsymmetricBlockCipher cipher, IDigest digest ) : System
PssSigner ( IAsymmetricBlockCipher cipher, IDigest contentDigest, IDigest mgfDigest, int saltLen ) : System
PssSigner ( IAsymmetricBlockCipher cipher, IDigest contentDigest, IDigest mgfDigest, int saltLen, byte trailer ) : System
PssSigner ( IAsymmetricBlockCipher cipher, IDigest digest, int saltLen ) : System

Basic constructor

PssSigner ( IAsymmetricBlockCipher cipher, IDigest digest, int saltLen, byte trailer ) : System
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 internal state represents the signature described in the passed in array.

비공개 메소드들

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

clear possible sensitive data

ItoOSP ( int i, byte sp ) : void

int to octet string.

MaskGeneratorFunction1 ( byte Z, int zOff, int zLen, int length ) : byte[]

mask generator function, as described in Pkcs1v2.

PssSigner ( IAsymmetricBlockCipher cipher, IDigest contentDigest1, IDigest contentDigest2, IDigest mgfDigest, int saltLen, byte trailer ) : System

메소드 상세

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

CreateRawSigner() 공개 정적인 메소드

public static CreateRawSigner ( IAsymmetricBlockCipher cipher, IDigest digest ) : PssSigner
cipher IAsymmetricBlockCipher
digest IDigest
리턴 PssSigner

CreateRawSigner() 공개 정적인 메소드

public static CreateRawSigner ( IAsymmetricBlockCipher cipher, IDigest contentDigest, IDigest mgfDigest, int saltLen, byte trailer ) : PssSigner
cipher IAsymmetricBlockCipher
contentDigest IDigest
mgfDigest IDigest
saltLen int
trailer byte
리턴 PssSigner

CurrentSignature() 공개 메소드

public CurrentSignature ( ) : byte[]
리턴 byte[]

GenerateSignature() 공개 메소드

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

Init() 공개 메소드

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

PssSigner() 공개 메소드

public PssSigner ( IAsymmetricBlockCipher cipher, IDigest digest ) : System
cipher IAsymmetricBlockCipher
digest IDigest
리턴 System

PssSigner() 공개 메소드

public PssSigner ( IAsymmetricBlockCipher cipher, IDigest contentDigest, IDigest mgfDigest, int saltLen ) : System
cipher IAsymmetricBlockCipher
contentDigest IDigest
mgfDigest IDigest
saltLen int
리턴 System

PssSigner() 공개 메소드

public PssSigner ( IAsymmetricBlockCipher cipher, IDigest contentDigest, IDigest mgfDigest, int saltLen, byte trailer ) : System
cipher IAsymmetricBlockCipher
contentDigest IDigest
mgfDigest IDigest
saltLen int
trailer byte
리턴 System

PssSigner() 공개 메소드

Basic constructor
public PssSigner ( IAsymmetricBlockCipher cipher, IDigest digest, int saltLen ) : System
cipher IAsymmetricBlockCipher the asymmetric cipher to use.
digest IDigest the digest to use.
saltLen int the length of the salt to use (in bytes).
리턴 System

PssSigner() 공개 메소드

public PssSigner ( IAsymmetricBlockCipher cipher, IDigest digest, int saltLen, byte trailer ) : System
cipher IAsymmetricBlockCipher
digest IDigest
saltLen int
trailer byte
리턴 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 internal state represents the signature described in the passed in array.
public VerifySignature ( byte signature ) : bool
signature byte
리턴 bool