Closed Bug 119362 Opened 24 years ago Closed 24 years ago

PK11_ImportSymKey should be able to enable multiple operations

Categories

(NSS :: Libraries, enhancement, P1)

3.3.1
enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jamie-bugzilla, Assigned: rrelyea)

References

Details

Attachments

(1 file)

We don't know when we imnport a symmetric key what it will be used for, so I want to enable it for all operations.
Blocks: 112882
Target Milestone: --- → 3.4
Set priority to P1 for NSS 3.4.
Priority: -- → P1
Basically move the Flags->template utility function above the SymKey function, Convert the existing ImportsymKey function to an internal ImportSymkey function which imports by template. Create a new ImportSymKey function which calls the new internal ImportSymkey function Cerate a new ImportSymKeyWithFlags which calls the new internal ImportSymkey funciton
This patch is checked in. I'll close it when Jamie verifies it functions as needed.
Comment on attachment 67527 [details] [diff] [review] Proposed patch to create a PK11_ImportSymKeyWithFlags() r=wtc. Nit: the assertion PR_ASSERT(templateCount+1 <= sizeof(keyTemplate)/sizeof(CK_ATTRIBUTE)); can be simplified to PR_ASSERT(templateCount < sizeof(keyTemplate)/sizeof(CK_ATTRIBUTE));
reopen if functions do not work.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: