BOLOS TEE
|
Bind data to a specific device, device session, and running application. More...
Go to the source code of this file.
Typedefs | |
typedef enum bls_wrapping_scope_e | bls_wrapping_scope_t |
Enumerations | |
enum | bls_wrapping_scope_e { BLS_SCOPE_DEVICE, BLS_SCOPE_APPLICATION, BLS_SCOPE_SESSION, BLS_SCOPE_SESSION_APPLICATION, BLS_SCOPE_PERSONALIZATION } |
Describe the scope of the wrapped data. More... | |
Functions | |
unsigned int | bls_wrap (bls_wrapping_scope_t scope, const uint8_t WIDE *in, size_t length, uint8_t *out, size_t outLength) |
Wrap data. More... | |
unsigned int | bls_unwrap (bls_wrapping_scope_t scope, const uint8_t WIDE *in, size_t length, uint8_t *out, size_t outLength) |
Unwrap data. More... | |
Bind data to a specific device, device session, and running application.
The wrapping API allows executed code to exchange secret blobs with the Normal World to be consumed later.
Blobs can have different lifetimes described in the wrapping scope below
The lifetime of a session is defined by the lower level communication API
The size of the metadata added by the wrapping operation is implementation dependant
enum bls_wrapping_scope_e |
Describe the scope of the wrapped data.
unsigned int bls_unwrap | ( | bls_wrapping_scope_t | scope, |
const uint8_t WIDE * | in, | ||
size_t | length, | ||
uint8_t * | out, | ||
size_t | outLength | ||
) |
Unwrap data.
[in] | scope | Scope for which the data had been wrapped |
[in] | in | Input buffer containing the data to unwrap |
[in] | length | Length of the data to unwrap |
[out] | out | Output buffer to contain the unwrapped data |
[in] | outLength | Size of the output buffer containing the unwrapped data |
INVALID_PARAMETER |
unsigned int bls_wrap | ( | bls_wrapping_scope_t | scope, |
const uint8_t WIDE * | in, | ||
size_t | length, | ||
uint8_t * | out, | ||
size_t | outLength | ||
) |
Wrap data.
[in] | scope | Scope for which the data shall be wrapped |
[in] | in | Input buffer containing the data to wrap |
[in] | length | Length of the data to wrap |
[out] | out | Output buffer to contain the wrapped data |
[in] | outLength | Size of the output buffer containing the wrapped data |
INVALID_PARAMETER |