nrfxlib API 2.7.99
Loading...
Searching...
No Matches
platform_alt.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef MBEDTLS_PLATFORM_ALT_H
8#define MBEDTLS_PLATFORM_ALT_H
9
10#include <stddef.h>
11#include <stdint.h>
12
13#if defined(MBEDTLS_CONFIG_FILE)
14#include MBEDTLS_CONFIG_FILE
15#endif
16
17#if defined(MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT)
18
19#define MBEDTLS_ERR_PLATFORM_SUCCESS (0)
20#define MBEDTLS_ERR_PLATFORM_ERROR_PARAM_NULL (-0x7001)
21#define MBEDTLS_ERR_PLATFORM_ERROR_INTERNAL (-0x7002)
22#define MBEDTLS_ERR_PLATFORM_ERROR_RNG_TEST_FAILED (-0x7003)
23#define MBEDTLS_ERR_PLATFORM_ERROR_HW_VERSION_FAILED (-0x7004)
24#define MBEDTLS_ERR_PLATFORM_ERROR_PARAM_WRITE_FAILED (-0x7005)
25#define MBEDTLS_ERR_PLATFORM_ERROR_MUTEX_NOT_INITIALIZED (-0x7016)
26#define MBEDTLS_ERR_PLATFORM_ERROR_MUTEX_FAILED (-0x7017)
27#define MBEDTLS_ERR_PLATFORM_ERROR_ENTROPY_NOT_INITIALIZED (-0x7018)
28#define MBEDTLS_ERR_PLATFORM_ERROR_ENTROPY_TRNG_TOO_LONG (-0x7019)
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
38typedef struct {
39 char dummy;
40}
41mbedtls_platform_context;
42
43
56int mbedtls_platform_setup_no_rng(void);
57
58
59#ifdef __cplusplus
60}
61#endif
62
63#endif /* MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT */
64
65#endif /* MBEDTLS_PLATFORM_ALT_H */