Show / Hide Table of Contents

UseSmallChallenge Method

UseSmallChallenge(bool)

Set when the HMAC challenge will be less than 64-bytes.

C#
public ConfigureChallengeResponse UseSmallChallenge(bool setConfig = true)

Parameters

Type Name Description
bool setConfig

Returns

ConfigureChallengeResponse

The current ConfigureChallengeResponse instance.

Remarks

The traditional HMAC challenge is exactly 64-bytes. The YubiKey has a setting that indicates a key of less than 64 bytes.

Warning: It's important to choose this setting correctly. If you set this setting and submit a full 64-byte challenge to the YubiKey, then the last byte will be truncated, resulting in a different response.

This setting is only valid if configuring for an HMAC challenge. If you set this for a Yubico OTP challenge, an System.InvalidOperationException will be thrown when you call Execute().

In this article
Back to top Generated by DocFX