summaryrefslogtreecommitdiffstats
path: root/examples/ncr_lib.c
diff options
context:
space:
mode:
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");