Show / Hide Table of Contents

VerifySignature Method

VerifySignature(ReadOnlyMemory<byte>, ReadOnlyMemory<byte>)

Verify the signature using the public key in the attestation cert returned by the YubiKey in the registration command/response. Use the given Client Data Hash and Application ID to build the data to verify.

C#
public bool VerifySignature(ReadOnlyMemory<byte> applicationId, ReadOnlyMemory<byte> clientDataHash)

Parameters

Type Name Description
ReadOnlyMemory<byte> applicationId

The appId (origin data or hash of origin) that was provided to create this registration.

ReadOnlyMemory<byte> clientDataHash

The clientDataHash (challenge data) that was provided to create this registration.

Returns

bool

A bool, true if the signature verifies, false otherwise.

In this article
Back to top Generated by DocFX