Table of Contents

Enum ResponseFormat

Namespace
Yubico.YubiKey.Oath
Assembly
Yubico.YubiKey.dll

The response format from OATH application.

public enum ResponseFormat

Fields

Full = 0

A full response is the full hash, where the first 4 bytes contain the generated one-time password (OTP).

Truncated = 1

A truncated response only contains the generated four-byte one-time password (OTP).

Remarks

When the OATH application calculates an one-time password (OTP), the full value it calculates depends on the HashAlgorithm type set when the credential was created. The first 4 bytes of that value are needed to derive the one-time password (OTP), as OATH is a truncated hmac verification scheme.