-
Notifications
You must be signed in to change notification settings - Fork 39
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
B_BES (baseline) profile and invalid signature #114
Comments
Hello, Could you please clarify what do you mean by invalid signature? In example code you do not show actual signing. You just inserted random bytes (signatureBytes)? |
Tried both random bytes and empty byte array:
Looks like in case of baseline profile signature is not checked at all. |
Thank you for bringing it to our attention. The exception should be thrown at This behavior is by design and originates from the DSS library. Signatures with the B_EPES/B_BES profile (baseline profile) skip the validation process. Validation is done only on signature extension to "higher" profiles (LT/LT_TM/LTA). We will look into this further to assess whether this should be changed. |
We have removed the support of B_EPES and LT_TM profile in Digidoc4j version 5.2.0. However the same behavior is still present for B_BES profile. I have modified the heading. |
I'm trying to create BDOC container with B_EPES profile and tested adding invalid signature.
I have following code for signing:
If signatureBytes is invalid then
bDocContainer.addSignature(signature)
doesnt throw exception, same line throws exception if using LT_TM profile.Is this so by design or is it a bug?
The text was updated successfully, but these errors were encountered: