NSS supports some PKCS #11 derive functions which require the PKCS #11 key handle to be passed in the parameters block of the derive function. Unfortunately there is currently not supported way of getting the PKCS #11 handle from a SymKey. We need an accessor function to return that handle. bob
Created attachment 368547 [details] [diff] [review] new function to get the PKCS #11 key handle. pretty basic patch.
Comment on attachment 368547 [details] [diff] [review] new function to get the PKCS #11 key handle. r=nelson I have one question: Is this really needed?? Is the PK11SymKey structure opaque? If not then ...
Yes, it's opaque, it's one of the few major ones we got right. thanks, bob.
Checking in nss/nss.def; /cvsroot/mozilla/security/nss/lib/nss/nss.def,v <-- nss.def new revision: 1.196; previous revision: 1.195 done Checking in pk11wrap/pk11pub.h; /cvsroot/mozilla/security/nss/lib/pk11wrap/pk11pub.h,v <-- pk11pub.h new revision: 1.28; previous revision: 1.27 done Checking in pk11wrap/pk11skey.c; /cvsroot/mozilla/security/nss/lib/pk11wrap/pk11skey.c,v <-- pk11skey.c new revision: 1.112; previous revision: 1.111 done