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 |
---|---|---|
System.ReadOnlyMemory<System.Byte> | applicationId | The appId (origin data or hash of origin) that was provided to create this registration. |
System.ReadOnlyMemory<System.Byte> | clientDataHash | The |
Returns
System.Boolean
A bool
, true
if the signature verifies, false
otherwise.