Skip to content

Commit

Permalink
Support shangmi crypto module for Linux
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 6, 2024
1 parent d36d066 commit 0db90b2
Show file tree
Hide file tree
Showing 37 changed files with 3,475 additions and 582 deletions.
224 changes: 0 additions & 224 deletions .github/workflows/ci.yml

This file was deleted.

152 changes: 0 additions & 152 deletions .github/workflows/cross-compiles.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/gm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: GM CI
on: [pull_request, push]
jobs:
gm-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: config
run: |
./config no-shared enable-threads enable-tls1_3 enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers \
no-evp-cipher-api-compat no-req-status no-status no-crypto-mdebug-count no-dynamic-ciphers \
no-optimize-chacha no-rsa-multi-prime-key-compat no-session-lookup no-session-reused-type \
no-global-session-cache no-verify-sni no-skip-scsv enable-ntls enable-crypto-mdebug-count \
enable-crypto-mdebug-backtrace enable-ssl-trace --debug -fPIC --prefix=/opt/babassl enable-gm \
--with-rand-seed=getrandom,egd,rtc -DSSL_DEBUG -DOPENSSL_NO_INTEGRITY
- name: make
run: make -s -j4
- name: make test
run: make test TESTS='test_rand test_internal_sm2 test_internal_sm3 test_internal_sm4 test_ssl_ntls_api'
Loading

0 comments on commit 0db90b2

Please sign in to comment.