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

implicitly generate HMAC-secret #231

Merged
merged 5 commits into from
Dec 9, 2020

Conversation

kaczmarczyck
Copy link
Collaborator

This PR implements the new version of the HMAC-secret extension. It does so by reverting the extension of key handles in #218, now implicitly creating cred_random values deterministically from the credential and 2 new device secrets.

Part of #106 , but backwards compatible to the 2.0 version.

@jmichelp for checking the idea
@ia0 for storage
optional FYI @gendx for crypto (i.e. generate_cred_random)

  • Tests pass

@kaczmarczyck kaczmarczyck self-assigned this Dec 8, 2020
@google-cla google-cla bot added the cla: yes label Dec 8, 2020
ia0
ia0 previously approved these changes Dec 8, 2020
Copy link
Member

@ia0 ia0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for storage.

src/ctap/storage.rs Outdated Show resolved Hide resolved
ia0
ia0 previously approved these changes Dec 8, 2020
Copy link
Collaborator

@jmichelp jmichelp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still pass the conformance tool (only tested HMAC-Extension) with this PR.

src/ctap/mod.rs Outdated Show resolved Hide resolved
jmichelp
jmichelp previously approved these changes Dec 9, 2020
Copy link
Collaborator

@jmichelp jmichelp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
I'll let @gendx approve too and this can be merged

src/ctap/mod.rs Outdated Show resolved Hide resolved
src/ctap/mod.rs Outdated Show resolved Hide resolved
src/ctap/mod.rs Outdated Show resolved Hide resolved
@kaczmarczyck kaczmarczyck merged commit 829fcb1 into google:master Dec 9, 2020
@kaczmarczyck kaczmarczyck deleted the implicit-hmac-secret branch December 9, 2020 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants