etingof / pyasn1

Generic ASN.1 library for Python
http://snmplabs.com/pyasn1
BSD 2-Clause "Simplified" License
244 stars 118 forks source link

pyasn1.error.PyAsn1Error: Read 100 bytes instead of expected 92 #223

Closed chetanpandey1266 closed 1 year ago

chetanpandey1266 commented 1 year ago

Hi I am using pyasn1 to convert ber bytes to asn1. I saved the bytes in a txt file and then I am reading it and then passing it to pyasn1.codec.ber.decoder.decode. But I am getting this error.

I read the decoder while where it was pointing to and this error is because bytesRead != length. So how could I make it work?

lextm commented 1 year ago

https://github.com/pyasn1/pyasn1/issues

You need to post to the new place.

chetanpandey1266 commented 1 year ago

Okay