Signed-off-by: Harald Freudenberger <[email protected]>
---
 usr/lib/pkcs11/cca_stdll/cca_specific.c |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/usr/lib/pkcs11/cca_stdll/cca_specific.c 
b/usr/lib/pkcs11/cca_stdll/cca_specific.c
index 9a649d0..2e8ba9c 100644
--- a/usr/lib/pkcs11/cca_stdll/cca_specific.c
+++ b/usr/lib/pkcs11/cca_stdll/cca_specific.c
@@ -2386,6 +2386,9 @@ static CK_RV import_aes_key(unsigned char *key, CK_ULONG 
keylen,
                return rc;
        }
 
+       /* zero clear key value */
+       memset(key, 0, keylen);
+
        return CKR_OK;
 }
 
@@ -2442,6 +2445,9 @@ static CK_RV import_des_key(unsigned char *key, CK_ULONG 
keylen,
                return rc;
        }
 
+       /* zero clear key value */
+       memset(key, 0, keylen);
+
        return CKR_OK;
 }
 
@@ -2533,6 +2539,9 @@ static CK_RV import_generic_secret_key(unsigned char 
*key, CK_ULONG keylen,
                return rc;
        }
 
+       /* zero clear key value */
+       memset(key, 0, keylen);
+
        return CKR_OK;
 }
 
-- 
1.7.9.5


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Opencryptoki-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech

Reply via email to