You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure what I am doing wrong or if I am hitting a bug
The data I'm trying to decode is an CMS envelopedData blob which openssl decodes as following
with open(self.filename,'r') as file:
data = file.read()
obj, rest = ber_decoder(base64.b64decode(data), asn1Spec=rfc5652.ContentInfo(), decodeOpenTypes=False)
Hi,
I am not sure what I am doing wrong or if I am hitting a bug
The data I'm trying to decode is an CMS envelopedData blob which openssl decodes as following
When I decode the data like this
and print obj this is what I get
If I decode this way
I end up with
Looking at the printout of the decoded data, I can understand the exeception as the EOC bytes of 'content' is missing.
Any hints or pointers on how I can resolve this issue?
Thanks for your time!
The text was updated successfully, but these errors were encountered: