Skip to content

Commit

Permalink
Support shangmi crypto module for iOS
Browse files Browse the repository at this point in the history
Add start-up self test, including SM2/SM3/SM4/random.

Add mod application, set admin password, reset on-demand self test
and support entropy validation.

Add entropy source, real-time clock(RTC).
  • Loading branch information
dongbeiouba committed Dec 5, 2024
1 parent 3782c87 commit 90df146
Show file tree
Hide file tree
Showing 24 changed files with 1,169 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fuzz-seconds: 600
dry-run: false
- name: Upload Crash
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
if: failure()
with:
name: artifacts
Expand Down
8 changes: 7 additions & 1 deletion Configure
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ my @disablables = (
"filenames",
"fuzz-libfuzzer",
"fuzz-afl",
"gm",
"gost",
"heartbeats",
"hw(-.+)?",
Expand Down Expand Up @@ -489,6 +490,7 @@ our %disabled = ( # "what" => "comment"
"external-tests" => "default",
"fuzz-libfuzzer" => "default",
"fuzz-afl" => "default",
"gm" => "default",
"heartbeats" => "default",
"md2" => "default",
"msan" => "default",
Expand Down Expand Up @@ -675,7 +677,7 @@ my %cmdvars = (); # Stores FOO='blah' type arguments
my %unsupported_options = ();
my %deprecated_options = ();
# If you change this, update apps/version.c
my @known_seed_sources = qw(getrandom devrandom os egd none rdcpu librandom);
my @known_seed_sources = qw(getrandom devrandom os egd none rdcpu librandom rtc);
my @seed_sources = ();
while (@argvcopy)
{
Expand Down Expand Up @@ -1589,6 +1591,10 @@ $config{CFLAGS} = [ map { $_ eq '--ossl-strict-warnings'
? @strict_warnings_collection
: ( $_ ) }
@{$config{CFLAGS}} ];
# apps/mod.c depends libm
unless ($disabled{"gm"}) {
push @{$config{ex_libs}}, "-lm";
}

unless ($disabled{"crypto-mdebug-backtrace"})
{
Expand Down
Loading

0 comments on commit 90df146

Please sign in to comment.