Virgil IoT KIT
|
Software Security Module implementation. More...
Go to the source code of this file.
Macros | |
#define | VS_SLOTS_STORAGE_MAX_SIZE (1024) |
Functions | |
vs_secmodule_impl_t * | vs_soft_secmodule_impl (vs_storage_op_ctx_t *slots_storage_impl) |
Initialize software crypto implementation. More... | |
vs_status_e | vs_soft_secmodule_deinit (void) |
Destroy software crypto implementation. More... | |
Software Security Module implementation.
This library can be used when no Hardware Security Module support provided.
You need initialize vs-soft-secmodule module before its usage and free it after. See code below for example:
You need to implement custom storage. As an example you can see default implementation in vs_app_storage_init_impl() function in app-storage.c file.
#define VS_SLOTS_STORAGE_MAX_SIZE (1024) |
vs_status_e vs_soft_secmodule_deinit | ( | void | ) |
Destroy software crypto implementation.
vs_secmodule_impl_t* vs_soft_secmodule_impl | ( | vs_storage_op_ctx_t * | slots_storage_impl | ) |
Initialize software crypto implementation.
[in] | slots_storage_impl | Storage context. Must not be NULL. |