-
Notifications
You must be signed in to change notification settings - Fork 113
Closed
Description
The TPM is very broken wrt to RSA PSS signatures.The architecture doc states in B.7,
For both restricted and unrestricted signing keys, the random salt length will be the largest size allowed
by the key size and message digest size.
IIUC, this means that the saltlen = bytes(keysize) - bytes(hashlen), so given an RSA 2048 key with a sha256 hash, the length is 224 bytes.
TLS 1.3 requires that slen == hlen. This is also a comon paradigm in other software stacks, so we want to ensure that if SLEN does not equal bytes(keysize) - bytes(hlen), that we synthesize by applying the padding and using raw RSA encryption if present.
Metadata
Metadata
Assignees
Labels
No labels