Decides whether one of a person's keys may be upgraded to an ML-DSA
one (#939), by everything knowable without the issuance policy: the
realm offers it, the key is theirs and classical, it has no
post-quantum successor still held, a key may still be enrolled,
and — beside it — the cap leaves room.
Parameters
username: any
the person
key: any
one of their stored keys, or null for an id that named
none of theirs
Optionalmode: any
replace or alongside where the caller names it
(#1100); the lanes' upgradeMode() otherwise
Decides whether one of a person's keys may be upgraded to an ML-DSA one (#939), by everything knowable without the issuance policy: the realm offers it, the key is theirs and classical, it has no post-quantum successor still held, a key may still be enrolled, and — beside it — the cap leaves room.