is it corrent that using a meaningless leading zero to encode positive ASN.1 INTEGER?
Are these encodings same in ASN.1 INTEGER type?
encoding decimal 10
02 01 0A
02 02 开发者_运维百科00 0A
02 03 00 00 0A
...
I assume you are using BER. The BER encoding for an INTEGER uses the smallest possible number of octets. The second and third encodings would be incorrect.
See X.690 8.3
加载中,请稍侯......
精彩评论