diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-09-06 13:55:46 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-09-06 17:14:24 +0200 |
commit | df05d27b761295820f3b13ec31c67c0ab0198bfc (patch) | |
tree | d8bfb27b0fed918e56a7f62c67752a679ae6e007 /examples | |
parent | c111dd151b4a4e2b8bd33634e26412e06a472d6b (diff) | |
download | cryptodev-linux-df05d27b761295820f3b13ec31c67c0ab0198bfc.tar.gz cryptodev-linux-df05d27b761295820f3b13ec31c67c0ab0198bfc.tar.xz cryptodev-linux-df05d27b761295820f3b13ec31c67c0ab0198bfc.zip |
Fix DH test
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pk.c | 2 |
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 |