|
These functions are used by SEkey for internal purposes but they can also be used by higher levels if needed. Always check the documentation and the source code before using them.
|
time_t | sekey_gettime () |
| SEkey interface to retrieve the timestamp to be set for any KMS need. This API should be customized in order to meet the security requirements of the environment integrating the SEcube. The basic version simply retrieves the current system time, a customized version may require to get the time from an authoritative time server.
|
|
int | sekey_update_userdata () |
| Synchronize the data of SEkey stored on the SEcube of the user with the data stored on the SEcube of the administrator. Available only for the users. More...
|
|
int | sekey_check_expired_keys () |
| Check for expired keys inside SEkey. Expired keys which are still flagged as active will be deactivated. More...
|
|
int | sekey_recovery_request (std::string &user_id, std::string &serial_number) |
| Explicitly request to SEkey to execute the recovery procedure for a specific user, given his serial number. Available only for the administrator. More...
|
|
std::string | epoch_to_localtime (time_t t) |
| Convert an integer (epoch time) to the local time as readable string. More...
|
|
std::string | cryptoperiod_to_days (uint32_t n) |
| Convert an integer to number of days, hours, minutes and seconds into a readable string. More...
|
|
uint32_t | stoul_wrap (std::string &s) |
| Wrapper around stoul() function. More...
|
|
std::string | statusmap (se_key_status s) |
| Convert a key status to the corresponding string. May throw exceptions.
|
|
std::string | keytypemap (se_key_type t) |
| Convert a key type to the corresponding string.
|
|
std::string | algomap (uint32_t algorithm) |
| Map an algorithm (expressed as integer) to the corresponding algorithm expressed as string. More...
|
|
uint32_t | algolen (uint32_t algorithm) |
| Return the length (in byte) of the key, given the algorithm. Return 0 if algorithm is unknown.
|
|