Skip to content

mockhsm: adds support for object attestation - #576

Merged
tony-iqlusion merged 1 commit into
iqlusioninc:mainfrom
baloo:baloo/mockhsm-attestation
Dec 2, 2025
Merged

mockhsm: adds support for object attestation#576
tony-iqlusion merged 1 commit into
iqlusioninc:mainfrom
baloo:baloo/mockhsm-attestation

Conversation

@baloo

@baloo baloo commented Feb 12, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@baloo
baloo marked this pull request as draft February 12, 2025 22:12
@baloo
baloo force-pushed the baloo/mockhsm-attestation branch 5 times, most recently from 22ef204 to 35f7b1c Compare February 12, 2025 22:58
@baloo
baloo marked this pull request as ready for review February 12, 2025 22:58
@baloo
baloo force-pushed the baloo/mockhsm-attestation branch from 35f7b1c to 2268aa0 Compare February 13, 2025 02:42
@baloo
baloo force-pushed the baloo/mockhsm-attestation branch from 2268aa0 to aae09c4 Compare April 11, 2025 02:07
@wiktor-k

Copy link
Copy Markdown
Contributor

Hmm... wanted to try it out locally but there are so many issues with dependency drift (e.g. no rustcrypto-new-releases in https://github.com/dalek-cryptography/curve25519-dalek, can be easily reproduced by removing Cargo.lock and running cargo check) 😬 and then the drift between what is used here and what's in rpgp.

It'd be nice to get a new release of Yubihsm.rs with stable deps (e.g. it wants ed25519-dalek = "=2.2.0-pre" here but there's no such -pre version, but there's a stable one...) 😵

Oh well, that's just me complaining 😅

@baloo

baloo commented Jul 15, 2025

Copy link
Copy Markdown
Contributor Author

The rand_core 0.9 branch just merged and we got a pre-release for it over in curve25519-dalek. I need to make a pass at bumping the dependencies.

I can try to do that later today.

@wiktor-k

Copy link
Copy Markdown
Contributor

I can try to do that later today.

There's no time pressure. I really appreciate your work 🙏 . MockHSM feature of this crate is really, really sweet. Essential for integration tests 🤩

@baloo

baloo commented Jul 15, 2025

Copy link
Copy Markdown
Contributor Author

And invaluable for onboarding people on a project without shipping them actual hardware ^^

@baloo
baloo force-pushed the baloo/mockhsm-attestation branch from aae09c4 to 0cb1d59 Compare July 15, 2025 22:51
@baloo

baloo commented Jul 15, 2025

Copy link
Copy Markdown
Contributor Author

@wiktor-k this should be better

@baloo
baloo force-pushed the baloo/mockhsm-attestation branch 2 times, most recently from 2acd295 to 9c4a974 Compare July 16, 2025 14:29
@wiktor-k

Copy link
Copy Markdown
Contributor

Thanks! I got further (I had to patch the ccm, just like you). But then during cargo check the conflict with ecdsa has arisen 😬 (I assume it's due to rpgp using a different version but it's kind-of sad the compiler can't properly wire the versions together :/ ):

    Checking ecdsa v0.17.0-rc.4
error[E0432]: unresolved import `signature::PrehashSignature`
  --> /home/wiktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ecdsa-0.17.0-rc.4/src/hazmat.rs:34:9
   |
34 |         PrehashSignature,
   |         ^^^^^^^^^^^^^^^^ no `PrehashSignature` in the root

error[E0405]: cannot find trait `PrehashSignature` in crate `signature`
   --> /home/wiktor/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ecdsa-0.17.0-rc.4/src/der.rs:397:20
    |
397 | impl<C> signature::PrehashSignature for Signature<C>
    |                    ^^^^^^^^^^^^^^^^ not found in `signature`

The change is fairly simple and if you want to check it it's in a separate branch clonable via git clone https://gitlab.archlinux.org/wiktor/yubihsm-pgp -b wiktor/attestation.

If not... well... I'll wait until these versions stabilize a bit :)

@tony-iqlusion

Copy link
Copy Markdown
Member

@wiktor-k we've recently landed several upgrades including a prerelease of ed25519-dalek which would actually make a crate prerelease of yubihsm possible. Pardon our dust.

In the meantime please upgrade to ecdsa v0.17.0-rc.5

@wiktor-k

Copy link
Copy Markdown
Contributor

we've recently landed several upgrades including a prerelease of ed25519-dalek which would actually make a crate prerelease of yubihsm possible. Pardon our dust.

Nah, don't worry. I'm very happy with this crate and rust crates too. I just report issues when I'm out of options 😅

In the meantime please upgrade to ecdsa v0.17.0-rc.5

The issue is I'm not using that explicitly and just assume it's due to rpgp pulling it with a different version (I'll test @baloo's PR there tomorrow).

So, thanks for your hard work. I really appreciate it 🙇 (the mockhsm feature here is extremely useful, Yubico should pay you your weight in gold 🥇).

Have a nice evening! 👋

Comment thread Cargo.toml Outdated
@baloo
baloo force-pushed the baloo/mockhsm-attestation branch 2 times, most recently from dc74f1c to 6fac4e6 Compare July 18, 2025 03:33
@baloo
baloo force-pushed the baloo/mockhsm-attestation branch from 6fac4e6 to 77b64bf Compare September 2, 2025 21:52
@baloo
baloo force-pushed the baloo/mockhsm-attestation branch from 77b64bf to 1e11d05 Compare September 19, 2025 02:30
@baloo
baloo force-pushed the baloo/mockhsm-attestation branch from 1e11d05 to 875864f Compare November 14, 2025 06:04
@baloo
baloo force-pushed the baloo/mockhsm-attestation branch from 875864f to bf97d83 Compare December 2, 2025 19:05
@tony-iqlusion
tony-iqlusion merged commit 9d4be40 into iqlusioninc:main Dec 2, 2025
6 checks passed
@baloo
baloo deleted the baloo/mockhsm-attestation branch December 2, 2025 19:39
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.

3 participants