-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to provide RSASSA PSS parameters? #311
Comments
It's currently not possible. To change the signature algorithm you're using something like:
Right? I can have a look at supporting this. It could probably be an overload of A couple of additional questions to help me a bit:
|
Yes, right, I am using the following statement:
Specifications are defined at [https://www.w3.org/2007/xmlsec/ws/papers/08-lanz-iaik/] What is missing right now is to specify parameters in the GenericAlgorithm class, behing the withSignatureAlgorithm method. Thank you to take care of this feature. |
@OlivierBoheme1 out of curiosity, aren't other algorithm URIs like |
@OlivierBoheme1 I have a feature branch with changes that I think fit your needs. However, I'd like to understand if the more specific algorithms identifiers I mentioned above would work for you. There seem to be different algorithm URIs which have combinations of hash methods, salt lengths, etc. If those are enough, I need to think if I really want to pull in the changes I did. |
Thank you for your work.
Unfortunately my PKCS11 library doesn't support algorithm URIs like ALGO_ID_SIGNATURE_RSA_SHA3_256_MGF1 and ALGO_ID_SIGNATURE_RSA_SHA3_512_MGF1
|
Ah, I see. I thought all those would be mapped to the same Java Can you please try this JAR? There's a new overload for Does this solve your issue? |
I have tested the xades4j-2.3.1-SNAPSHOT version , and I can generate a RSA-PSS signature. Unfortunately my PKCS11 library is forcing me to use a HMAC SHA256 algo (instead of the standard SHA256). |
Great that it worked in general. Looks like that from the xades4j side the changes I did would suffice, right? Or is something missing wrt the md algorithm? |
I think your implementation is sufficent to generate RSA-PSS signatures. |
Great, I'll merge the PR and close this ticket. I'll publish the 2.4.0 release soon, as there are already a few things lined up. Glad to help! |
I would like to generate a XADES-T signature using a RSA PSS key with xades4j 2.3
I am able to switch from rsa-sha256 algorithm to rsa-ssa algorithm.
But what about PSS parameters (salt length, hash method, ...). How to provide them?
The text was updated successfully, but these errors were encountered: