BOLOS TEE
bolos_wrapping.h
Go to the documentation of this file.
1 /*
2 *******************************************************************************
3 * BOLOS TEE
4 * (c) 2016 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 
36 #ifndef __BOLOS_WRAPPING_H__
37 #define __BOLOS_WRAPPING_H__
38 
49 };
50 typedef enum bls_wrapping_scope_e bls_wrapping_scope_t;
51 
74 unsigned int bls_wrap(bls_wrapping_scope_t scope,
75  const uint8_t WIDE* in, size_t length,
76  uint8_t *out, size_t outLength);
77 
100 unsigned int bls_unwrap(bls_wrapping_scope_t scope, const uint8_t WIDE *in, size_t length,
101  uint8_t *out, size_t outLength);
102 
103 #endif // __BOLOS_WRAPPING_H__
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.
Definition: bolos_wrapping.h:47
Definition: bolos_wrapping.h:44
Definition: bolos_wrapping.h:45
bls_wrapping_scope_e
Describe the scope of the wrapped data.
Definition: bolos_wrapping.h:43
Definition: bolos_wrapping.h:48
Definition: bolos_wrapping.h:46
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.