mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00

Although RSA can be used directly for signing / JWS on large chunks of data since it's only operating on the hash, when JWE support arrives, which allows bulk encryption, it's going to be mandatory to support secondary AES ciphers to use on the bulk data. This adds generic support for all AES modes that OpenSSL and mbedTLS have in common, works on both mbedTLS and OpenSSL the same, and adds unit tests for each mode in api-test-gencrypto, to run in CI.
24 lines
537 B
Bash
Executable file
24 lines
537 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# $1: path to minimal example binaries...
|
|
# if lws is built with -DLWS_WITH_MINIMAL_EXAMPLES=1
|
|
# that will be ./bin from your build dir
|
|
#
|
|
# $2: path for logs and results. The results will go
|
|
# in a subdir named after the directory this script
|
|
# is in
|
|
#
|
|
# $3: offset for test index count
|
|
#
|
|
# $4: total test count
|
|
#
|
|
# $5: path to ./minimal-examples dir in lws
|
|
#
|
|
# Test return code 0: OK, 254: timed out, other: error indication
|
|
|
|
. $5/selftests-library.sh
|
|
|
|
COUNT_TESTS=1
|
|
|
|
dotest $1 $2 apiselftest
|
|
exit $FAILS
|