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

Adds support for YubiHSM Auth #459

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

baloo
Copy link
Contributor

@baloo baloo commented Jun 24, 2023

This adds support for the YubiHSM Auth protocol as described in https://docs.yubico.com/yesdk/users-manual/application-yubihsm-auth/interacting-yubihsm-2.html

This protocol ensure the derivation password for the authentication keys are kept in secure devices.

This works with iqlusioninc/yubikey.rs#492

@baloo baloo force-pushed the baloo/yubihsm-auth branch 4 times, most recently from e9ed2e0 to 7399525 Compare June 24, 2023 06:31
@baloo baloo force-pushed the baloo/yubihsm-auth branch 2 times, most recently from 5757fa2 to 0d326a4 Compare June 24, 2023 23:19
@baloo baloo force-pushed the baloo/yubihsm-auth branch 3 times, most recently from 9767b27 to e3f093c Compare August 16, 2023 05:05
@baloo baloo force-pushed the baloo/yubihsm-auth branch from e3f093c to fb561ad Compare September 8, 2023 17:48
@baloo baloo force-pushed the baloo/yubihsm-auth branch 2 times, most recently from 482437a to b26f6c9 Compare December 14, 2023 21:25
@baloo baloo force-pushed the baloo/yubihsm-auth branch from b26f6c9 to 9da3725 Compare December 30, 2023 21:39
@baloo baloo force-pushed the baloo/yubihsm-auth branch from 9da3725 to 0dfb48c Compare April 16, 2024 23:23
@baloo baloo force-pushed the baloo/yubihsm-auth branch 3 times, most recently from 49bf001 to 19a61e6 Compare January 23, 2025 04:55
@baloo baloo mentioned this pull request Jan 23, 2025
@baloo
Copy link
Contributor Author

baloo commented Feb 12, 2025

This one will conflict on dependencies version because yubikey.rs bumped to pre-releases

@baloo baloo marked this pull request as draft February 12, 2025 18:10
@tony-iqlusion
Copy link
Member

@baloo can you cherry-pick 8d07216 onto a separate PR so I can do a squash and merge on this PR?

@baloo
Copy link
Contributor Author

baloo commented Feb 12, 2025

@baloo can you cherry-pick 8d07216 onto a separate PR so I can do a squash and merge on this PR?

#571

@baloo baloo force-pushed the baloo/yubihsm-auth branch 4 times, most recently from f434a39 to c3c89b4 Compare February 12, 2025 22:34
@baloo baloo marked this pull request as ready for review February 12, 2025 22:34
@baloo baloo force-pushed the baloo/yubihsm-auth branch from c3c89b4 to 8456e87 Compare February 12, 2025 23:05
This adds support for the YubiHSM Auth protocol as described in
https://docs.yubico.com/yesdk/users-manual/application-yubihsm-auth/interacting-yubihsm-2.html

This protocol ensure the derivation password for the authentication keys are kept
in secure devices.
@baloo baloo force-pushed the baloo/yubihsm-auth branch from 8456e87 to 092cbcf Compare February 13, 2025 02:42
}

#[cfg(feature = "yubihsm-auth")]
impl From<yubikey::hsmauth::SessionKeys> for SessionKeys {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

so this brings a dependency on yubikey.rs just because of SessionKeys, Challenge and Context, but maybe this isn't the correct way to do this and it would be easier to rely on the inner slice instead?

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.

2 participants