encoding/asn1: unmarshal of Context Specific into slice of RawValue #31954
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
My Go version is the latest version.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I tried to ASN.1 unmarshal
UnauthenticatedAttributes
of a PKCS #7SignedData
. But the Unmarshal() does not properly unmarshal (only two of the total of three are unmarshalled) and returns the rest as a return value. However, other asn1 editor or viewers or OpenSSL properly unmarshal and show the result.My code is available at https://play.golang.org/p/2W2xBUjbpqO
What did you expect to see?
The ASN1 editor shows like the following pics.
https://imgur.com/vfiSt3Q
https://imgur.com/OhjLlsY
What did you see instead?
They are not properly unmarshalled.
The text was updated successfully, but these errors were encountered: