2016-07-20 05:20:25 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 Intel Corporation.
|
|
|
|
*
|
2017-02-19 19:07:06 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-07-20 05:20:25 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief tinycrypt driver context info
|
|
|
|
*
|
|
|
|
* The file defines the structure which is used to store per session context
|
|
|
|
* by the driver. Placed in common location so that crypto applications
|
|
|
|
* can allocate memory for the required number of sessions, to free driver
|
|
|
|
* from dynamic memory allocation.
|
|
|
|
*/
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#ifndef ZEPHYR_DRIVERS_CRYPTO_CRYPTO_TC_SHIM_PRIV_H_
|
|
|
|
#define ZEPHYR_DRIVERS_CRYPTO_CRYPTO_TC_SHIM_PRIV_H_
|
2016-07-20 05:20:25 +08:00
|
|
|
|
|
|
|
#include <tinycrypt/aes.h>
|
|
|
|
|
|
|
|
struct tc_shim_drv_state {
|
|
|
|
int in_use;
|
|
|
|
struct tc_aes_key_sched_struct session_key;
|
|
|
|
};
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#endif /* ZEPHYR_DRIVERS_CRYPTO_CRYPTO_TC_SHIM_PRIV_H_ */
|