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

This commit is contained in:
Tobias Brunner
2017-11-08 16:48:10 +01:00
parent fa7f5e2d0c
commit c380608a89
@@ -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
};