BOLOS TEE
Data Structures | Typedefs | Functions
bolos_core.h File Reference

BOLOS Input/Output for the TEE. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  bls_area_s
 Describe a buffer and length data structure. More...
 

Typedefs

typedef struct bls_area_s bls_area_t
 

Functions

void bls_set_return (const void *addr, size_t length)
 send a result back to Normal World More...
 
size_t bls_get_input_parameters_length (void)
 get the available size of Normal World input parameters More...
 
size_t bls_copy_input_parameters (const uint8_t *parameters, uint32_t offset, size_t parametersLength)
 copy Normal World parameters to the executed code More...
 
uint32_t bls_check_api_level (void)
 get the current API level More...
 
void _exit (uint32_t status)
 halt executed code More...
 

Detailed Description

BOLOS Input/Output for the TEE.

Author
Ledger Firmware Team hello.nosp@m.@led.nosp@m.ger.f.nosp@m.r
Version
1.0
Date
29th of February 2016

Allow executed code to retrieve parameters and return results

This API is TEE / stateless device specific

Function Documentation

void _exit ( uint32_t  status)

halt executed code

Parameters
[in]statusexit status (discarded)
uint32_t bls_check_api_level ( void  )

get the current API level

Returns
API level
size_t bls_copy_input_parameters ( const uint8_t *  parameters,
uint32_t  offset,
size_t  parametersLength 
)

copy Normal World parameters to the executed code

Parameters
[out]parametersbuffer containing the parameter value
[in]offsetoffset to start copying the Normal World input parameters from
[in]parametersLengthlength of Normal World input parameters to copy
Returns
size of parameters copied
size_t bls_get_input_parameters_length ( void  )

get the available size of Normal World input parameters

Returns
size of input parameters
void bls_set_return ( const void *  addr,
size_t  length 
)

send a result back to Normal World

Parameters
[in]addrthe buffer containing the data to return
[in]lengthlength of the data to return