-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into cryptolib#164-TM-Multiple-Packets
# Conflicts: # src/core/crypto_tc.c # src/core/crypto_tm.c
- Loading branch information
Showing
43 changed files
with
1,639 additions
and
983 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
__pycache__ | ||
*.dat | ||
*.so | ||
build | ||
build* | ||
venv | ||
vgcore* | ||
core.* |
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 |
---|---|---|
|
@@ -28,6 +28,12 @@ [email protected] | |
|
||
// main config enums | ||
typedef enum | ||
{ | ||
KEY_TYPE_CUSTOM, | ||
KEY_TYPE_INTERNAL, | ||
KEY_TYPE_KMC | ||
} KeyType; | ||
typedef enum | ||
{ | ||
SADB_TYPE_INMEMORY, | ||
SADB_TYPE_MARIADB | ||
|
@@ -146,6 +152,7 @@ typedef enum | |
*/ | ||
typedef struct | ||
{ | ||
KeyType key_type; | ||
SadbType sadb_type; | ||
CryptographyType cryptography_type; | ||
CreateFecfBool crypto_create_fecf; // Whether or not CryptoLib is expected to calculate TC FECFs and return | ||
|
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
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,49 @@ | ||
/* Copyright (C) 2009 - 2022 National Aeronautics and Space Administration. | ||
All Foreign Rights are Reserved to the U.S. Government. | ||
This software is provided "as is" without any warranty of any kind, either expressed, implied, or statutory, | ||
including, but not limited to, any warranty that the software will conform to specifications, any implied warranties | ||
of merchantability, fitness for a particular purpose, and freedom from infringement, and any warranty that the | ||
documentation will conform to the program, or any warranty that the software will be error free. | ||
In no event shall NASA be liable for any damages, including, but not limited to direct, indirect, special or | ||
consequential damages, arising out of, resulting from, or in any way connected with the software or its | ||
documentation, whether or not based upon warranty, contract, tort or otherwise, and whether or not loss was sustained | ||
from, or arose out of the results of, or use of, the software, documentation or services provided hereunder. | ||
ITC Team | ||
NASA IV&V | ||
[email protected] | ||
*/ | ||
#ifndef _key_interface_h_ | ||
#define _key_interface_h_ | ||
|
||
#include "crypto_error.h" | ||
#include "crypto_structs.h" | ||
|
||
/* Structures */ | ||
typedef struct | ||
{ | ||
uint8_t value[KEY_SIZE]; | ||
uint32_t key_len; | ||
uint8_t key_state : 4; | ||
} crypto_key_t; | ||
#define CRYPTO_KEY_SIZE (sizeof(crypto_key_t)) | ||
|
||
typedef struct | ||
{ | ||
/* Key Interface, SDLS */ | ||
crypto_key_t* (*get_key)(uint32_t key_id); | ||
int32_t (*key_init)(void); | ||
int32_t (*key_shutdown)(void); | ||
|
||
/* Key Interface, SDLS-EP */ | ||
|
||
} KeyInterfaceStruct, *KeyInterface; | ||
|
||
/* Prototypes */ | ||
KeyInterface get_key_interface_custom(void); | ||
KeyInterface get_key_interface_internal(void); | ||
KeyInterface get_key_interface_kmc(void); | ||
|
||
#endif /* _key_interface_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
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
Oops, something went wrong.