xml-crypto icon indicating copy to clipboard operation
xml-crypto copied to clipboard

Initial code to sign keyinfo

Open cjbarth opened this issue 2 years ago • 4 comments

This is to provide a helper function to sign all children of the root node and a way to include keyinfo in the signature.

Closes: #463

cjbarth avatar Apr 11 '24 17:04 cjbarth

any plans to merge this?

sibelius avatar Jan 29 '25 00:01 sibelius

@sibelius , yes, there are plans to merge this once it is done. Please feel free to contribute; I can use all the help I can get as recently I don't have much time for development on this project.

cjbarth avatar Jan 31 '25 15:01 cjbarth

should we remove whitespace before signing ?

sibelius avatar Jan 31 '25 21:01 sibelius

I'm checking the output from this reference implementation that works https://github.com/bacen/pix-dict-quickstart/blob/master/src/main/java/br/gov/bcb/pi/dict/xml/XMLSigner.java#L63

and the output of this package

xml-crypto does not keep the \n inside ds:SignatureValue

here is a print with the signature with \n image

should I implement or active this somehow ?

I think this broke in your pull request, in main is working well

sibelius avatar Jan 31 '25 21:01 sibelius

@sibelius , sorry for not catching all these comments and thank you for your interest in this. It appears that some of the work that @shunkica has done in #506 might superceede this. He commented as much here. I'm waiting to hear back on him before I squander any more of yours or my time on this draft. Feel free to have a look at his work.

cjbarth avatar Oct 17 '25 21:10 cjbarth

[!IMPORTANT]

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • [ ] Create PR with unit tests
  • [ ] Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

coderabbitai[bot] avatar Oct 17 '25 21:10 coderabbitai[bot]