Last Comment Bug 484425 - Need accessor function to retrieve SymKey handle
: Need accessor function to retrieve SymKey handle
Status: RESOLVED FIXED
:
Product: NSS
Classification: Components
Component: Libraries (show other bugs)
: 3.12.2
: All All
: -- normal (vote)
: 3.12.3
Assigned To: Robert Relyea
:
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-20 10:45 PDT by Robert Relyea
Modified: 2009-03-20 14:09 PDT (History)
0 users
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---


Attachments
new function to get the PKCS #11 key handle. (1.65 KB, patch)
2009-03-20 10:54 PDT, Robert Relyea
nelson: review+
Details | Diff | Splinter Review

Description Robert Relyea 2009-03-20 10:45:31 PDT
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
Comment 1 Robert Relyea 2009-03-20 10:54:01 PDT
Created attachment 368547 [details] [diff] [review]
new function to get the PKCS #11 key handle.

pretty basic patch.
Comment 2 Nelson Bolyard (seldom reads bugmail) 2009-03-20 11:46:47 PDT
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 ...
Comment 3 Robert Relyea 2009-03-20 11:57:18 PDT
Yes, it's opaque, it's one of the few major ones we got right.

thanks,

bob.
Comment 4 Robert Relyea 2009-03-20 14:09:25 PDT
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

Note You need to log in before you can comment on or make changes to this bug.