Skip to content

Commit

Permalink
feat: Added sm4 and sm4-cbc mode (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Achixz authored Dec 25, 2023
1 parent 36d1f4f commit 0981e1d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Binary file added lib/sm4-cbc.sh
Binary file not shown.
Binary file added lib/sm4.sh
Binary file not shown.
2 changes: 1 addition & 1 deletion shell-compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
MODE_ENC=("aes-128-cbc" "aes-192-cbc" "aes-256-cbc" "aes-128-cbc_base64" "aes-192-cbc_base64" \
"aes-256-cbc_base64" "aes-128-cbc_zlib" "aes-192-cbc_zlib" "aes-256-cbc_zlib" "aria-128-cbc" \
"aria-192-cbc" "aria-256-cbc" "base64" "camellia-128-cbc" "camellia-192-cbc" "camellia-256-cbc" \
"ccrypt" "des3" "des-ede" "des-ede3" "des-ede-cbc" "des-ede3-cbc" "gcrypt" "zlib")
"ccrypt" "des3" "des-ede" "des-ede3" "des-ede-cbc" "des-ede3-cbc" "gcrypt" "sm4" "sm4-cbc" "zlib")
VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo null)

# The [[ -t 1 ]] check only works when the function is not called from
Expand Down
2 changes: 1 addition & 1 deletion tests/encryption.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
MODE_ENC=("aes-128-cbc" "aes-192-cbc" "aes-256-cbc" "aes-128-cbc_base64" "aes-192-cbc_base64" \
"aes-256-cbc_base64" "aes-128-cbc_zlib" "aes-192-cbc_zlib" "aes-256-cbc_zlib" "aria-128-cbc" \
"aria-192-cbc" "aria-256-cbc" "base64" "camellia-128-cbc" "camellia-192-cbc" "camellia-256-cbc" \
"ccrypt" "des3" "des-ede" "des-ede3" "des-ede-cbc" "des-ede3-cbc" "gcrypt" "zlib")
"ccrypt" "des3" "des-ede" "des-ede3" "des-ede-cbc" "des-ede3-cbc" "gcrypt" "sm4" "sm4-cbc" "zlib")

rm -rf file/* out/*
echo "[!] Testing code for bash script file"
Expand Down

0 comments on commit 0981e1d

Please sign in to comment.