SEcube
SEcube Open Source Library - Device
|
L1 handlers for login operations. More...
Go to the source code of this file.
Functions | |
uint16_t | L1d_challenge (uint16_t req_size, const uint8_t *req, uint16_t *resp_size, uint8_t *resp) |
L1 CHALLENGE command handler. More... | |
uint16_t | L1d_login (uint16_t req_size, const uint8_t *req, uint16_t *resp_size, uint8_t *resp) |
L1 LOGIN command handler. More... | |
uint16_t | L1d_logout (uint16_t req_size, const uint8_t *req, uint16_t *resp_size, uint8_t *resp) |
L1 LOGOUT command handler. More... | |
L1 handlers for login operations.
uint16_t L1d_challenge | ( | uint16_t | req_size, |
const uint8_t * | req, | ||
uint16_t * | resp_size, | ||
uint8_t * | resp | ||
) |
L1 CHALLENGE command handler.
Get a login challenge from the device
L1 CHALLENGE command handler.
challenge : (cc1[32], cc2[32], access:ui16) => (sc[32], sresp[32])
uint16_t L1d_login | ( | uint16_t | req_size, |
const uint8_t * | req, | ||
uint16_t * | resp_size, | ||
uint8_t * | resp | ||
) |
L1 LOGIN command handler.
Respond to challenge and complete the login
L1 LOGIN command handler.
login : (cresp[32]) => (tok[16])
uint16_t L1d_logout | ( | uint16_t | req_size, |
const uint8_t * | req, | ||
uint16_t * | resp_size, | ||
uint8_t * | resp | ||
) |
L1 LOGOUT command handler.
Log out and release resources
L1 LOGOUT command handler.
logout : () => ()