Currently, I'm playing with this library and found that when I have some ds:Reference that does not have any ds:Transforms (not appear in XML document) the library will panic when I try to sign the XML document.
I dig through the code and find that this line is nil when the XML document doesn't have any ds:Transforms in ds:Reference causing panic (empty ds:Transforms is OK).
Hello, thank you for your great library.
Currently, I'm playing with this library and found that when I have some
ds:Reference
that does not have anyds:Transforms
(not appear in XML document) the library will panic when I try to sign the XML document.I dig through the code and find that this line is nil when the XML document doesn't have any
ds:Transforms
inds:Reference
causing panic (emptyds:Transforms
is OK).My current workaround
ds:Transforms
tods:Reference
.Example XML Before Signing
PS. I'm also new to XML signing but I did walk through the XMLDSIG spec, and found that the min occurrence of
ds:Transforms
can be 0.Thank you.