Skip to content
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

Exception on PAdES contentTimestamp checking #43

Open
durkovic opened this issue Dec 7, 2023 · 0 comments
Open

Exception on PAdES contentTimestamp checking #43

durkovic opened this issue Dec 7, 2023 · 0 comments

Comments

@durkovic
Copy link

durkovic commented Dec 7, 2023

Checking of PAdES contentTimestamp produces exception in step checking for message imprint correctness. Test file here:
keaesz_jelentes_20231203_071509.pdf

Location-CodeTest: Contents/CAdESSignature/content/signedData/signerInfos/signerInfo[1]/signedAttrs/attribute[4]/attrValues/contentTimeStamp[1]-{RunException}
null. java.lang.NullPointerException at java.security.MessageDigest.update(MessageDigest.java:335) at java.security.MessageDigest.digest(MessageDigest.java:410) at edu.upc.ac.pkidata.AbstractTimeStampTokenMssgImpChecker.checkMssgImprint(AbstractTimeStampTokenMssgImpChecker.java:111) at edu.upc.ac.adesconformancechecker.common.commands.CheckIfMssgImpIsAsInSpec.protectedExecute(CheckIfMssgImpIsAsInSpec.java:77) at edu.upc.ac.adesconformancechecker.common.basictypes.Command.execute(Command.java:246) at edu.upc.ac.adesconformancechecker.common.commands.CaseThis.protectedExecute(CaseThis.java:44) at edu.upc.ac.adesconformancechecker.common.basictypes.Command.execute(Command.java:246) at edu.upc.ac.adesconformancechecker.common.commands.ForAllTheChildrenDo.protectedExecute(ForAllTheChildrenDo.java:122) at edu.upc.ac.adesconformancechecker.common.basictypes.Command.execute(Command.java:246) at edu.upc.ac.adesconformancechecker.common.commands.CursorToChild.protectedExecute(CursorToChild.java:89) at edu.upc.ac.adesconformancechecker.common.basictypes.Command.execute(Command.java:246) at edu.upc.ac.adesconformancechecker.common.commands.ForAllChildrenNamedAsIndicatedDo.protectedExecute(ForAllChildrenNamedAsIndicatedDo.java:78) at edu.upc.ac.adesconformancechecker.common.basictypes.Command.execute(Command.java:246) at edu.upc.ac.adesconformancechecker.common.commands.CursorToChild.protectedExecute(CursorToChild.java:89) at edu.upc.ac.adesconformancechecker.common.basictypes.Command.execute(Command.java:246) at edu.upc.ac.adesconformancechecker.common.commands.ExecuteCommandsGroup.protectedExecute(ExecuteCommandsGroup.java:66) at edu.upc.ac.adesconformancechecker.common.basictypes.Command.execute(Command.java:246) at edu.upc.ac.adesconformancechecker.common.commands.ExecuteCommandsGroup.protectedExecute(ExecuteCommandsGroup.java:66) at edu.upc.ac.adesconformancechecker.common.basictypes.Command.execute(Command.java:246) at edu.upc.ac.adesconformancechecker.common.commands.ForAllChildrenNamedAsIndicatedDo.protectedExecute(ForAllChildrenNamedAsIndicatedDo.java:78) at edu.upc.ac.adesconformancechecker.common.basictypes.Command.execute(Command.java:246) at edu.upc.ac.adesconformancechecker.common.commands.CursorToChild.protectedExecute(CursorToChild.java:89) at edu.upc.ac.adesconformancechecker.common.basictypes.Command.execute(Command.java:246) at edu.upc.ac.adesconformancechecker.common.commands.CursorToChild.protectedExecute(CursorToChild.java:89) at edu.upc.ac.adesconformancechecker.common.basictypes.Command.execute(Command.java:246) at edu.upc.ac.adesconformancechecker.common.commands.CursorToChild.protectedExecute(CursorToChild.java:89) at edu.upc.ac.adesconformancechecker.common.basictypes.Command.execute(Command.java:246) at edu.upc.ac.adesconformancechecker.common.commands.ExecuteCommandsGroup.protectedExecute(ExecuteCommandsGroup.java:66) at edu.upc.ac.adesconformancechecker.common.basictypes.Command.execute(Command.java:246) at edu.upc.ac.adesconformancechecker.pades.commands.ExecuteCommandsForCAdESSignature.protectedExecute(ExecuteCommandsForCAdESSignature.java:213) at edu.upc.ac.adesconformancechecker.common.basictypes.Command.execute(Command.java:246) at edu.upc.ac.adesconformancechecker.common.commands.CursorToChild.protectedExecute(CursorToChild.java:89) at edu.upc.ac.adesconformancechecker.common.basictypes.Command.execute(Command.java:246) at edu.upc.ac.adesconformancechecker.common.basictypes.AdESInFileCChecker.checkSignatures(AdESInFileCChecker.java:105) at edu.upc.ac.adesconformancechecker.run.PortalAdESCC.processSigsFiles(PortalAdESCC.java:228) at edu.upc.ac.adesconformancechecker.run.PortalAdESCC.proceed(PortalAdESCC.java:204) at edu.upc.ac.adesconformancechecker.run.PortalAdESCC.main(PortalAdESCC.java:145)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant