I've noticed that encrypted data created by hiera-eyaml does not parse correctly with this package with Go 1.10, possibly related to the changes in the struct tags (see https://golang.org/doc/go1.10)
Unmarshal now respects struct field tags using the explicit and tag directives.
Hi,
I've noticed that encrypted data created by hiera-eyaml does not parse correctly with this package with Go 1.10, possibly related to the changes in the struct tags (see https://golang.org/doc/go1.10)
I'm not too sure of the inner details of the asn1 format, but I've noticed that removing the struct tag altogether fixes the issue (see https://github.com/pranavraja/pkcs7/commit/c9366af5178a021b618ca891de32ca294c677dc8), and the package tests still pass.
Here is the format of the envelope i'm trying to parse (the output of
openssl asn1parse -in encrypteddata -inform DER
) in case it helps