signature-params: Optionally pass a specific salt value when signing

This commit is contained in:
Tobias Brunner 2017-09-26 15:02:04 +02:00
parent fa7f5e2d0c
commit c380608a89
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,8 @@ struct rsa_pss_params_t {
hash_algorithm_t mgf1_hash;
/** Salt length, use RSA_PSS_SALT_LEN_DEFAULT for length equal to hash */
ssize_t salt_len;
/** Salt value, for unit tests (not all implementations support this) */
chunk_t salt;
#define RSA_PSS_SALT_LEN_DEFAULT -1
};