Embedded SDK
Embedded SDK
cx_chacha_poly.h
Go to the documentation of this file.
1 
2 /*******************************************************************************
3  * Ledger Nano S - Secure firmware
4  * (c) 2022 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 #if defined(HAVE_CHACHA_POLY)
19 #if defined(HAVE_POLY1305) && defined(HAVE_CHACHA)
20 
21 #ifndef CX_CHACHA_POLY_H
22 #define CX_CHACHA_POLY_H
23 
24 #if defined(HAVE_AEAD)
25 #include "lcx_aead.h"
26 #endif // HAVE_AEAD
27 #include "lcx_chacha.h"
28 #include "lcx_chacha_poly.h"
29 #include "cx_poly1305.h"
30 #include "ox.h"
31 #include <stddef.h>
32 
33 #if defined(HAVE_AEAD)
34 extern const cx_aead_info_t cx_chacha20_poly1305_info;
35 #endif // HAVE_AEAD
36 
37 #endif /* CX_CHACHA_POLY_H */
38 #endif // HAVE_POLY1305 && HAVE_CHACHA
39 #endif // HAVE_CHACHA_POLY
Authenticated Encryption with Associated Data (AEAD)
Chacha cipher.
CHACHA20_POLY1305 Authenticated Encryption with Additional Data (AEAD)