OathChallengeResponseBaseCommand Class
Namespace: Yubico.YubiKey.Oath.Commands Assembly: Yubico.YubiKey.dllProvides helper methods that are used to calculate challenge-response for the commands: SetPassword, Validate, CalculateCredential, CalculateAllCredentials.
C#
public abstract class OathChallengeResponseBaseCommand : Object
Inheritance
System.Object
OathChallengeResponseBaseCommand
Constructors
Name | Description |
---|---|
OathChallengeResponseBaseCommand() |
Methods
Name | Description |
---|---|
CalculateResponse(ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>) | Calculates HMAC using SHA1 as a hash function. |
CalculateSecret(ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>) | Passes a user-supplied UTF-8 encoded password through 1000 rounds of PBKDF2 with the salt value (the deviceID returned in SelectResponse). |
GenerateChallenge() | |
GenerateRandomChallenge() | Generates random 8 bytes that can be used as challenge for authentication. |
GenerateTotpChallenge(Nullable<CredentialPeriod>) | Generates 8 bytes challenge that can be used for TOTP credential calculation. |