-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: SoftHSM 2.0.0a1
-
Fix Version/s: SoftHSM 2.x develop
-
Component/s: PKCS#11 Interface
-
Labels:None
-
Environment:
Xubuntu 10.04
Cf. PKCS#11 Base Functionality v2.30 (pkcs-11v2-30b-d6.pdf), section 11.14 (Key Management Functions)
C_GenerateKey returns CKR_ARGUMENTS_BAD if pTemplate is null (https://github.com/opendnssec/SoftHSMv2/blob/develop/src/lib/SoftHSM.cpp#L4299). An example from the spec suggests that there are cases where C_GenerateKey should accept NULL_PTR, e.g. with DES (CMK_DES_KEY_GEN) (cf. C_GenerateKey section p.173).
To reproduce: cf. example in C_GenerateKey subsection in 11.14.
- relates to
-
SOFTHSM-88 Accept NULL_PTR for pTemplate in C_GenerateKey
-
- Closed
-