Show / Hide Table of Contents
Editar no GitHub

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

| Improve this Doc View Source

PKCertificateWithKey(PKCertificate, IPrivateKey)

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

Properties

| Improve this Doc View Source

Certificate

Declaration
public PKCertificate Certificate { get; }
Property Value
Type Description
PKCertificate
| Improve this Doc View Source

PrivateKey

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

Methods

| Improve this Doc View Source

GetEncryptionCsp()

Declaration
public IEncryptionCsp GetEncryptionCsp()
Returns
Type Description
IEncryptionCsp
| Improve this Doc View Source

GetSignatureCsp(DigestAlgorithm)

Declaration
public ISignatureCsp GetSignatureCsp(DigestAlgorithm digestAlgorithm)
Parameters
Type Name Description
DigestAlgorithm digestAlgorithm
Returns
Type Description
ISignatureCsp
| Improve this Doc View Source

GetSignatureCsp(SignatureAlgorithm)

Declaration
public ISignatureCsp GetSignatureCsp(SignatureAlgorithm signatureAlgorithm)
Parameters
Type Name Description
SignatureAlgorithm signatureAlgorithm
Returns
Type Description
ISignatureCsp
| Improve this Doc View Source

SignData(DigestAlgorithm, Byte[])

Declaration
public byte[] SignData(DigestAlgorithm digestAlgorithm, byte[] buffer)
Parameters
Type Name Description
DigestAlgorithm digestAlgorithm
Byte[] buffer
Returns
Type Description
Byte[]
| Improve this Doc View Source

SignData(SignatureAlgorithm, Byte[])

Declaration
public byte[] SignData(SignatureAlgorithm signatureAlgorithm, byte[] buffer)
Parameters
Type Name Description
SignatureAlgorithm signatureAlgorithm
Byte[] buffer
Returns
Type Description
Byte[]
| Improve this Doc View Source

SignHash(DigestAlgorithm, Byte[])

Declaration
public byte[] SignHash(DigestAlgorithm digestAlgorithm, byte[] hash)
Parameters
Type Name Description
DigestAlgorithm digestAlgorithm
Byte[] hash
Returns
Type Description
Byte[]
| Improve this Doc View Source

SignHash(SignatureAlgorithm, Byte[])

Declaration
public byte[] SignHash(SignatureAlgorithm signatureAlgorithm, byte[] hash)
Parameters
Type Name Description
SignatureAlgorithm signatureAlgorithm
Byte[] hash
Returns
Type Description
Byte[]
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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