zephyr/drivers/crypto/tc_shim_priv.h

39 lines
1.1 KiB
C
Raw Normal View History

/*
* Copyright (c) 2016 Intel Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @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.
*/
#ifndef __TC_SHIM_PRIV_H__
#define __TC_SHIM_PRIV_H__
#include <tinycrypt/aes.h>
struct tc_shim_drv_state {
int in_use;
// int session_key;
struct tc_aes_key_sched_struct session_key;
};
#endif /* __TC_SHIM_PRIV_H__ */