Class PKCertificateWithKey
Inheritance
PKCertificateWithKey
Assembly: Lacuna.Pki.dll
Syntax
public class PKCertificateWithKey
Constructors
PKCertificateWithKey(PKCertificate, IPrivateKey)
Declaration
public PKCertificateWithKey(PKCertificate certificate, IPrivateKey privateKey)
Parameters
Properties
Certificate
Declaration
public PKCertificate Certificate { get; }
Property Value
PrivateKey
Declaration
public IPrivateKey PrivateKey { get; }
Property Value
Methods
GetEncryptionCsp()
Declaration
public IEncryptionCsp GetEncryptionCsp()
Returns
GetSignatureCsp(DigestAlgorithm)
Declaration
public ISignatureCsp GetSignatureCsp(DigestAlgorithm digestAlgorithm)
Parameters
Returns
GetSignatureCsp(SignatureAlgorithm)
Declaration
public ISignatureCsp GetSignatureCsp(SignatureAlgorithm signatureAlgorithm)
Parameters
Returns
SignData(DigestAlgorithm, Byte[])
Declaration
public byte[] SignData(DigestAlgorithm digestAlgorithm, byte[] buffer)
Parameters
Returns
SignData(SignatureAlgorithm, Byte[])
Declaration
public byte[] SignData(SignatureAlgorithm signatureAlgorithm, byte[] buffer)
Parameters
Returns
SignHash(DigestAlgorithm, Byte[])
Declaration
public byte[] SignHash(DigestAlgorithm digestAlgorithm, byte[] hash)
Parameters
Returns
SignHash(SignatureAlgorithm, Byte[])
Declaration
public byte[] SignHash(SignatureAlgorithm signatureAlgorithm, byte[] hash)
Parameters
Returns
VerifyData(DigestAlgorithm, Byte[], Byte[])
Declaration
public bool VerifyData(DigestAlgorithm digestAlgorithm, byte[] dataSigned, byte[] signature)
Parameters
Returns
VerifyData(SignatureAlgorithm, Byte[], Byte[])
Declaration
public bool VerifyData(SignatureAlgorithm signatureAlgorithm, byte[] dataSigned, byte[] signature)
Parameters
Returns
VerifyHash(DigestAlgorithm, Byte[], Byte[])
Declaration
public bool VerifyHash(DigestAlgorithm digestAlgorithm, byte[] hashSigned, byte[] signature)
Parameters
Returns
VerifyHash(SignatureAlgorithm, Byte[], Byte[])
Declaration
public bool VerifyHash(SignatureAlgorithm signatureAlgorithm, byte[] hashSigned, byte[] signature)
Parameters
Returns