BOLOS TEE
bolos.h
Go to the documentation of this file.
1 /*
2 *******************************************************************************
3 * BOLOS TEE
4 * (c) 2016, 2017 Ledger
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 ********************************************************************************/
18 
64 #include <stddef.h>
65 #include <stdint.h>
66 #include <stdbool.h>
67 
68 #define WIDE const
69 
70 #ifdef __MOXIE__
71 #ifndef __MOXIE_LITTLE_ENDIAN__
72 #error BOLOS requires a little endian moxie toolchain
73 #endif
74 #endif
75 
76 #include "bolos_core.h"
77 #include "bolos_crypto_common.h"
79 #include "bolos_crypto.h"
80 #include "bolos_wrapping.h"
81 #include "bolos_attestation.h"
82 #include "bolos_endorsement.h"
83 #include "bolos_antireplay.h"
84 #include "bolos_sharedmemory.h"
85 #include "bolos_time.h"
86 #include "bolos_continuation.h"
87 #include "bolos_utils.h"
88 #include "bolos_bip32.h"
89 #include "bolos_wallet.h"
90 #include "bolos_ui.h"
91 
92 #include "bolos_sodium.h"
93 
94 
Shared memory API providing a common zone for applications to keep persistent private data in a sessi...
User Interface functions for Bolos TEE.
Common constants and structures used by the Cryptographic API.
Interface to the main Bitcoin Wallet provided to third party applications.
Legacy attestation logic compatible with Ledger Wallet.
Generic Cryptographic API.
TEE HAL of the Cryptographic API.
BOLOS Input/Output for the TEE.
Anti replay API used to avoid reuse of formerly generated cryptographic material when supported by th...
Continuation API.
Bind data to a specific device, device session, and running application.
misc BOLOS utilities functions
Interface to low level BIP 32 operations.
Endorsement API used to prove code execution on a secure device.
Limited libsodium/NaCl implementation.
Secure time API used to provide a trusted time reference.