|
Libu2f-emu
0.0.0
Universal 2nd Factor (U2F) Emulation C Library
|

Typedefs | |
| typedef struct payload *(* | raw_cmd_handler_t) (u2f_emu_vdev *vdev, const uint8_t *packet, size_t size) |
| Raw cmd handler for U2F APDU processing. More... | |
| typedef struct raw_cmd | raw_cmd_t |
| Raw command of U2F APDU. More... | |
Functions | |
| static struct payload * | raw_version (u2f_emu_vdev *vdev, const uint8_t *packet, size_t size) |
| static raw_cmd_handler_t | raw_cmd_get_handler (uint8_t cmd) |
| Get the raw command handler for a specific raw command. More... | |
| struct payload * | u2f_emu_vdev_raw_generate_error (uint16_t error) |
| Generate an error raw payload response. More... | |
| static struct payload * | raw_version (u2f_emu_vdev *vdev __attribute__((unused)), const uint8_t *apdu __attribute__((unused)), size_t size __attribute__((unused))) |
| The Handler for U2F_VERSION raw cmd. More... | |
| struct payload * | u2f_emu_vdev_raw_process (u2f_emu_vdev *vdev, const void *apdu, size_t size) |
| Process incoming data from a RAW APDU. More... | |
Variables | |
| static const raw_cmd_t | raw_cmds [] |
| Raw commands handlers for U2F APDU commands processing, depending of the associated command. More... | |
| static const size_t | raw_cmds_nb |
| Number of commands. More... | |
| typedef struct payload*(* raw_cmd_handler_t) (u2f_emu_vdev *vdev, const uint8_t *packet, size_t size) |
Raw cmd handler for U2F APDU processing.
| typedef struct raw_cmd raw_cmd_t |
Raw command of U2F APDU.
|
static |
Get the raw command handler for a specific raw command.
| cmd | The raw command. |
|
static |
|
static |
The Handler for U2F_VERSION raw cmd.
| vdev | The virtual device. |
| apdu | The apdu data. |
| size | The apdu data size. |
| struct payload* u2f_emu_vdev_raw_generate_error | ( | uint16_t | error | ) |
Generate an error raw payload response.
| error | The error. |
| struct payload* u2f_emu_vdev_raw_process | ( | u2f_emu_vdev * | vdev, |
| const void * | apdu, | ||
| size_t | size | ||
| ) |
Process incoming data from a RAW APDU.
| vdev | The virtual device. |
| apdu | The RAW APDU packet. |
| size | The size of the RAW APDU packet. |
|
static |
Raw commands handlers for U2F APDU commands processing, depending of the associated command.
1.8.10