-
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.
* Rebasing to collab_main, Bug Fixes, additional tests * Added Dat files, and minor ut fixes - still faulting atm * UT/EVT refactoring * Fixing CMake & Refactoring - broken validation * Fixing another CMake * Bug Fixes, UT Fixed with new layout, TODO: Find FECF Issue * WIP * Updates to error codes and unit tests * WIP - AES-GCM test vector working * WIP - improving NIST KAT * WIP - Troubleshooting commit * Revert "WIP - Troubleshooting commit" This reverts commit e24dac9. * Initial UT/Validation tests working * WIP UT modify ek_ring from hex string * Key Functionality * Test Cleanup * Adding more NIST AES-GCM 256 encryption test vectors * Added NIST authentication tag test * WIP: FECF Issues * Fixed IV_SIZE, FECF_CALC, Added DEC Tests, TODO: AUT Dec + Test, more FECF Fix, MAC Test, Remove Dat Files * Fixed Unit Tests, Cleaning up Tests, Renamed et_xxx to et_dt_xxx, TODO: Finish removing dat files, finish validation tests * renamed c/h files * WIP: AUTH Decryption * WIP: All Tests working but MAC Only AUTH Apply/Process * Encryption and decryption tests completed * Cleanup for CR 12/6 * Revert "Cleanup for CR 12/6" This reverts commit 50506d6. * Cleanup after CR for merge Co-authored-by: Robert Brown <[email protected]>
- Loading branch information
Showing
21 changed files
with
1,983 additions
and
163 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ build | |
venv | ||
*.dat | ||
.vscode | ||
__pycache__ | ||
|
||
#CMake.gitignore | ||
CMakeLists.txt.user | ||
|
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 was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
Empty file.
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 |
---|---|---|
|
@@ -14,28 +14,40 @@ | |
# NASA IV&V | ||
# [email protected] | ||
|
||
|
||
|
||
include_directories(include) | ||
include_directories(../crypto/public_inc) | ||
include_directories(../crypto/public_inc) | ||
|
||
if(ENCTEST) | ||
find_package (Python3 REQUIRED COMPONENTS Interpreter Development) | ||
endif(ENCTEST) | ||
|
||
aux_source_directory(src UTIL_SRC_FILES) | ||
aux_source_directory(app APP_SRC_FILES) | ||
aux_source_directory(app APP_SRC_FILES) | ||
|
||
file( GLOB SOURCE_FILES app/*.c ) | ||
foreach(SOURCE_PATH ${SOURCE_FILES}) | ||
|
||
get_filename_component(EXECUTABLE_NAME ${SOURCE_PATH} NAME_WE) | ||
|
||
add_executable(${EXECUTABLE_NAME} ${SOURCE_PATH}) | ||
if((NOT ${ENCTEST}) AND ${EXECUTABLE_NAME} STREQUAL et_dt_validation) | ||
continue() | ||
else() | ||
add_executable(${EXECUTABLE_NAME} ${SOURCE_PATH}) | ||
target_sources(${EXECUTABLE_NAME} PRIVATE src/shared_util.c) | ||
target_link_libraries(${EXECUTABLE_NAME} LINK_PUBLIC Crypto) | ||
endif() | ||
|
||
target_sources(${EXECUTABLE_NAME} PRIVATE src/shared_util.c) | ||
target_link_libraries(${EXECUTABLE_NAME} LINK_PUBLIC Crypto) | ||
if(${ENCTEST} AND ${EXECUTABLE_NAME} STREQUAL et_dt_validation) | ||
target_link_libraries(${EXECUTABLE_NAME} PUBLIC ${Python3_LIBRARIES}) | ||
target_include_directories(${EXECUTABLE_NAME} PUBLIC ${Python3_INCLUDE_DIRS}) | ||
endif() | ||
|
||
add_custom_command(TARGET ${EXECUTABLE_NAME} POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:${EXECUTABLE_NAME}> ${PROJECT_BINARY_DIR}/bin/${EXECUTABLE_NAME} | ||
COMMAND ${CMAKE_COMMAND} -E remove $<TARGET_FILE:${EXECUTABLE_NAME}> | ||
COMMENT "Created ${PROJECT_BINARY_DIR}/bin/${EXECUTABLE_NAME}" | ||
) | ||
endforeach(SOURCE_PATH ${SOURCE_FILES}) | ||
|
||
target_include_directories (Crypto PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) | ||
endforeach(SOURCE_PATH ${SOURCE_FILES}) | ||
|
||
target_include_directories (Crypto PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) |
Oops, something went wrong.