BOLOS TEE
bolos_time.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 
32 #ifndef __BOLOS_TIME_H__
33 #define __BOLOS_TIME_H__
34 
35 
41 int bls_time_supported(void);
42 
60 int bls_time_delta(uint8_t *referenceOut, size_t referenceOutLength, uint64_t* delta, uint8_t *trusted);
61 
73 int bls_time(uint64_t *time, uint8_t *trusted);
74 
75 
76 #endif // __BOLOS_TIME_H__
int bls_time_supported(void)
Check if time hardware APIs are supported on this platform.
int bls_time_delta(uint8_t *referenceOut, size_t referenceOutLength, uint64_t *delta, uint8_t *trusted)
Return the time difference in seconds between two calls.
int bls_time(uint64_t *time, uint8_t *trusted)
Return the time as the number of seconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC)...