| Name | ACR_secure_storage |
| Name strings | KD_ACR_secure_storage |
| Contributors | Hitoshi Ooyama, Acrodea |
| Contacts | Acrodea |
| Status | Draft |
| Version | Version 1, 2011-02-18 |
| Number | TBD |
| Dependencies | Requires OpenKODE Core 1.0 or later. This extension is written based on the wording of the OpenKODE Core 1.0 specification. |
This extension module enables to read in data in a protected area. Data in the protected area is encrypted by a key uniquely generated by device so that the data can't be transferred to any other devices. In addition, a hush value of a protected file is saved in a device, which prevents a previously backed-up file from operations such as overwriting, data restoration, etc. (Exceptionally, it is possible to overwrite a file after back-up as long as no changes have been made in the file.)
When this extension is present, its facilities are accessed by including its header file:
#include <KD/ACR_secure_storage.h>
Write in data to a protected area.
Write in a data to a protected area. It is possible to write in up to 1MByte by data, and memory of a specified volume is saved by atomic operation.
Upon the normal termination, a size of a written in data is returned.
Upon the abnormal termination, -1 is returned. For details of the error, refer to kdGetError.
Read in data from the protected area.
Read in data from the protected area. Read in all the written data.
Upon the normal termination, the size of read-in data is returned.
If a key is not present, 0 is returned as the size of read-in data.
Upon the abnormal termination, -1 is returned. For details of the error, refer to kdGetError.