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
Afficher le fichier Open project: nonorganic/dssnet

Méthodes publiques

Méthode 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 méthode

public abstract Close ( ) : void
Résultat void

EncryptDigest() public méthode

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
Résultat byte[]

EncryptDigest() public abstract méthode

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
Résultat byte[]

GetKeys() public abstract méthode

public abstract GetKeys ( ) : IList
Résultat IList

Sign() public méthode

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