SEcube
SEcube Open Source Library - Device
Functions
se3_cmd1_keys.h File Reference

L1 handlers for key management operations. More...

#include "se3c1.h"
#include "sha256.h"
#include "aes256.h"

Go to the source code of this file.

Functions

uint16_t L1d_key_edit (uint16_t req_size, const uint8_t *req, uint16_t *resp_size, uint8_t *resp)
 L1 KEY_EDIT. More...
 
uint16_t L1d_key_list (uint16_t req_size, const uint8_t *req, uint16_t *resp_size, uint8_t *resp)
 L1 KEY_LIST. More...
 

Detailed Description

L1 handlers for key management operations.

Author
Nicola Ferri

Function Documentation

uint16_t L1d_key_edit ( uint16_t  req_size,
const uint8_t *  req,
uint16_t *  resp_size,
uint8_t *  resp 
)

L1 KEY_EDIT.

Insert, delete or update a key

L1 KEY_EDIT.

key_edit : (op:ui16, id:ui32, validity:ui32, data-len:ui16, name-len:ui16, data[data-len], name[name-len]) => ()

uint16_t L1d_key_list ( uint16_t  req_size,
const uint8_t *  req,
uint16_t *  resp_size,
uint8_t *  resp 
)

L1 KEY_LIST.

Get a list of keys in the device

L1 KEY_LIST.

key_list : (skip:ui16, nmax:ui16) => (count:ui16, keyinfo0, keyinfo1, ...) keyinfo: (id:ui32, validity:ui32, data-len:ui16, name-len:ui16, name[name-len])