aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto_ed25519.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-09-14 14:27:44 -0400
committerNick Mathewson <nickm@torproject.org>2016-11-10 09:43:27 -0500
commit431565e0531eb6cfdaabd2bba8912655898f079b (patch)
tree7bf28c19c98ddc2b67e972a879cc930901c9e0b8 /src/common/crypto_ed25519.h
parent0980787f91cfc420f02dead3fea99882ab8c2ada (diff)
downloadtor-431565e0531eb6cfdaabd2bba8912655898f079b.tar.gz
tor-431565e0531eb6cfdaabd2bba8912655898f079b.zip
Helper function to see if an ed25519 pk is set.
Diffstat (limited to 'src/common/crypto_ed25519.h')
-rw-r--r--src/common/crypto_ed25519.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/crypto_ed25519.h b/src/common/crypto_ed25519.h
index 31afc49ccc..5d63d90d13 100644
--- a/src/common/crypto_ed25519.h
+++ b/src/common/crypto_ed25519.h
@@ -66,6 +66,9 @@ ed25519_checksig_prefixed(const ed25519_signature_t *signature,
const char *prefix_str,
const ed25519_public_key_t *pubkey);
+int ed25519_public_key_is_zero(const ed25519_public_key_t *pubkey);
+
+
/**
* A collection of information necessary to check an Ed25519 signature. Used
* for batch verification.