On 04/02/2012 06:34 PM, Tamir Khason via RT wrote:
maybe i am failed to explain myself. DER encoding says how to encode numbers, RSA key elements define what are those number. So integers from RSA key, should be encoded according ANS1 DER encoding, which means should be have either length octets or end-of-contents octets
Show an example where you believe that this is not the case. An raw hex value, not any textual and incomplete representation. Use dumpasn1 to format them, if you don't believe openssl asn1parse. There are never any EOC octets with INTEGER. The encoding of the is always primitive and the content is identical in BER and DER. The encoding of the length field may differ. ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager majord...@openssl.org