-
Notifications
You must be signed in to change notification settings - Fork 40
B_BES (baseline) profile and invalid signature #114
Copy link
Copy link
Open
Description
I'm trying to create BDOC container with B_EPES profile and tested adding invalid signature.
I have following code for signing:
var dataToSign = SignatureBuilder
.aSignature(bDocContainer)
.withSignatureProfile(SignatureProfile.B_EPES)
.withSigningCertificate(certificate)
.withSignatureDigestAlgorithm(DigestAlgorithm.SHA256)
.buildDataToSign();
Signature signature = dataToSign.finalize(signatureBytes);
bDocContainer.addSignature(signature);
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels