Describes TEE trusted storage. These APIs are stubbed on QNX PDK.
Functions | |
void | TEE_GetObjectInfo1 (TEE_ObjectHandle object, TEE_ObjectInfo *objectInfo) |
This API is stubbed on QNX PDK. More... | |
void | TEE_RestrictObjectUsage1 (TEE_ObjectHandle object, uint32_t objectUsage) |
This API is stubbed on QNX PDK. More... | |
void | TEE_CloseObject (TEE_ObjectHandle object) |
This API is stubbed on QNX PDK. More... | |
void | TEE_ResetTransientObject (TEE_ObjectHandle object) |
This API is stubbed on QNX PDK. More... | |
void | TEE_CopyObjectAttributes (TEE_ObjectHandle destObject, TEE_ObjectHandle srcObject) |
This API is stubbed on QNX PDK. More... | |
TEE_Result | TEE_GenerateKey (TEE_ObjectHandle object, uint32_t keySize, TEE_Attribute *params, uint32_t paramCount) |
This API is stubbed on QNX PDK. More... | |
TEE_Result | TEE_OpenPersistentObject (uint32_t storageID, void *objectID, size_t objectIDLen, uint32_t flags, TEE_ObjectHandle *object) |
This API is stubbed on QNX PDK. More... | |
TEE_Result | TEE_CreatePersistentObject (uint32_t storageID, void *objectID, size_t objectIDLen, uint32_t flags, TEE_ObjectHandle attributes, void *initialData, size_t initialDataLen, TEE_ObjectHandle *object) |
This API is stubbed on QNX PDK. More... | |
void | TEE_CloseAndDeletePersistentObject1 (TEE_ObjectHandle object) |
This API is stubbed on QNX PDK. More... | |
TEE_Result | TEE_RenamePersistentObject (TEE_ObjectHandle object, void *newObjectID, size_t newObjectLen) |
This API is stubbed on QNX PDK. More... | |
TEE_Result | TEE_ReadObjectData (TEE_ObjectHandle object, void *buffer, size_t size, uint32_t *count) |
This API is stubbed on QNX PDK. More... | |
TEE_Result | TEE_WriteObjectData (TEE_ObjectHandle object, void *buffer, size_t size) |
This API is stubbed on QNX PDK. More... | |
TEE_Result | TEE_TruncateObjectData (TEE_ObjectHandle object, size_t size) |
This API is stubbed on QNX PDK. More... | |
TEE_Result | TEE_SeekObjectData (TEE_ObjectHandle object, int32_t offset, TEE_Whence whence) |
This API is stubbed on QNX PDK. More... | |
void TEE_CloseAndDeletePersistentObject1 | ( | TEE_ObjectHandle | object | ) |
This API is stubbed on QNX PDK.
Marks an object for deletion and closes the object handle.
Deleting an object is atomic. Once this function returns the object is definitetly deleted and no more open handles for that object exist.
(QNX PDK Only) Error behavior: prints "unsupported operation" if debug-overlay is enabled and returns without error.
(QNX PDK Only) Side effects: N/A
object | An opaque handle for storage object. |
void TEE_CloseObject | ( | TEE_ObjectHandle | object | ) |
This API is stubbed on QNX PDK.
Closes an open Object handle.
The object can be persistent or transient.
(QNX PDK Only) Error behavior: prints "unsupported operation" if debug-overlay is enabled and returns without error.
(QNX PDK Only) Side effects: N/A
object | An Opaque handle for storage object. |
void TEE_CopyObjectAttributes | ( | TEE_ObjectHandle | destObject, |
TEE_ObjectHandle | srcObject | ||
) |
This API is stubbed on QNX PDK.
Populates an uninitialized object handle with the attributes of another pre-populated object.
(QNX PDK Only) Error behavior: prints "unsupported operation" if debug-overlay is enabled and returns without error.
(QNX PDK Only) Side effects: N/A
destObject | An uninitialized transient object handle. |
srcObject | A pre-populated transient object handle. |
TEE_Result TEE_CreatePersistentObject | ( | uint32_t | storageID, |
void * | objectID, | ||
size_t | objectIDLen, | ||
uint32_t | flags, | ||
TEE_ObjectHandle | attributes, | ||
void * | initialData, | ||
size_t | initialDataLen, | ||
TEE_ObjectHandle * | object | ||
) |
This API is stubbed on QNX PDK.
Creates a persistent objecect with intial attributes and initial data steam content. Optionally, it returns a handle on the created object.
(QNX PDK Only) Error behavior: prints "unsupported operation" if debug-overlay is enabled and returns without error.
(QNX PDK Only) Side effects: N/A
storageID | The TEE_STORAGE_PRIVATE storage to use. |
objectID | The object identifier. This buffer cannot reside in shared memory. |
objectIDLen | The length of the buffer. |
flags | The flags which determine the settings under which the object is opened. |
attributes | A handle on a transient object from which to take the persistent object attributes. Can be TEE_HANDLE_NULL if the persistent object contains no attributes. |
initialData | Initial content of the persistent object. |
initialDataLen | Length of initial content of the persistent object. |
object | A pointer to the handle, whihc contains the opened handle upon successful completion. If this function fails the value pointed to by the handle is set to TEE_HANDLE_NULL. |
TEE_Result TEE_GenerateKey | ( | TEE_ObjectHandle | object, |
uint32_t | keySize, | ||
TEE_Attribute * | params, | ||
uint32_t | paramCount | ||
) |
This API is stubbed on QNX PDK.
Generates a random key or a key-pair and populates a transient key object with the generated key material.
(QNX PDK Only) Error behavior: prints "unsupported operation" if debug-overlay is enabled and returns without error.
(QNX PDK Only) Side effects: N/A
object | A handle to an uninitialized transient object. |
keySize | The requested key size. |
params | Parameters for key generation. |
paramCount | The number of parameters. |
void TEE_GetObjectInfo1 | ( | TEE_ObjectHandle | object, |
TEE_ObjectInfo * | objectInfo | ||
) |
This API is stubbed on QNX PDK.
Returns the characteristcs of a storage object.
It fills in the TEE_ObjectInfo structure.
(QNX PDK Only) Error behavior: prints "unsupported operation" if debug-overlay is enabled and returns without error.
(QNX PDK Only) Side effects: N/A
object | An opaque handle for storage object. |
objectInfo | a structure to store store object information. |
TEE_Result TEE_OpenPersistentObject | ( | uint32_t | storageID, |
void * | objectID, | ||
size_t | objectIDLen, | ||
uint32_t | flags, | ||
TEE_ObjectHandle * | object | ||
) |
This API is stubbed on QNX PDK.
Opens a handle on an existing persistent object.
It returns a handle that can be used to access the object's attributes and data stream.
(QNX PDK Only) Error behavior: prints "unsupported operation" if debug-overlay is enabled and returns without error.
(QNX PDK Only) Side effects: N/A
storageID | The TEE_STORAGE_PRIVATE storage to use. |
objectID | The object identifier. This buffer cannot reside in shared memory. |
objectIDLen | The length of the buffer. |
flags | The flags which determine the settings under which the object is opened. |
object | A pointer to the handle, whihc contains the opened handle upon successful completion. If this function fails the value pointed to by the handle is set to TEE_HANDLE_NULL. |
TEE_Result TEE_ReadObjectData | ( | TEE_ObjectHandle | object, |
void * | buffer, | ||
size_t | size, | ||
uint32_t * | count | ||
) |
This API is stubbed on QNX PDK.
(QNX PDK Only) Error behavior: prints "unsupported operation" if debug-overlay is enabled and returns without error.
(QNX PDK Only) Side effects: N/A
The TEE_ReadObjectData function attempts to read size bytes from the data stream associated with the object object into the buffer pointed to by buffer
object | An opaque handle for storage object. |
buffer | A pointer to the memory which, upon successful completion, contains the bytes read |
size | The number of bytes to read |
count | A pointer to the variable which upon successful completion contains the number of bytes read |
TEE_Result TEE_RenamePersistentObject | ( | TEE_ObjectHandle | object, |
void * | newObjectID, | ||
size_t | newObjectLen | ||
) |
This API is stubbed on QNX PDK.
Changes the identifier of an object. The object handle must have been opened with the write-meta access right Renaming is an atomic operation, either the object is renamed or nothing happens
(QNX PDK Only) Error behavior: prints "unsupported operation" if debug-overlay is enabled and returns without error.
(QNX PDK Only) Side effects: N/A
object | An opaque handle for storage object. |
newObjectID | The new object identifier. This buffer cannot reside in shared memory. |
newObjectLen | The length of the buffer. |
void TEE_ResetTransientObject | ( | TEE_ObjectHandle | object | ) |
This API is stubbed on QNX PDK.
Resets a transient object to its initial state after allocation i.e. makes it an uninitialized container.
(QNX PDK Only) Error behavior: prints "unsupported operation" if debug-overlay is enabled and returns without error.
(QNX PDK Only) Side effects: N/A
object | A handle to the transient object that needs to be reset. |
void TEE_RestrictObjectUsage1 | ( | TEE_ObjectHandle | object, |
uint32_t | objectUsage | ||
) |
This API is stubbed on QNX PDK.
Modifies the objectUsage flags of an object handle to restrict its usage scope.
(QNX PDK Only) Error behavior: prints "unsupported operation" if debug-overlay is enabled and returns without error.
(QNX PDK Only) Side effects: N/A
object | An opaque handle for storage object. |
objectUsage | New object usage OR combination of one or more TEE_USAGE_XXX constants. |
TEE_Result TEE_SeekObjectData | ( | TEE_ObjectHandle | object, |
int32_t | offset, | ||
TEE_Whence | whence | ||
) |
This API is stubbed on QNX PDK.
(QNX PDK Only) Error behavior: prints "unsupported operation" if debug-overlay is enabled and returns without error.
(QNX PDK Only) Side effects: N/A
The TEE_SeekObjectData function sets the data position indicator associated with the object handle.
object | An opaque handle for storage object. |
offset | The number of bytes to move the data position. A positive value moves the data position forward; a negative value moves the data position backward |
whence | The position in the data stream from which to calculate the new position |
TEE_Result TEE_TruncateObjectData | ( | TEE_ObjectHandle | object, |
size_t | size | ||
) |
This API is stubbed on QNX PDK.
(QNX PDK Only) Error behavior: prints "unsupported operation" if debug-overlay is enabled and returns without error.
(QNX PDK Only) Side effects: N/A
The function TEE_TruncateObjectData changes the size of a data stream. If size is less than the current 3138 size of the data stream then all bytes beyond size are removed. If size is greater than the current size of 3139 the data stream then the data stream is extended by adding zero bytes at the end of the stream.
object | An opaque handle for storage object. |
size | The new size of the data stream. |
TEE_Result TEE_WriteObjectData | ( | TEE_ObjectHandle | object, |
void * | buffer, | ||
size_t | size | ||
) |
This API is stubbed on QNX PDK.
(QNX PDK Only) Error behavior: prints "unsupported operation" if debug-overlay is enabled and returns without error.
(QNX PDK Only) Side effects: N/A
The TEE_WriteObjectData function writes size bytes from the buffer pointed to by buffer to the data stream associated with the open object handle object
object | An opaque handle for storage object. |
buffer | A buffer containing the data to be written |
size | The number of bytes to write |