1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/minimal-examples/api-tests/api-test-jose
Andy Green ddb94d4e27 genaes: generic AES layer independent of tls library
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.
2018-12-27 06:45:31 +08:00
..
CMakeLists.txt genaes: generic AES layer independent of tls library 2018-12-27 06:45:31 +08:00
jwe.c JOSE: refactor and prepare for JWE 2018-12-27 06:45:31 +08:00
jwk.c JOSE: refactor and prepare for JWE 2018-12-27 06:45:31 +08:00
jws.c JOSE: refactor and prepare for JWE 2018-12-27 06:45:31 +08:00
main.c JOSE: refactor and prepare for JWE 2018-12-27 06:45:31 +08:00
README.md JOSE: refactor and prepare for JWE 2018-12-27 06:45:31 +08:00
selftest.sh JOSE: refactor and prepare for JWE 2018-12-27 06:45:31 +08:00

lws api test lwsac

Demonstrates how to use and performs selftests for lwsac

build

 $ cmake . && make

usage

Commandline option Meaning
-d Debug verbosity in decimal, eg, -d15
 $ ./lws-api-test-lwsac
[2018/10/09 09:14:17:4834] USER: LWS API selftest: lwsac
[2018/10/09 09:14:17:4835] USER: Completed: PASS