summaryrefslogtreecommitdiff
path: root/eddsa.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-10-14 21:17:04 +0200
committerNiels Möller <nisse@lysator.liu.se>2014-10-14 21:17:04 +0200
commitec6133875cf0b05afaab2b70a39bc9ef06312ebd (patch)
treeca5691d695e1e2a7341cce25fd01f015959bcb07 /eddsa.h
parent259f0d2bd6cfb813b41c9b929b8cb5d3829197db (diff)
downloadnettle-ec6133875cf0b05afaab2b70a39bc9ef06312ebd.tar.gz
Implemented _eddsa_verify. Almost correct.
Diffstat (limited to 'eddsa.h')
-rw-r--r--eddsa.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/eddsa.h b/eddsa.h
index d368432b..582e969b 100644
--- a/eddsa.h
+++ b/eddsa.h
@@ -50,6 +50,8 @@ extern "C" {
#define _eddsa_expand_key _nettle_eddsa_expand_key
#define _eddsa_sign _nettle_eddsa_sign
#define _eddsa_sign_itch _nettle_eddsa_sign_itch
+#define _eddsa_verify _nettle_eddsa_verify
+#define _eddsa_verify_itch _nettle_eddsa_verify_itch
#define ED25519_KEY_SIZE 32
@@ -88,6 +90,20 @@ _eddsa_sign (const struct ecc_curve *ecc,
mp_limb_t *scratch);
mp_size_t
+_eddsa_verify_itch (const struct ecc_curve *ecc);
+
+int
+_eddsa_verify (const struct ecc_curve *ecc,
+ const struct nettle_hash *H,
+ const uint8_t *pub,
+ void *ctx,
+ const mp_limb_t *A,
+ size_t length,
+ const uint8_t *msg,
+ const uint8_t *signature,
+ mp_limb_t *scratch);
+
+mp_size_t
_eddsa_expand_key_itch (const struct ecc_curve *ecc);
void