1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/libcose/include/cose/crypto/riot.h
2022-05-17 10:51:34 +02:00

57 lines
997 B
C

/*
* Copyright (C) 2022 Inria
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup pkg_libcose
*
* @{
*
* @file
* @brief Crypto function api for glueing RIOT crypto libraries
*
* @author Francisco Molina <francois-xavier.molina@inria.fr>
*/
#ifndef COSE_CRYPTO_RIOT_H
#define COSE_CRYPTO_RIOT_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef AUTO_INIT_PRIO_MOD_LIBCOSE
/**
* @brief libCOSE init priority
*/
#define AUTO_INIT_PRIO_MOD_LIBCOSE 1050
#endif
/**
* @name list of provided algorithms
*
* @{
*/
#define HAVE_ALGO_CHACHA20POLY1305
/** @} */
/**
* @brief Initialize libCOSE RIOT crypto backend
*
* @note Automatically called if 'auto_init_libcose_crypt_riot' is included
*
*/
void libcose_crypt_init(void);
#ifdef __cplusplus
}
#endif
#endif /* COSE_CRYPTO_RIOT_H */
/** @} */