Class Utilities
Helper utilities for digital signatures.
Inheritance
System.Object
Utilities
Namespace: PSPDFKit.DigitalSignatures
Assembly: PSPDFKit.dll
Syntax
public static class Utilities
Methods
GeneratePKCS7ContainerAsync(IBuffer, IBuffer, IBuffer, HashAlgorithm)
Generates a detached signature for the provided hash in PKCS7 format.
Declaration
public static IAsyncOperation<IBuffer> GeneratePKCS7ContainerAsync(IBuffer data, IBuffer certificate, IBuffer privateKey, HashAlgorithm hashAlgorithm)
Parameters
Type | Name | Description |
---|---|---|
Windows. |
data | Hash to be signed. |
Windows. |
certificate | The certificate to use for signing. |
Windows. |
privateKey | The private key to use for signing. |
Hash |
hashAlgorithm | The algorithm that was used to generate the hash. |
Returns
Type | Description |
---|---|
Windows. |
A signature in PKCS7 DER format. |