lib/rsa: allow matching pkcs11 path by object id
authorTobias Olausson <tobias@eub.se>
Thu, 26 Jun 2025 06:54:20 +0000 (08:54 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 8 Jul 2025 22:19:31 +0000 (16:19 -0600)
commit0707f73a8ba26f5aeaeada6f5942d003bf67ce06
tree49e81f1b680645976e78ca886138519a7913e86b
parentebb2c9e5500939cff5e812f54819174bbe6703df
lib/rsa: allow matching pkcs11 path by object id

The object= part matches against the label that the pkcs11 token uses
for that object, but in some cases, specifically with a Yubikey using
ykcs11, where the keys have been imported, the labels differ between the
private and public keys [1], making the object= matching useless. These
keys will have the same id however, so matching against that works for
both the private and public part.

[1]: https://github.com/Yubico/yubico-piv-tool/blob/master/doc/YKCS11/Functions_and_values.adoc#key-alias-per-slot-and-object-type

Signed-off-by: Tobias Olausson <tobias@eub.se>
lib/rsa/rsa-sign.c