Need accessor function to retrieve SymKey handle

RESOLVED FIXED in 3.12.3

Status

NSS
Libraries
RESOLVED FIXED
8 years ago
8 years ago

People

(Reporter: Robert Relyea, Assigned: Robert Relyea)

Tracking

3.12.2
3.12.3

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

8 years ago
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
(Assignee)

Comment 1

8 years ago
Created attachment 368547 [details] [diff] [review]
new function to get the PKCS #11 key handle.

pretty basic patch.
Attachment #368547 - Flags: review?(nelson)
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 ...
Attachment #368547 - Flags: review?(nelson) → review+
(Assignee)

Comment 3

8 years ago
Yes, it's opaque, it's one of the few major ones we got right.

thanks,

bob.
(Assignee)

Comment 4

8 years ago
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
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.