signature-params: Provide option for maximum RSA/PSS salt length
However, the length now has to be resolved early, so we don't operate on the negative constant values e.g. when generating the encoding.
This commit is contained in:
@@ -551,6 +551,7 @@ static signature_params_t *create_rsa_pss_constraint(char *token)
|
||||
.scheme = SIGN_RSA_EMSA_PSS,
|
||||
.params = &pss,
|
||||
};
|
||||
rsa_pss_params_set_salt_len(&pss, 0);
|
||||
params = signature_params_clone(&pss_params);
|
||||
}
|
||||
return params;
|
||||
|
||||
Reference in New Issue
Block a user