summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-09-06 13:55:46 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-09-06 17:14:24 +0200
commitdf05d27b761295820f3b13ec31c67c0ab0198bfc (patch)
treed8bfb27b0fed918e56a7f62c67752a679ae6e007
parentc111dd151b4a4e2b8bd33634e26412e06a472d6b (diff)
downloadcryptodev-linux-df05d27b761295820f3b13ec31c67c0ab0198bfc.tar.gz
cryptodev-linux-df05d27b761295820f3b13ec31c67c0ab0198bfc.tar.xz
cryptodev-linux-df05d27b761295820f3b13ec31c67c0ab0198bfc.zip
Fix DH test
-rw-r--r--examples/pk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pk.c b/examples/pk.c
index c27ab25..5253500 100644
--- a/examples/pk.c
+++ b/examples/pk.c
@@ -533,7 +533,7 @@ struct __attribute__((packed)) {
kderive.flags_head.nla_len = NLA_HDRLEN + sizeof(kderive.flags);
kderive.flags_head.nla_type = NCR_ATTR_KEY_FLAGS;
kderive.flags = NCR_KEY_FLAG_EXPORTABLE;
- kderive.public_head.nla_len = NLA_HDRLEN + y2_size;
+ kderive.public_head.nla_len = NLA_HDRLEN + y1_size;
kderive.public_head.nla_type = NCR_ATTR_DH_PUBLIC;
memcpy(kderive.public, y1, y1_size);
nla = (struct nlattr *)((char *)&kderive.public_head