mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-09-02 18:06:13 +02:00

Hardware bound keys buffer has additional information, that will be accessed using this new structure. structure members are: - flags, flags for hardware specific information. - key_sz, size of the plain key. Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com> Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com> Reviewed by: Kshitiz Varshney <Kshitiz.varshney@nxp.com>
28 lines
518 B
C
28 lines
518 B
C
/* SPDX-License-Identifier: GPL-2.0-only
|
|
*
|
|
* Copyright 2022 NXP
|
|
* Author: Pankaj Gupta <pankaj.gupta@nxp.com>
|
|
*/
|
|
|
|
#ifndef _HW_BOUND_KEY_H
|
|
#define _HW_BOUND_KEY_H
|
|
|
|
#include "types.h"
|
|
|
|
struct hw_bound_key_info {
|
|
/* Key types specific to the hw. [Implementation Defined]
|
|
*/
|
|
uint8_t flags;
|
|
uint8_t reserved;
|
|
/* Plain key size.
|
|
*/
|
|
uint16_t key_sz;
|
|
};
|
|
|
|
#define set_hbk_info(hbk_info, hw_flags, key_len) do {\
|
|
hbk_info->flags = hw_flags;\
|
|
hbk_info->key_sz = key_len;\
|
|
} while (0)
|
|
|
|
#endif /* _HW_BOUND_KEY_H */
|