Petar Popara wrote:
There is no CKM_AES_CBC_PAD, right?

There is CKM_AES_CBC_PAD in PKCS #11 (v2.20 at least) and NSS's software crypto module implements this mechanism.

Do you have any example of PKCS1 padding?

You can trace the NSS source code in mozilla/security/nss/lib/softoken/rsawrapr.c, starting with rsa_FormatBlock. http://lxr.mozilla.org/security/source/security/nss/lib/softoken/rsawrapr.c#356

But if you call PK11_PubEncryptPKCS1, that function
will do PKCS1 padding for you.  That functions calls
NSS's software crypto module (lib/softoken) with the
CKM_RSA_PKCS mechanism.

Wan-Teh

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

Reply via email to