C# Class EU.Europa.EC.Markt.Dss.Signature.Token.AsyncSignatureTokenConnection

Sometimes, the signature process has to be split in two phases : the digest phase and the encryption phase.
Sometimes, the signature process has to be split in two phases : the digest phase and the encryption phase. This separation is useful when the file and the SSCD are not on the same hardware. Two implementation of AsyncSignatureTokenConnection are provided. Only MSCAPI requires the signature to be done in one step (MS CAPI don't provide any RSA encryption operations).
Inheritance: ISignatureTokenConnection
Exibir arquivo Open project: nonorganic/dssnet

Public Methods

Method Description
Close ( ) : void
EncryptDigest ( Digest digest, IDssPrivateKeyEntry keyEntry ) : byte[]

The encryption of a digest it the atomic operation done by the SSCD.

The encryption of a digest it the atomic operation done by the SSCD. This encryption (RSA, DSA, ...) create the signature value.

EncryptDigest ( byte digestValue, DigestAlgorithm digestAlgo, IDssPrivateKeyEntry keyEntry ) : byte[]

The encryption of a digest it the atomic operation done by the SSCD.

The encryption of a digest it the atomic operation done by the SSCD. This encryption (RSA, DSA, ...) create the signature value.

GetKeys ( ) : IList
Sign ( Stream stream, DigestAlgorithm digestAlgo, IDssPrivateKeyEntry keyEntry ) : byte[]

Method Details

Close() public abstract method

public abstract Close ( ) : void
return void

EncryptDigest() public method

The encryption of a digest it the atomic operation done by the SSCD.
The encryption of a digest it the atomic operation done by the SSCD. This encryption (RSA, DSA, ...) create the signature value.
Sharpen.NoSuchAlgorithmException ///
public EncryptDigest ( Digest digest, IDssPrivateKeyEntry keyEntry ) : byte[]
digest Digest
keyEntry IDssPrivateKeyEntry
return byte[]

EncryptDigest() public abstract method

The encryption of a digest it the atomic operation done by the SSCD.
The encryption of a digest it the atomic operation done by the SSCD. This encryption (RSA, DSA, ...) create the signature value.
public abstract EncryptDigest ( byte digestValue, DigestAlgorithm digestAlgo, IDssPrivateKeyEntry keyEntry ) : byte[]
digestValue byte
digestAlgo DigestAlgorithm
keyEntry IDssPrivateKeyEntry
return byte[]

GetKeys() public abstract method

public abstract GetKeys ( ) : IList
return IList

Sign() public method

public Sign ( Stream stream, DigestAlgorithm digestAlgo, IDssPrivateKeyEntry keyEntry ) : byte[]
stream System.IO.Stream
digestAlgo DigestAlgorithm
keyEntry IDssPrivateKeyEntry
return byte[]