SmFsCreateFileClr

Synopsis
int SmFsCreateFileClr(const char * name,
    		       unsigned int len);
Description

Allocates NVRAM memory and a directory entry for an unencrypted file.  Once a file has been created, its size can not be changed.

NOTE   Clear files are not encrypted. This means that they are faster, compared to encrypted files, when reading and especially, writing.

The confidentiality of the file contents is protected by Tamper Resistance only.

Clear files are suitable for logs.

The advantage of these files is they are quicker to update than an encrypted file.

Parameters
name Pointer to the absolute path of file to create.
len Size of file to create (in bytes).
Return Value

Returns 0 or an error condition.