You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was scrolling back throuh the TUF Slack recently and found an interesting discussion[1][2] related to using compute-constrained hardware tokens (e.g. Yubikeys) for signing.
TL;DR The discussion pointed out that there was a limitation, both in terms of processing power and in terms of input bytes as to how much a Yubikey would accept, e.g. it was stated that on YubiHSM it was limited to the size of one message to the YubiHSM, i.e. 2019 bytes.
It could therefore perhaps be useful in this context to formally enable support in the specification for pre-hash modes of signing, e.g. Ed25519ph and others.
There are other hardware keys out there, e.g. Tilitis TKey which by definition can support any algorithm, including Ed25519ph, but you would still be limited to the processing-power and perhaps input size too.
I think that Ed25519ph is the only key scheme in TUF that explicitly needs changes for prehash support. AFAIU RSASSA-PSS uses its hash function in a way that whether you prehash the message or not has no impact on the resulting signatures (in fact, in the Go ecosystem the signing functions for RSASSA-PSS actually expect you to prehash the message before passing it to get signed).
EDIT: However, for Ed25519ph we will need to decide what value we wish to use for ctx (and if we want to support Ed25519ctx as well).
Activity
cyphar commentedon Mar 27, 2026
I think that Ed25519ph is the only key scheme in TUF that explicitly needs changes for prehash support. AFAIU RSASSA-PSS uses its hash function in a way that whether you prehash the message or not has no impact on the resulting signatures (in fact, in the Go ecosystem the signing functions for RSASSA-PSS actually expect you to prehash the message before passing it to get signed).
EDIT: However, for Ed25519ph we will need to decide what value we wish to use for
ctx(and if we want to support Ed25519ctx as well).