Skip to content

Synthesized PSS support #417

@williamcroberts

Description

@williamcroberts

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions