Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minicrypto API #560

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

minicrypto API #560

wants to merge 1 commit into from

Conversation

doublex
Copy link

@doublex doublex commented Jan 21, 2025

API proposal for minicrypto.h
Works with any combination of minicrypto, openssl, fusion and libaegis at compile time without cluttering the code with tons of #ifdef

Does not break current code but adds a thin layer of #defines.

Proposed API - with counterparts for openssl and minicrypto:

ptls_crypto_init_cipher_suites()
ptls_crypto_init_key_exchanges()

ptls_crypto_init_sign_file()
ptls_crypto_init_sign_der()
ptls_crypto_dispose_sign()

ptls_crypto_init_verify_file()
ptls_crypto_init_verify_der()
ptls_crypto_dispose_verify()

@doublex
Copy link
Author

doublex commented Jan 21, 2025

The result of these pull requests are 4 files: minicrypto.h minicrypto.c sign.c verify.c
They may be easier to read as code files than a bunch of diff's.
minicrypto.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant