I have succeeded to implement RSA encryption with PKCS1 padding. :)

But, I have one question. On RSA web site (pkcs-1v2-1.pdf), PKCS1 padding is 
described like this:

EM = 0x00 || 0x02 || PS || 0x00 || M

and ont W3C web site: http://www.w3.org/TR/xmlenc-core/#rsa-1_5

PKCS1 padding is described like this:

02 | PS* | 00 | key

Well, 0x00 at the beginning is missing. Why? 


_______________________________________________
mozilla-crypto mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-crypto

Reply via email to