mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 22:05:44 +00:00
Bugzilla Bug 298957: improved the comment for PK11_TokenKeyGenWithFlags.
r=relyea.
This commit is contained in:
parent
be13c48905
commit
035c21bfa6
@ -766,9 +766,13 @@ PK11_MoveSymKey(PK11SlotInfo *slot, CK_ATTRIBUTE_TYPE operation,
|
||||
|
||||
|
||||
/*
|
||||
* Use the token to Generate a key. keySize must be 'zero' for fixed key
|
||||
* length algorithms. NOTE: this means we can never generate a DES2 key
|
||||
* from this interface!
|
||||
* Use the token to generate a key. keySize must be 'zero' for fixed key
|
||||
* length algorithms. A nonzero keySize causes the CKA_VALUE_LEN attribute
|
||||
* to be added to the template for the key. PKCS #11 modules fail if you
|
||||
* specify the CKA_VALUE_LEN attribute for keys with fixed length.
|
||||
* NOTE: this means to generate a DES2 key from this interface you must
|
||||
* specify CKM_DES2_KEY_GEN as the mechanism directly; specifying
|
||||
* CKM_DES3_CBC as the mechanism and 16 as keySize currently doesn't work.
|
||||
*/
|
||||
PK11SymKey *
|
||||
PK11_TokenKeyGenWithFlags(PK11SlotInfo *slot, CK_MECHANISM_TYPE type,
|
||||
|
Loading…
Reference in New Issue
Block a user