summaryrefslogtreecommitdiff
path: root/curve.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-06-15 19:35:07 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-06-15 19:35:07 +0200
commitf5e80759f23c602ddfca9af906f082499d49cb36 (patch)
treeb8769d03337027d74db371e4a36afe9fa4f2adda /curve.h
parent2dbc1750eabb3781ec8181b5a73b54f6b8d64ef6 (diff)
curve: fix crypto_box_beforenmbytes length
This seems to have been corrupted. Must be crypto_box_beforenmbytes. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'curve.h')
-rw-r--r--curve.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/curve.h b/curve.h
index 8e43f7e..1fccd27 100644
--- a/curve.h
+++ b/curve.h
@@ -11,7 +11,7 @@
struct curve25519_proto {
unsigned char enonce[crypto_box_noncebytes] __aligned_16;
unsigned char dnonce[crypto_box_noncebytes] __aligned_16;
- unsigned char key[crypto_box_noncebytes] __aligned_16;
+ unsigned char key[crypto_box_beforenmbytes] __aligned_16;
};
struct curve25519_struct {