From 167b20686b5232149f6557fc27f38ede6f6cb941 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 22 Nov 2024 18:08:54 -0500 Subject: [PATCH] fixup! Ensure CKK_EC private keys are correctly formed --- src/ec/ecdsa.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ec/ecdsa.rs b/src/ec/ecdsa.rs index 09ff276b..c5cf10f9 100644 --- a/src/ec/ecdsa.rs +++ b/src/ec/ecdsa.rs @@ -132,7 +132,7 @@ impl ECCPrivFactory { impl ObjectFactory for ECCPrivFactory { fn create(&self, template: &[CK_ATTRIBUTE]) -> Result { - let mut obj = self.default_object_create(template)?; + let obj = self.default_object_create(template)?; /* According to PKCS#11 v3.1 6.3.4: * CKA_EC_PARAMS, Byte array,