-
-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add helper for making RSA key from exponent and modulus (#307)
* - Added creation of public key from its components - Split verify function to signature and claims - Added handling of claims set in json while creating a verifier * - Added creation of public key from its components - Split verify function to signature and claims - Added handling of claims set in json while creating a verifier * Fixed missing lines * Added unit tests * Additional changes * delete * refactor free * remove testing * align white space * Update tests/PubKeyTest.cpp Yes I should have removed it. Used it in testing Co-authored-by: Chris Mc <[email protected]> * Add support for 1.0.2 * refactor a bit * user jwt define for SSL API that is cross-library * add support for no base64 from jwt * refactor a bit more * fixup wolfssl + linters * missing include for openssl 3 * quick draft of openssl 3 implementation * linter * add in a health layer of error handling and memory management * flip function order * fix typo * error tests for openssl * more all helper tests to one file * update cmake * update tests * more negative test cases * fixup old api calls depending on version * linter * fixup return types * disable failing tests * fixup copy passed * disable more tests * fixup broke tests * better error code handling * test asan with more openssl versions * fix template render path * fix cache conflict running different ubuntu docker images for with different GLIB c and cxx ABIs * add missing lib to tests * run both openssl versions with asan * openssl code always calls new and returns an adress in most cases so always save the pointer to call free? * go back to old raw2bn implementation * Revert "openssl code always calls new and returns an adress in most cases" This reverts commit 45e85b8. * remove add new tests (needs to be a seperate pr) * fix jwks verify example + run with asan+lsan * some extra backwards compat for ssl1.1 * compat rsa keygen * fixup copy paste * fix typo * linter * wolfssl compat * compat 1.1.0i * more compat since they changed the API with ever version * linter * fix 1.1.0 * more compat * more compat working on the matrix of wolfssl and libress and 1.1.0 * updated example with hardcoded values * action to install openssl now sets ENV vars for CMake https://gitlab.kitware.com/cmake/cmake/-/blob/master/Modules/FindOpenSSL.cmake#L233 https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable https://gitlab.kitware.com/cmake/cmake/-/issues/24236 * update example to create a valid token * update asan to latest compiler * clang tidy * fix memory leak in openssl 1.1.1 this is theoretically only because of the test code but better safe then sorry * clang format * improve docs * enable one more test * fix test impl signature * more test for bio to std::string * DRY up code with new helper for write_bio_to_string * fix copy paste + spell checking * linter * fix typo * fix return type * BIO_get_mem_data is just a define so fixup error implementation to match * put extra tests in too many places its only for certs not just pubkeys --------- Co-authored-by: ZOHARGO <[email protected]> Co-authored-by: zgofer1 <[email protected]>
- Loading branch information
1 parent
ed98dc1
commit 953aab6
Showing
9 changed files
with
545 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.