Go to the documentation of this file.
79 #ifndef VS_IOT_SECBOX_H
80 #define VS_IOT_SECBOX_H
88 namespace VirgilIoTKit {
174 #endif // VS_IOT_SECBOX_H
Security Module implementation.
Definition: secmodule.h:458
vs_status_e
Status code.
Definition: status_code.h:77
@ VS_SECBOX_SIGNED
Signed data.
Definition: secbox.h:94
vs_status_e vs_secbox_init(vs_storage_op_ctx_t *ctx, vs_secmodule_impl_t *secmodule)
Initialize Security Box.
uint8_t vs_storage_element_id_t[VS_STORAGE_ELEMENT_ID_MAX]
Definition: storage_hal.h:72
vs_status_e vs_secbox_load(vs_storage_element_id_t id, uint8_t *data, size_t data_sz)
Load Security Box element.
ssize_t vs_secbox_file_size(vs_storage_element_id_t id)
Security Box element size.
@ VS_SECBOX_SIGNED_AND_ENCRYPTED
Signed and encrypted data.
Definition: secbox.h:95
Status codes and macroses.
vs_secbox_type_t
Security box operation type.
Definition: secbox.h:93
vs_status_e vs_secbox_save(vs_secbox_type_t type, vs_storage_element_id_t id, const uint8_t *data, size_t data_sz)
Save Security Box element.
vs_status_e vs_secbox_del(vs_storage_element_id_t id)
Delete Security Box element.
Storage element context.
Definition: storage_hal.h:221
vs_status_e vs_secbox_deinit(void)
Destroy Security Box.
Security Module implementations signatures.