ResponseFormat Class
Namespace: Yubico.YubiKey.Oath Assembly: Yubico.YubiKey.dllThe response format from OATH application.
C#
public sealed class ResponseFormat : Enum
Inheritance
System.Object
ResponseFormat
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.
Fields
Name | Description |
---|---|
Full | A full response is the full hash, where the first 4 bytes contain the generated one-time password (OTP). |
Truncated | A truncated response only contains the generated four-byte one-time password (OTP). |
value__ |