-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c213e2c
commit 2a0b9f5
Showing
12 changed files
with
140 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/*********************************************************************************************************************** | ||
* Copyright [2020] Renesas Electronics Corporation and/or its affiliates. All Rights Reserved. | ||
* | ||
* This software and documentation are supplied by Renesas Electronics America Inc. and may only be used with products | ||
* of Renesas Electronics Corp. and its affiliates ("Renesas"). No other uses are authorized. Renesas products are | ||
* sold pursuant to Renesas terms and conditions of sale. Purchasers are solely responsible for the selection and use | ||
* of Renesas products and Renesas assumes no liability. No license, express or implied, to any intellectual property | ||
* right is granted by Renesas. This software is protected under all applicable laws, including copyright laws. Renesas | ||
* reserves the right to change or discontinue this software and/or this documentation. THE SOFTWARE AND DOCUMENTATION | ||
* IS DELIVERED TO YOU "AS IS," AND RENESAS MAKES NO REPRESENTATIONS OR WARRANTIES, AND TO THE FULLEST EXTENT | ||
* PERMISSIBLE UNDER APPLICABLE LAW, DISCLAIMS ALL WARRANTIES, WHETHER EXPLICITLY OR IMPLICITLY, INCLUDING WARRANTIES | ||
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT, WITH RESPECT TO THE SOFTWARE OR | ||
* DOCUMENTATION. RENESAS SHALL HAVE NO LIABILITY ARISING OUT OF ANY SECURITY VULNERABILITY OR BREACH. TO THE MAXIMUM | ||
* EXTENT PERMITTED BY LAW, IN NO EVENT WILL RENESAS BE LIABLE TO YOU IN CONNECTION WITH THE SOFTWARE OR DOCUMENTATION | ||
* (OR ANY PERSON OR ENTITY CLAIMING RIGHTS DERIVED FROM YOU) FOR ANY LOSS, DAMAGES, OR CLAIMS WHATSOEVER, INCLUDING, | ||
* WITHOUT LIMITATION, ANY DIRECT, CONSEQUENTIAL, SPECIAL, INDIRECT, PUNITIVE, OR INCIDENTAL DAMAGES; ANY LOST PROFITS, | ||
* OTHER ECONOMIC DAMAGE, PROPERTY DAMAGE, OR PERSONAL INJURY; AND EVEN IF RENESAS HAS BEEN ADVISED OF THE POSSIBILITY | ||
* OF SUCH LOSS, DAMAGES, CLAIMS OR COSTS. | ||
**********************************************************************************************************************/ | ||
|
||
#ifndef CRYPTO_KEYS_H_ | ||
#define CRYPTO_KEYS_H_ | ||
|
||
#include "psa/crypto_types.h" | ||
#include "psa/crypto_values.h" | ||
|
||
/* Set this to 32 for now since we only support SECP256R */ | ||
#define MAX_IAK_BYTES 32U | ||
|
||
#define MAX_HUK_BYTES 32U | ||
|
||
/** IAK definition */ | ||
typedef struct st_iak_data_t | ||
{ | ||
uint8_t key[MAX_IAK_BYTES]; | ||
uint32_t key_size; | ||
psa_ecc_curve_t curve_type; | ||
} iak_data_t; | ||
|
||
/** HUK definition. */ | ||
typedef struct st_huk_data_t | ||
{ | ||
uint8_t key[MAX_HUK_BYTES]; | ||
uint32_t key_size; | ||
} huk_data_t; | ||
|
||
#endif /* CRYPTO_KEYS_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters