If I have to call my java code from golang application , how can I 
integrate it ? 

On Wednesday, April 3, 2024 at 5:21:28 PM UTC+5:30 Shivli Srivastava wrote:

> I tried with pkcs7, but for the same canonical input the digest is 
> matching but the signature format is not similar to the one generated by 
> Java Bouncy Castle
>
> On Tuesday, April 2, 2024 at 8:17:52 PM UTC+5:30 Tamás Gulácsi wrote:
>
>> Earlier questions bubbled up 
>> https://pkg.go.dev/github.com/fullsailor/pkcs7?utm_source=godoc#SignedData
>> (https://github.com/smallstep/pkcs7)
>>
>> For the XML canonicalization, you may try 
>> https://pkg.go.dev/github.com/lafriks/go-xmldsig/v2#Canonicalizer
>>
>>
>>
>> Shivli Srivastava a következőt írta (2024. április 2., kedd, 15:43:54 
>> UTC+2):
>>
>>> I have to replicate the Java code for signing xml in Go. The java code 
>>> uses org.bouncycastle.cms.CMSSignedData from BouncyCastle for signing and 
>>> org.apache.xml.serialize.XMLSerializer for Serializing the input xml . 
>>>
>>> The signing process should be exactly same as the signature otherwise 
>>> would be different and I cannot afford that . Any help will be appreciated
>>>
>>>
>>> Regards
>>> Shivli
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/e6f93770-d0a5-4054-aa46-ce0c0f32715bn%40googlegroups.com.

Reply via email to