UseSmallChallenge Method
UseSmallChallenge(Boolean)
Set when the HMAC challenge will be less than 64-bytes.
C#
public ConfigureChallengeResponse UseSmallChallenge(bool setConfig = true)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | setConfig |
Returns
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().