-
Notifications
You must be signed in to change notification settings - Fork 53
Closed
Description
Description of issue or feature request:
There are two related issues:
- The salt length used when creating RSA PSS signatures.
- And the salt length used when verifying these signatures.
Current behavior:
- We use a salt length equal to DIGEST_LENGTH when creating these signatures.
- Same for verifying them. This is a problem when verifying cross-platform signatures (e.g., from the Golang
crypto/rsa
packages, which uses a different salt length by default as described below; see Allow configuring the possible salt lengths for RSA PSS signatures hashicorp/vault#16549).
Expected behavior:
- Although optional, and not necessary for the cross-platform verification of signatures, we should use a salt length equal to MAX_LENGTH for the maximum provable security when creating these signatures.
- We should use a salt length equal to AUTO so that we can automatically verify these signatures regardless of the input salt length.
Metadata
Metadata
Assignees
Labels
No labels