summaryrefslogtreecommitdiffstats
path: root/examples/ncr.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-14 11:58:29 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-14 11:58:29 +0200
commit0201edca222dbfe408690b6b7fd0e9c34e6a02d9 (patch)
tree9370842c7c736519191ec580f4d30129b348ac96 /examples/ncr.c
parent7e36c5726d7ab6b41ff186fae315f039cd4a97be (diff)
downloadcryptodev-linux-0201edca222dbfe408690b6b7fd0e9c34e6a02d9.tar.gz
cryptodev-linux-0201edca222dbfe408690b6b7fd0e9c34e6a02d9.tar.xz
cryptodev-linux-0201edca222dbfe408690b6b7fd0e9c34e6a02d9.zip
Corrected RSA signature generation/verification.
Added Test for RSA and DSA signature generation and verification.
Diffstat (limited to 'examples/ncr.c')
-rw-r--r--examples/ncr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/ncr.c b/examples/ncr.c
index bb3d006..69e699a 100644
--- a/examples/ncr.c
+++ b/examples/ncr.c
@@ -1116,8 +1116,8 @@ test_ncr_hash(int cfd)
if (hash_vectors[i].key != NULL)
nop.init.params.key = key;
nop.init.op = hash_vectors[i].op;
- nop.op.data.digest.text = dd;
- nop.op.data.digest.output = dd2;
+ nop.op.data.sign.text = dd;
+ nop.op.data.sign.output = dd2;
if (ioctl(cfd, NCRIO_SESSION_ONCE, &nop)) {
fprintf(stderr, "Error: %s:%d\n", __func__, __LINE__);