Show / Hide Table of Contents

Class PKCertificateWithKey

Inheritance
Object
PKCertificateWithKey
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Lacuna.Pki
Assembly: Lacuna.Pki.dll
Syntax
public class PKCertificateWithKey

Constructors

PKCertificateWithKey(PKCertificate, IPrivateKey)

Declaration
public PKCertificateWithKey(PKCertificate certificate, IPrivateKey privateKey)
Parameters
Type Name Description
PKCertificate certificate
IPrivateKey privateKey

Properties

Certificate

Declaration
public PKCertificate Certificate { get; }
Property Value
Type Description
PKCertificate

PrivateKey

Declaration
public IPrivateKey PrivateKey { get; }
Property Value
Type Description
IPrivateKey

Methods

GetEncryptionCsp()

Declaration
public IEncryptionCsp GetEncryptionCsp()
Returns
Type Description
IEncryptionCsp

GetSignatureCsp(DigestAlgorithm)

Declaration
public ISignatureCsp GetSignatureCsp(DigestAlgorithm digestAlgorithm)
Parameters
Type Name Description
DigestAlgorithm digestAlgorithm
Returns
Type Description
ISignatureCsp

GetSignatureCsp(SignatureAlgorithm)

Declaration
public ISignatureCsp GetSignatureCsp(SignatureAlgorithm signatureAlgorithm)
Parameters
Type Name Description
SignatureAlgorithm signatureAlgorithm
Returns
Type Description
ISignatureCsp

SignData(DigestAlgorithm, Byte[])

Declaration
public byte[] SignData(DigestAlgorithm digestAlgorithm, byte[] buffer)
Parameters
Type Name Description
DigestAlgorithm digestAlgorithm
Byte[] buffer
Returns
Type Description
Byte[]

SignData(SignatureAlgorithm, Byte[])

Declaration
public byte[] SignData(SignatureAlgorithm signatureAlgorithm, byte[] buffer)
Parameters
Type Name Description
SignatureAlgorithm signatureAlgorithm
Byte[] buffer
Returns
Type Description
Byte[]

SignHash(DigestAlgorithm, Byte[])

Declaration
public byte[] SignHash(DigestAlgorithm digestAlgorithm, byte[] hash)
Parameters
Type Name Description
DigestAlgorithm digestAlgorithm
Byte[] hash
Returns
Type Description
Byte[]

SignHash(SignatureAlgorithm, Byte[])

Declaration
public byte[] SignHash(SignatureAlgorithm signatureAlgorithm, byte[] hash)
Parameters
Type Name Description
SignatureAlgorithm signatureAlgorithm
Byte[] hash
Returns
Type Description
Byte[]

VerifyData(DigestAlgorithm, Byte[], Byte[])

Declaration
public bool VerifyData(DigestAlgorithm digestAlgorithm, byte[] dataSigned, byte[] signature)
Parameters
Type Name Description
DigestAlgorithm digestAlgorithm
Byte[] dataSigned
Byte[] signature
Returns
Type Description
Boolean

VerifyData(SignatureAlgorithm, Byte[], Byte[])

Declaration
public bool VerifyData(SignatureAlgorithm signatureAlgorithm, byte[] dataSigned, byte[] signature)
Parameters
Type Name Description
SignatureAlgorithm signatureAlgorithm
Byte[] dataSigned
Byte[] signature
Returns
Type Description
Boolean

VerifyHash(DigestAlgorithm, Byte[], Byte[])

Declaration
public bool VerifyHash(DigestAlgorithm digestAlgorithm, byte[] hashSigned, byte[] signature)
Parameters
Type Name Description
DigestAlgorithm digestAlgorithm
Byte[] hashSigned
Byte[] signature
Returns
Type Description
Boolean

VerifyHash(SignatureAlgorithm, Byte[], Byte[])

Declaration
public bool VerifyHash(SignatureAlgorithm signatureAlgorithm, byte[] hashSigned, byte[] signature)
Parameters
Type Name Description
SignatureAlgorithm signatureAlgorithm
Byte[] hashSigned
Byte[] signature
Returns
Type Description
Boolean
Back to top Copyright © 2015-2020 Lacuna Software