diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-07-23 08:34:38 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-07-23 08:34:38 +0200 |
commit | f58e82a071a25531f7e7f83cc4ed8982131dea5c (patch) | |
tree | 1edbb95023077ef7d9b0276f2c11defda1aba7ca /examples/speed.c | |
parent | 4b54c5727b7a22e0beacd40b94889b29bb57abcd (diff) | |
download | cryptodev-linux-f58e82a071a25531f7e7f83cc4ed8982131dea5c.tar.gz cryptodev-linux-f58e82a071a25531f7e7f83cc4ed8982131dea5c.tar.xz cryptodev-linux-f58e82a071a25531f7e7f83cc4ed8982131dea5c.zip |
Minor fixes in example programs.
Diffstat (limited to 'examples/speed.c')
-rw-r--r-- | examples/speed.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/speed.c b/examples/speed.c index fc6c29e..f4119c8 100644 --- a/examples/speed.c +++ b/examples/speed.c @@ -152,6 +152,7 @@ int encrypt_data_ncr(int cfd, int algo, int chunksize) buffer = malloc(chunksize); memset(iv, 0x23, 32); + memset(&dinit, 0, sizeof(dinit)); dinit.max_object_size = chunksize; dinit.flags = NCR_DATA_FLAG_EXPORTABLE; dinit.initial_data = buffer; |