summaryrefslogtreecommitdiffstats
path: root/examples/ncr_lib.c
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-08-05 23:26:28 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-08-23 20:01:59 +0200
commit7c3ff46e97576c32ccc40a890dd315f8fabf4a75 (patch)
tree69a5feb9e745a47784f8bd4b1797beea56ae5d7f /examples/ncr_lib.c
parent77fc876d20876c608110941576ee7e2f1b36f95d (diff)
downloadcryptodev-linux-7c3ff46e97576c32ccc40a890dd315f8fabf4a75.tar.gz
cryptodev-linux-7c3ff46e97576c32ccc40a890dd315f8fabf4a75.tar.xz
cryptodev-linux-7c3ff46e97576c32ccc40a890dd315f8fabf4a75.zip
Remove an unused variable
Diffstat (limited to 'examples/ncr_lib.c')
-rw-r--r--examples/ncr_lib.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/ncr_lib.c b/examples/ncr_lib.c
index 98c35cb..111f89b 100644
--- a/examples/ncr_lib.c
+++ b/examples/ncr_lib.c
@@ -52,7 +52,6 @@ static int
test_ncr_key(void)
{
ncr_key_t key;
- struct ncr_key_data_st keydata;
uint8_t data[KEY_DATA_SIZE];
uint8_t data_bak[KEY_DATA_SIZE];
ssize_t output_size;
@@ -72,7 +71,6 @@ test_ncr_key(void)
DIAGNOSTIC_CALL(ncr_key_import, key, data, sizeof(data), "ab", 2, NCR_ALG_AES_CBC, NCR_KEY_TYPE_SECRET, NCR_KEY_FLAG_EXPORTABLE);
/* now try to read it */
fprintf(stdout, "\tKey export...\n");
- memset(&keydata, 0, sizeof(keydata));
DIAGNOSTIC_CALL(ncr_key_export, key, data, sizeof(data));
if ((output_size != sizeof(data)) || memcmp(data, data_bak, sizeof(data))) {
DIAGNOSTIC_ERROR("data returned but differ!\n");