Loading...
Searching...
No Matches
cryptocell_310_util.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021 HAW Hamburg
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
19#ifndef CRYPTOCELL_310_UTIL_H
20#define CRYPTOCELL_310_UTIL_H
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
33
41
48static inline bool cryptocell_310_data_within_ram(const uint8_t* data)
49{
50 return ((int)data >= CPU_RAM_BASE && (int)data < CPU_RAM_BASE + CPU_RAM_SIZE);
51}
52
59
66
67#ifdef __cplusplus
68}
69#endif
70
71#endif /* CRYPTOCELL_310_UTIL_H */
void cryptocell_310_enable(void)
Enable CryptoCell module and IRQs.
void cryptocell_310_disable(void)
Disable CryptoCell module and IRQs.
void driver_cryptocell_310_setup(void)
Enables CryptoCell module, IRQs and crypto libraries on nrf52840.
static bool cryptocell_310_data_within_ram(const uint8_t *data)
Check whether the given data resides in RAM.
void driver_cryptocell_310_terminate(void)
Finishes the use of the CryptoCell library.
#define CPU_RAM_SIZE
Size of the RAM in Bytes.