OpenSolaris

Printable Version Enter a New Search
Bug ID 6648799
Synopsis init operation trashes mechanism parameter
State 10-Fix Delivered (Fix available in build)
Category:Subcategory solaris-crypto:pkcs11
Keywords ef-reviewed
Responsible Engineer Hai-may Chao
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_82
Fixed In snv_82
Release Fixed solaris_nevada(snv_82)
Related Bugs 6482533
Submit Date 9-January-2008
Last Update Date 31-January-2008
Description
Init operations, e.g. C_EncryptInit(), try to clean up from previous
incomplete operations such as one missing a final. In doing so, init
sets the mechanism's parameter to NULL even when one has been passed in
by an application. It should not do this.

My test program calls init/update/final in a loop. It calls final with
a NULL pointer to get the length of the final output, but it never trys
to get the final output, hence the operation is incomplete.
The next call to init fails.
Work Around
N/A
Comments
N/A