Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RC 1.3.0 #210

Merged
merged 170 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from 163 commits
Commits
Show all changes
170 commits
Select commit Hold shift + click to select a range
4b6533f
MMCSCTTL-70: Update cmake include logic to automatically grab all inc…
IbraheemYSaleh Jun 8, 2022
49848f0
[nasa/cryptolib#145] Moved crypto modules into single source folder;
jlucas9 Apr 25, 2023
296b020
[nasa/cryptolib#145] Created sa folder with both internal and mariadb…
jlucas9 Apr 25, 2023
61fa482
[nasa/cryptolib#145] Renamed src_main to core and updated .gitignore;
jlucas9 Apr 25, 2023
cc546d5
[nasa/cryptolib#145] Removed unused and no longer functioning sdls_ep…
jlucas9 Apr 27, 2023
0ef4027
[nasa/cryptolib#145] Consolidated utils into test folder;
jlucas9 Apr 27, 2023
d89d315
[nasa/cryptolib#145] Updated readme codecov badge to look at main bra…
jlucas9 Apr 27, 2023
d4a40b4
[nasa/cryptolib#145] Created a SUPPORT build flag and moved standalon…
jlucas9 Apr 27, 2023
bb71561
[nasa/cryptolib#145] Updated build flags and CMakeLists;
jlucas9 Apr 27, 2023
9289714
Merge branch 'dev' into cryptolib#145-Config
jlucas9 Apr 27, 2023
8851670
[nasa/cryptolib#145] Updates to github workflows to for PR#158;
jlucas9 Apr 28, 2023
788b67e
[nasa/cryptolib#145] Attempt to fix failing mariadb build for PR#158;
jlucas9 Apr 28, 2023
01118d2
Workflow, testing fixes
rjbrown2 Apr 28, 2023
20d3b8b
Workflow Test Fixes
rjbrown2 Apr 28, 2023
eac31cf
MDB Workflow Testing
rjbrown2 Apr 28, 2023
1f6e6ef
Workflow MDB Testing
rjbrown2 Apr 28, 2023
b32107c
MDB Workflow Updates
rjbrown2 Apr 28, 2023
39ee1d1
MDB CI Workflow Testing
rjbrown2 Apr 28, 2023
a4023f5
MDB CI Workflow Test
rjbrown2 Apr 28, 2023
17f8537
MDB CI Testing
rjbrown2 Apr 28, 2023
0d3d5d7
Update mariadb.yml
rjbrown2 Apr 28, 2023
3092483
Update mariadb.yml
rjbrown2 Apr 28, 2023
9194d19
Update mariadb.yml
rjbrown2 Apr 28, 2023
6136f01
Update mariadb.yml
rjbrown2 Apr 28, 2023
ea719c2
MDB CI Workflow Update
rjbrown2 Apr 28, 2023
9711b88
Initial add of TM Encrypt call
dccutrig May 24, 2023
fe936c4
Merge branch 'dev' into cryptolib#145-Config
jlucas9 May 26, 2023
acd84e0
[nasa/cryptolib#145] Moved tests to seperate folders to allow easy in…
jlucas9 May 26, 2023
b1196ca
[nasa/cryptolib#145] Update codecov.yml to ignore the non-default con…
jlucas9 May 26, 2023
1ff4287
Merge pull request #158 from nasa/cryptolib#145-Config
jlucas9 May 26, 2023
ee286fe
Merge remote-tracking branch 'origin/MMCSCTTL-70' into cryptolib#159-…
jlucas9 May 30, 2023
06babb9
[nasa/cryptolib#145] Removed mariadb workflow;
jlucas9 May 30, 2023
9236fcf
TM_Apply - Working Encryption test
dccutrig May 30, 2023
c64091c
[nasa/cryptolib#145] Added initial version of Key Interface;
jlucas9 May 30, 2023
bac1674
[nasa/cryptolib#145] Cmake update to run tests from build directory i…
jlucas9 May 30, 2023
e0b8ff4
[nasa/cryptolib#159] Building but tests failing;
jlucas9 May 31, 2023
1e0e77f
[nasa/cryptolib#159] Two tests still failing after moving error check…
jlucas9 May 31, 2023
7736388
[nasa/cryptolib#159] Updated ERR_KEY_LENGTH_ERROR to check for !=, al…
jlucas9 May 31, 2023
359f482
[nasa/cryptolib#159] Update key interface to get_key instead of get_e…
jlucas9 Jun 14, 2023
2e580c9
[nasa/cryptolib#159] Key interface passing all tests, only getting on…
jlucas9 Jun 14, 2023
83b8dc7
Fix TM_Apply Encryption, Add TM_Process Encryption and AES Enc only UT
dccutrig Jun 14, 2023
ea797cf
[nasa/cryptolib#164] First attempt to have pre-allocated fields in se…
jlucas9 Jun 14, 2023
58c78a8
[nasa/cryptolib#164] Incremented CryptoLib version number as it was m…
jlucas9 Jun 15, 2023
53f1128
[nasa/cryptolib#164] Comment out debugging messages in standalone wit…
jlucas9 Jun 15, 2023
49039bf
[nasa/cryptolib#164] Added TC debug toggle command to standalone for …
jlucas9 Jun 15, 2023
ef88a4e
Merge pull request #166 from nasa/cryptolib#159-Key-Log-Mgmt
jlucas9 Jun 16, 2023
8cd913c
Merge branch 'dev' into 154-tm-encryption-support
jlucas9 Jun 16, 2023
a6eb64b
Merge pull request #168 from nasa/154-tm-encryption-support
jlucas9 Jun 16, 2023
33c027f
Merge branch 'dev' into cryptolib#164-TM-Multiple-Packets
jlucas9 Jun 20, 2023
98fcb56
[nasa/cryptolib#164] Updates to support NULL IV scenarios via Crypto_…
jlucas9 Jun 21, 2023
64343c0
[nasa/cryptolib#164] Update CI to include test build flags and sa/mar…
jlucas9 Jun 21, 2023
9475297
[nasa/cryptolib#164] Removed additional flag for enc_test since it re…
jlucas9 Jun 21, 2023
5d681e9
[nasa/cryptolib#164] Change debug define for CRYPTO IS AEAD?;
jlucas9 Jun 21, 2023
0b113dd
update Error Messages
dccutrig Jun 21, 2023
e2e5993
Fix for Issue 139
dccutrig Jun 22, 2023
f3dbe29
Additional change to byte counting logic
dccutrig Jun 22, 2023
ff42980
Updated length checking logic to be more dynamic and not rely on cases
dccutrig Jun 22, 2023
88a4a0e
Merge pull request #173 from nasa/139-inmemory-clear-mode-sa-encrypti…
dccutrig Jun 22, 2023
3752c6a
Merge branch 'dev' into cryptolib#164-TM-Multiple-Packets
jlucas9 Jun 22, 2023
22b1bdc
[nasa/cryptolib#164] Updates to latest unit test added in dev to enab…
jlucas9 Jun 22, 2023
454eff7
Merge pull request #174 from nasa/cryptolib#164-TM-Multiple-Packets
dccutrig Jun 22, 2023
b5aa96f
Review and normalized all file header include guards
dccutrig Jun 22, 2023
433beeb
Merge pull request #175 from nasa/142-reserved-identifier-violation
dccutrig Jun 22, 2023
f37cc12
Minor spacing changes
dccutrig Jun 23, 2023
945b382
TM_Apply AEAD WIP
dccutrig Jun 23, 2023
abe50da
[nasa/cryptolib#167] Remove old ansible code and create Dockerfile an…
jlucas9 Jun 30, 2023
61aa001
[nasa/cryptolib#167] Updates to enable KMC docker build;
jlucas9 Jun 30, 2023
e6bf05a
[nasa/cryptolib#167] Added lcov to the container;
jlucas9 Jun 30, 2023
408ad0d
[nasa/cryptolib#167] Break up build scripts in an attempt to streamli…
jlucas9 Jun 30, 2023
021a6f1
[nasa/cryptolib#167] Switch back to github using ubuntu-latest contai…
jlucas9 Jun 30, 2023
fc509c5
[nasa/cryptolib#167] Attempt to fix build realtive path issue;
jlucas9 Jun 30, 2023
9622e22
[nasa/cryptolib#167] Included additional dependencies in CI container…
jlucas9 Jun 30, 2023
0a3750d
[nasa/cryptolib#167] Update CI workflow to use block run;
jlucas9 Jun 30, 2023
7b951f5
[nasa/cryptolib#167] Add `sudo` back to contianer setup calls;
jlucas9 Jun 30, 2023
b6247ae
[nasa/cryptolib#167] Resort to invididual run calls for container setup;
jlucas9 Jun 30, 2023
c147f6a
[nasa/cryptolib#167] Use apt-get in CI;
jlucas9 Jun 30, 2023
c67e093
[nasa/cryptolib#167] Reduce CI dependencies;
jlucas9 Jun 30, 2023
d16c0fc
[nasa/cryptolib#167] Update CI code coverage working directory;
jlucas9 Jun 30, 2023
8ccc349
[nasa/nos3#88] Updates to conform with draco-rc4;
jlucas9 Jul 6, 2023
7fe9a3a
[nasa/nos3#88] Updates to conform with draco-rc4 continued;
jlucas9 Jul 7, 2023
1c80c4e
Merge branch 'dev' into 153-tm-support-aead
dccutrig Jul 7, 2023
d32885b
Merge branch 'dev' into 153-tm-support-aead
dccutrig Jul 7, 2023
ecb1440
WIP on merge deconfliction
dccutrig Jul 7, 2023
5fefd4c
Merge fixes, UTs passing
dccutrig Jul 10, 2023
468a312
Merge pull request #180 from nasa/153-tm-support-aead
jlucas9 Jul 10, 2023
2552902
Merge branch 'dev' into cryptolib#167-ContainerBuilds
jlucas9 Jul 10, 2023
bf9ba5e
Merge pull request #176 from nasa/cryptolib#167-ContainerBuilds
jlucas9 Jul 10, 2023
6965007
AEAD Bug fix, misc minor changes
dccutrig Jul 12, 2023
8426fff
Whitespace / formatting
dccutrig Jul 12, 2023
726d0ac
whitespace
dccutrig Jul 12, 2023
ceebbcc
Merge pull request #182 from nasa/181-aead-updates
dccutrig Jul 12, 2023
ce31f3c
[nasa/cryptolib#165] Initial draft of monitoring and control (MC) int…
jlucas9 Jul 19, 2023
6ebbba9
[nasa/cryptolib#165] Updates to unit testing and initial error checki…
jlucas9 Jul 19, 2023
b39eacc
[nasa/cryptolib#186] Updates to have SA interface confirm with other …
jlucas9 Jul 19, 2023
ab0d33f
[nasa/cryptolib#186] Additional SA renaming and new custom interface …
jlucas9 Jul 19, 2023
b10805f
Merge pull request #187 from nasa/cryptolib#165-MC
jlucas9 Jul 21, 2023
7f8777a
Merge remote-tracking branch 'origin/dev' into cryptolib#186-SA-Custom
jlucas9 Jul 21, 2023
7b8637e
Merge pull request #188 from nasa/cryptolib#186-SA-Custom
jlucas9 Jul 21, 2023
2e3b2be
Null checks on ptr frees;
Jul 26, 2023
dfe5643
Merge pull request #193 from nasa/189-free-ptr-checks
dccutrig Jul 26, 2023
9fe8788
Merge branch 'dev' into nos3#88-cfs-upgrade;
jlucas9 Jul 27, 2023
74978cd
WIP
dccutrig Aug 2, 2023
b0fa3d7
Enable TM Debug prints
dccutrig Aug 2, 2023
2e77ae0
WIP, TM plaintext_apply functions appropriately
dccutrig Aug 15, 2023
fe6a758
Pass pointer to TF buffer to TM_Apply. TM_Apply has no visibility int…
dccutrig Aug 15, 2023
5aebf5b
Merge pull request #194 from nasa/nos3#88-cfs-upgrade
jlucas9 Aug 16, 2023
06fc2c5
[nasa/nos3#133] Remove malloc for crypto_config;
jlucas9 Aug 16, 2023
beb5f80
[nasa/nos3#133] Remove malloc for crypto_config - update for kmc build;
jlucas9 Aug 16, 2023
4ebc744
[nasa/nos3#133] Define maximum for IV, SN, and PAD_SIZE in the TC sec…
jlucas9 Aug 22, 2023
94f30ec
Fix debug toggles
dccutrig Aug 22, 2023
d54a9bb
[nasa/nos3#133] Setup PR CI to trigger on main and dev branches;
jlucas9 Aug 29, 2023
7c34694
Merge pull request #195 from nasa/cryptolib#133-TC-Types
jlucas9 Aug 29, 2023
6c3fc11
TM_Process Auth testing / updates
dccutrig Aug 30, 2023
3107ec5
WIP - standlaone deframes TM appropriately
dccutrig Sep 11, 2023
2570b5b
Add configuration options to Drop Idle Frame & Idle Packets
dccutrig Sep 11, 2023
8d85b54
Minor cleanup
dccutrig Sep 12, 2023
ac8766d
Resolved merge conflicts - builds and runs
dccutrig Sep 12, 2023
eb19944
Unit test updates / fixes
dccutrig Sep 15, 2023
448e278
PR feedback changes
dccutrig Sep 15, 2023
bd6b016
Merge pull request #199 from nasa/201-cryptolib-add-tm-support
dccutrig Sep 15, 2023
1ae1b57
Initial AOS commit - copied TM structure
dccutrig Sep 18, 2023
c2b8ba8
Replace TM refs with AOS
dccutrig Sep 18, 2023
271d204
Update enums for AOS
dccutrig Sep 18, 2023
cb18ae6
Modify functions and structs for AOS
dccutrig Sep 18, 2023
b83e5a7
Add AOS Frame Security Report Struct
dccutrig Sep 20, 2023
3a8fe1d
Telemetry status word re-organization and cleanup
dccutrig Sep 20, 2023
c7c9aa8
Adjust AOD ApplySec print statements
dccutrig Sep 20, 2023
a1c5c12
Bit math update and cleanup
dccutrig Sep 20, 2023
49da99a
Remove secondary header artifacts from TM
dccutrig Sep 20, 2023
01314ee
Initial AOS Apply UTs
dccutrig Sep 20, 2023
65485ee
Add AOS Happy Path UT, and AOS Clear Mode SA (#14)
dccutrig Oct 1, 2023
c1c7919
Fix TM UT - not enforcing blank FECF
dccutrig Oct 1, 2023
e8e7cca
Add AOS UT with Clear FECF, update other AOS UT to ensure byte-by-byt…
dccutrig Oct 1, 2023
94dd85e
UPDATE API for aos fhec field, update all references to add_gvcid_man…
dccutrig Oct 1, 2023
9ab9f30
API MOD: Add AOS Insert Zone Managed Param Configs in gvcid_add_manag…
dccutrig Oct 1, 2023
5282415
Add Insert Zone UT
dccutrig Oct 1, 2023
06f04cb
Add AOS Authenticated UTs w/ varying bitmasks
dccutrig Oct 1, 2023
a0d4082
WIP on AOS Encryption UTs
dccutrig Oct 2, 2023
6f57a56
Add AOS ApplySec UT Encryption Only, no MAC
dccutrig Oct 2, 2023
016729b
[nasa/cryptolib#144] WolfSSL Crypto Module (#200)
jlucas9 Oct 4, 2023
a747faa
#177 Fix/Improvement - per SpicyDLL
rjbrown6 Oct 13, 2023
8ea632e
Merge pull request #203 from nasa/177-2-null-pointer-dereference-in-c…
jlucas9 Oct 19, 2023
07b744e
Add AOS AEAD Apply UT & SA 17
dccutrig Oct 22, 2023
0bd223c
First pass, AOS specific headers
dccutrig Oct 23, 2023
c07bd59
Normalize headers / file names
dccutrig Oct 23, 2023
3ccbacb
Update CMake for AOS_Process, find/replace for aos_process
dccutrig Oct 23, 2023
5191b09
Add AOS Process Insert Zone logic and UT
dccutrig Nov 5, 2023
f334fc8
Fix typos, add UT AOS Process AES bitmask of zeros
dccutrig Nov 5, 2023
41e440e
AOS ProcessSec UT CMAC Bitmask 1s
dccutrig Nov 5, 2023
c9d36e0
Add AOS Process UT HMAC 256 Bitmask 1s
dccutrig Nov 5, 2023
7665bab
Add AOS Process UT SHA256 Bitmask 0s
dccutrig Nov 5, 2023
101fe2b
UTs AOS Process HMAC 512, Bitmasks of 0s and 1s
dccutrig Nov 5, 2023
d2b4827
Add AOS Process AES-GCM Decryption ONLY UT
dccutrig Nov 5, 2023
0d7bb94
Update UTs to correct AOS TFVN - 01b, which is not to standard
dccutrig Nov 5, 2023
f71c845
Working AOS Apply/Process UTs for base functionality!
dccutrig Dec 11, 2023
4ab40cd
Merge branch 'dev' into 169-aos-support
dccutrig Dec 12, 2023
848515f
Merge pull request #207 from nasa/169-aos-support
jlucas9 Dec 13, 2023
981abf6
Merge Conflicts, CMAKE Typo Fix
rjbrown6 Dec 13, 2023
fbb4e0a
[nasa/cryptolib#205] Added CryptoLib_Indv_CLA and contributions secti…
jlucas9 Dec 14, 2023
ba0d9e8
Merge pull request #212 from nasa/cryptolib#205
jlucas9 Dec 18, 2023
cad63f7
Update README.md
rjbrown2 Dec 18, 2023
00ec423
Merge pull request #213 from nasa/README-Button-Update
rjbrown2 Dec 18, 2023
5735035
Update code coverage (#214)
rjbrown2 Dec 18, 2023
0875a56
[nasa/cryptolib#216] Initial draft of MC_DISABLED;
jlucas9 Jan 10, 2024
1b5a9d2
[nasa/cryptolib#216] Default to MC_INTERNAL and update KMC unit tests…
jlucas9 Jan 10, 2024
1a8a46f
Merge pull request #219 from nasa/cryptolib#216-MC-Disabled
jlucas9 Jan 11, 2024
c0a7030
KMC_CFFI_EXCLUDE Test Patch
dccutrig Jan 23, 2024
ae01a58
Add flag to convenience script
dccutrig Jan 23, 2024
8d8c7ba
Fix CFFI_EXCLUDE Flag in build.kmc... caught by CI
dccutrig Jan 23, 2024
009cc19
Merge pull request #221 from nasa/220-cffi_exclude-for-kmc-compilation
dccutrig Jan 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
218 changes: 85 additions & 133 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,166 +1,118 @@
name: Build
name: CryptoLib

on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]

jobs:
debug_libgcrypt_build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Update
run: sudo apt-get update

- name: Install Dependencies
run: sudo apt-get install -y libgpg-error-dev libgcrypt20-dev libmariadb-dev libmariadb-dev-compat

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DDEBUG=1 -DMYSQL=0 -DLIBGCRYPT=1 -DKMCCRYPTO=0

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build

- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}}
libgcrypt_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Update
run: sudo apt-get update

- name: Install Dependencies
run: sudo apt-get install -y libgpg-error-dev libgcrypt20-dev libmariadb-dev libmariadb-dev-compat libcurl4-openssl-dev

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DDEBUG=0 -DMYSQL=0 -DLIBGCRYPT=1 -DKMCCRYPTO=0

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build

- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}}

sql_libgcrypt_debug_build:
#
# Minimal Build
#
minimal_build:
# Container Setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Update
run: sudo apt-get update

- name: Install Dependencies
run: sudo apt-get install -y libgpg-error-dev libgcrypt20-dev libmariadb-dev libmariadb-dev-compat libcurl4-openssl-dev

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DDEBUG=1 -DMYSQL=1 -DLIBGCRYPT=1 -DKMCCRYPTO=0

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build

- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}}
run: sudo apt-get install -y lcov libcurl4-openssl-dev libmariadb-dev libmariadb-dev-compat libgcrypt20-dev python3
- name: Install Python Libraries
run: sudo pip install pycryptodome
# End Container Setup

sql_libgcrypt_build:
- name: Minimal Build Script
working-directory: ${{github.workspace}}
run: bash ${GITHUB_WORKSPACE}/support/scripts/build_minimal.sh

#
# Internal Build
#
internal_build:
# Container Setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Update
run: sudo apt-get update

- name: Install Dependencies
run: sudo apt-get install -y libgpg-error-dev libgcrypt20-dev libmariadb-dev libmariadb-dev-compat libcurl4-openssl-dev

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DDEBUG=0 -DMYSQL=1 -DLIBGCRYPT=1 -DKMCCRYPTO=0

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build

- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}}

sql_libgcrypt_kmc_debug_build:
run: sudo apt-get install -y lcov libcurl4-openssl-dev libmariadb-dev libmariadb-dev-compat libgcrypt20-dev python3
- name: Install Python Libraries
run: sudo pip install pycryptodome
# End Container Setup

- name: Internal Build Script
working-directory: ${{github.workspace}}
run: bash ${GITHUB_WORKSPACE}/support/scripts/build_internal.sh

- name: Code-Coverage
working-directory: ${{github.workspace}}
run: make gcov

- name: Upload
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: 71699f25-12a3-44a4-8a83-be777b9e577a
with:
files: 'coverage/*.c.gcov'

#
# KMC Build
#
kmc_build:
# Container Setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Update
run: sudo apt-get update

- name: Install Dependencies
run: sudo apt-get install -y libgpg-error-dev libgcrypt20-dev libmariadb-dev libmariadb-dev-compat libcurl4-openssl-dev

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DDEBUG=1 -DMYSQL=1 -DLIBGCRYPT=1 -DKMCCRYPTO=1

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build

- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}}

sql_libgcrypt_kmc_build:
run: sudo apt-get install -y lcov libcurl4-openssl-dev libmariadb-dev libmariadb-dev-compat libgcrypt20-dev python3
- name: Install Python Libraries
run: sudo pip install pycryptodome
# End Container Setup

- name: KMC Build Script
working-directory: ${{github.workspace}}
run: bash ${GITHUB_WORKSPACE}/support/scripts/build_kmc.sh

#
# Wolf Build
#
wolf_build:
# Container Setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Update
run: sudo apt-get update

- name: Install Dependencies
run: sudo apt-get install -y libgpg-error-dev libgcrypt20-dev libmariadb-dev libmariadb-dev-compat libcurl4-openssl-dev

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DDEBUG=0 -DMYSQL=1 -DLIBGCRYPT=1 -DKMCCRYPTO=1

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build
run: sudo apt-get install -y lcov libcurl4-openssl-dev libmariadb-dev libmariadb-dev-compat libgcrypt20-dev python3 autoconf libtool
- name: Install Python Libraries
run: sudo pip install pycryptodome
- name: Clone WolfSSL
run: git clone --depth 1 --branch v5.6.0-stable https://github.com/wolfSSL/wolfssl.git /tmp/wolfssl

- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}}
# cmake -DCMAKE_INSTALL_PREFIX=/home/runner/.local -DWOLFSSL_AESCCM=yes -DWOLFSSL_AESSIV=yes -DWOLFSSL_CMAC=yes ..;
- name: Build WolfSSL
# -DCMAKE_INSTALL_PREFIX=/home/runner/.local
#run: cd /tmp/wolfssl/;
# sudo chown -R runner /usr/local;
# ./autogen.sh;
# ./configure --enable-aesccm --enable-aessiv --enable-cmac;
# make;
# make install;
#sudo chown -R runner /usr/local;
run: mkdir /tmp/wolfssl/build;
cd /tmp/wolfssl/build;
cmake -DWOLFSSL_AESCCM=yes -DWOLFSSL_AESSIV=yes -DWOLFSSL_CMAC=yes ..;
cmake --build .;
sudo make install;
sudo ldconfig;
# End Container Setup

- name: Wolf Build Script
working-directory: ${{github.workspace}}
run: bash ${GITHUB_WORKSPACE}/support/scripts/build_wolf.sh
42 changes: 0 additions & 42 deletions .github/workflows/mariadb.yml

This file was deleted.

86 changes: 0 additions & 86 deletions .github/workflows/utest.yml

This file was deleted.

Loading
Loading