namespace ProtonVPN.OperatingSystems.WebAuthn.Interop;
///
/// Contains WebAuthn API constants.
///
public static class ApiConstants
{
///
/// WebAuthn operation type used when creating new FIDO2 credentials.
///
public const string ClientDataCredentialCreate = "webauthn.create";
///
/// WebAuthn operation type used when creating new FIDO U2F credentials.
///
public const string ClientDataCredentialCreateU2F = "navigator.id.finishEnrollment";
///
/// WebAuthn operation type used for authentication with FIDO2 credentials.
///
public const string ClientDataCredentialGet = "webauthn.get";
///
/// WebAuthn operation type used for authentication with FIDO U2F credentials.
///
public const string ClientDataCredentialGetU2F = "navigator.id.getAssertion";
///
/// Default timeut for WebAuthn operations.
///
public const int DefaultTimeoutMilliseconds = 60000;
///
/// Corresponds to WEBAUTHN_CTAP_ONE_HMAC_SECRET_LENGTH.
///
public const uint CtapOneHmacSecretLength = PInvoke.WEBAUTHN_CTAP_ONE_HMAC_SECRET_LENGTH;
///
/// Corresponds to WEBAUTHN_CREDENTIAL_TYPE_PUBLIC_KEY.
///
public const string CredentialTypePublicKey = PInvoke.WEBAUTHN_CREDENTIAL_TYPE_PUBLIC_KEY;
///
/// Corresponds to WEBAUTHN_HASH_ALGORITHM_SHA_256.
///
public const string HashAlgorithmSha256 = PInvoke.WEBAUTHN_HASH_ALGORITHM_SHA_256;
///
/// Corresponds to WEBAUTHN_HASH_ALGORITHM_SHA_384.
///
public const string HashAlgorithmSha384 = PInvoke.WEBAUTHN_HASH_ALGORITHM_SHA_384;
///
/// Corresponds to WEBAUTHN_HASH_ALGORITHM_SHA_512.
///
public const string HashAlgorithmSha512 = PInvoke.WEBAUTHN_HASH_ALGORITHM_SHA_512;
///
/// Corresponds to WEBAUTHN_EXTENSIONS_IDENTIFIER_CRED_PROTECT.
///
public const string ExtensionIdentifierCredProtect = PInvoke.WEBAUTHN_EXTENSIONS_IDENTIFIER_CRED_PROTECT;
///
/// Corresponds to WEBAUTHN_EXTENSIONS_IDENTIFIER_CRED_BLOB.
///
public const string ExtensionIdentifierCredBlob = PInvoke.WEBAUTHN_EXTENSIONS_IDENTIFIER_CRED_BLOB;
///
/// Corresponds to WEBAUTHN_EXTENSIONS_IDENTIFIER_MIN_PIN_LENGTH.
///
public const string ExtensionIdentifierMinPinLength = PInvoke.WEBAUTHN_EXTENSIONS_IDENTIFIER_MIN_PIN_LENGTH;
///
/// Corresponds to WEBAUTHN_EXTENSIONS_IDENTIFIER_HMAC_SECRET.
///
public const string ExtensionIdentifierHmacSecret = PInvoke.WEBAUTHN_EXTENSIONS_IDENTIFIER_HMAC_SECRET;
}