BOLOS TEE
bolos_antireplay.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 
33 #ifndef __BOLOS_ANTIREPLAY_H__
34 #define __BOLOS_ANTIREPLAY_H__
35 
36 
42 int bls_antireplay_supported(void);
43 
55 int bls_antireplay_create(uint8_t *referenceOut, size_t referenceOutLength);
56 
71 int bls_antireplay_query(uint8_t *reference, size_t referenceLength, uint32_t *value);
72 
84 int bls_antireplay_increase(uint8_t *reference, size_t referenceLength);
85 
97 int bls_antireplay_delete(uint8_t *reference, size_t referenceLength);
98 
99 #endif // __BOLOS_ANTIREPLAY_H__
int bls_antireplay_query(uint8_t *reference, size_t referenceLength, uint32_t *value)
Query the value of an anti-replay counter.
int bls_antireplay_create(uint8_t *referenceOut, size_t referenceOutLength)
Create a new anti-replay counter.
int bls_antireplay_delete(uint8_t *reference, size_t referenceLength)
Delete a previously created anti-replay counter.
int bls_antireplay_increase(uint8_t *reference, size_t referenceLength)
Increase the value of an anti-replay counter.
int bls_antireplay_supported(void)
Check if antireplay hardware APIs are supported on this platform.