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.Storage.Streams.IBuffer | data | Hash to be signed. |
Windows.Storage.Streams.IBuffer | certificate | The certificate to use for signing. |
Windows.Storage.Streams.IBuffer | privateKey | The private key to use for signing. |
HashAlgorithm | hashAlgorithm | The algorithm that was used to generate the hash. |
Returns
Type | Description |
---|---|
Windows.Foundation.IAsyncOperation<Windows.Storage.Streams.IBuffer> | A signature in PKCS7 DER format. |