signature-params: Optionally pass a specific salt value when signing
authorTobias Brunner <tobias@strongswan.org>
Tue, 26 Sep 2017 13:02:04 +0000 (15:02 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 8 Nov 2017 15:48:10 +0000 (16:48 +0100)
src/libstrongswan/credentials/keys/signature_params.h

index f243954..52a7ad7 100644 (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
 };