ilusm.dev

fido

FIDO2/WebAuthn, authenticator simulation, attestation.

Load with: use fido

Quick example

use fido

result = fidoc("hello", "hello", "hello", "hello", 10)
prn(result)

Functions

Credential creation

fidoc(rp_id, rp_name, user_id, user_name, challenge)

Performs the operation. Takes rp_id, rp_name, user_id, user_name, challenge.

Authenticator simulation

fidos()

Performs the operation.

fidos1(auth, options)

Performs the operation. Takes auth, options.

fidos2(auth, cred_id)

Performs the operation. Takes auth, cred_id.

Assertion/get

fidoc1(rp_id, challenge, allow_credentials)

Performs the operation. Takes rp_id, challenge, allow_credentials.

fidos3(auth, options)

Performs the operation. Takes auth, options.

fidos4(auth, cred)

Performs the operation. Takes auth, cred.

Attestation verification

fidov(response, expected_origin, expected_rp_id)

Performs the operation. Takes response, expected_origin, expected_rp_id.

Assertion verification

fidov1(assertion, expected_origin, expected_rp_id, public_key, stored_counter)

Performs the operation. Takes assertion, expected_origin, expected_rp_id, public_key, stored_counter.

CTAP2 operations

fidoc2(device_path)

Performs the operation. Takes device_path.

fidoc3(h, params)

Performs the operation. Takes h, params.

fidoc4(h, params)

Performs the operation. Takes h, params.

Resident keys

fidom()

Performs the operation.

fidoe(pin)

Performs the operation. Takes pin.

Biometric

fidob(h, pin)

Performs the operation. Takes h, pin.

fidio(h, pin)

Performs the operation. Takes h, pin.

Enterprise attestation

fidoe1()

Performs the operation.

Extensions

fidoc5()

Performs the operation.

fidol()

Performs the operation.

FIDO U2F compatibility

fidou(app_id, challenge)

Performs the operation. Takes app_id, challenge.

fidou1(app_id, challenge, key_handle)

Performs the operation. Takes app_id, challenge, key_handle.

Common authenticators

fidoc6()

Performs the operation.

Notes

  • FIDO2/WebAuthn - passkey registration and authentication.