-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add TLS13-KDF #446
Add TLS13-KDF #446
Conversation
7fb5bdd
to
f936dd7
Compare
@kshitizvars would you mind testing this PR? It should solve the issues you have with tls1.3 fully on the token, note that you have to block digest operations with the block operations quirk. |
Note that the kryoptic build will fail until latchset/kryoptic#99 is merged |
d7ef2f9
to
c5b4410
Compare
In preparation to reuse outside of the specific object.c use case. Also adds a better and more flexible interface. Signed-off-by: Simo Sorce <[email protected]>
OpenSSL TLS code needs to know if the EC public key is in compressed or uncompressed representation, for peer keys. Add support to return this information from public keys. Signed-off-by: Simo Sorce <[email protected]>
Hi @simo5 Thanks for the patch!! FYI, with 4f67dfd patch, I am getting below issue:-
We are currently working on fixing the issue, comimg with the faulty patch. |
@kshitizvars so your token has issues storing/using session objects? |
Covscan found an error:
|
I think Coverity here is confused as the big check on inputs should make it impossible to get such a large value.
In any case I am changing the code to add belts and suspender so the total info size is more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
OpenSSL has a special TLS 1.3 KDF that perform TLS 1.3 specific and limited actions using an underlying HKDF implementation. Implement it the way OpenSSL expect it to work. Signed-off-by: Simo Sorce <[email protected]>
This is used primarily to test TLS13-KDF. Note that we have to disable digest ops on the token as OpenSSL requires context duplication to work, and most tokens do not really offer it. Signed-off-by: Simo Sorce <[email protected]>
Thanks for all the reviews folks. |
Description
Add support for OpenSSL's TLS13-KDF which is a limited TLS-specific HKDF version.
Fixes #445
Checklist
[ ] Test suite updated with negative tests[ ] Documentation updatedReviewer's checklist: