xref: /freebsd/crypto/libecc/src/examples/sss/sss_private.h (revision f0865ec9906d5a18fa2a3b61381f22ce16e606ad)
1*f0865ec9SKyle Evans /*
2*f0865ec9SKyle Evans  *  Copyright (C) 2021 - This file is part of libecc project
3*f0865ec9SKyle Evans  *
4*f0865ec9SKyle Evans  *  Authors:
5*f0865ec9SKyle Evans  *      Ryad BENADJILA <ryadbenadjila@gmail.com>
6*f0865ec9SKyle Evans  *      Arnaud EBALARD <arnaud.ebalard@ssi.gouv.fr>
7*f0865ec9SKyle Evans  *
8*f0865ec9SKyle Evans  *  This software is licensed under a dual BSD and GPL v2 license.
9*f0865ec9SKyle Evans  *  See LICENSE file at the root folder of the project.
10*f0865ec9SKyle Evans  */
11*f0865ec9SKyle Evans #ifndef __SSS_PRIVATE_H__
12*f0865ec9SKyle Evans #define __SSS_PRIVATE_H__
13*f0865ec9SKyle Evans 
14*f0865ec9SKyle Evans /* NOTE: this is a header that is private to SSS
15*f0865ec9SKyle Evans  * and should not be included elsewhare to avoid exposing
16*f0865ec9SKyle Evans  * unnecessary APIs and symbols when only using SSS.
17*f0865ec9SKyle Evans  */
18*f0865ec9SKyle Evans 
19*f0865ec9SKyle Evans /* NOTE: we need the arithmetic library for SSS as all
20*f0865ec9SKyle Evans  * operations will take place in Fp with p a public known
21*f0865ec9SKyle Evans  * prime number.
22*f0865ec9SKyle Evans  */
23*f0865ec9SKyle Evans #include <libecc/lib_ecc_config.h>
24*f0865ec9SKyle Evans #include <libecc/libarith.h>
25*f0865ec9SKyle Evans /* We use HMAC */
26*f0865ec9SKyle Evans #include <libecc/hash/hmac.h>
27*f0865ec9SKyle Evans /* We generate random */
28*f0865ec9SKyle Evans #include <libecc/external_deps/rand.h>
29*f0865ec9SKyle Evans 
30*f0865ec9SKyle Evans #endif /* __SSS_PRIVATE_H__ */
31