diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-09-30 13:38:12 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-09-25 15:08:31 -0400 |
commit | c75e275574b7a3496cd5050ef75f8d82d075642e (patch) | |
tree | 4bcaf273a655aae197921e4532bd966c7334da01 /src/common/crypto_ed25519.h | |
parent | 22760c4899cb7e8b643f3f572ce93fb6587b31b8 (diff) | |
download | tor-c75e275574b7a3496cd5050ef75f8d82d075642e.tar.gz tor-c75e275574b7a3496cd5050ef75f8d82d075642e.zip |
Add encode/decode functions for ed25519 public keys
Diffstat (limited to 'src/common/crypto_ed25519.h')
-rw-r--r-- | src/common/crypto_ed25519.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/common/crypto_ed25519.h b/src/common/crypto_ed25519.h index a68f2ec2b1..35f0125993 100644 --- a/src/common/crypto_ed25519.h +++ b/src/common/crypto_ed25519.h @@ -69,8 +69,15 @@ int ed25519_checksig_batch(int *okay_out, int n_checkable); #endif +#define ED25519_BASE64_LEN 43 + +int ed25519_public_from_base64(ed25519_public_key_t *pkey, + const char *input); +int ed25519_public_to_base64(char *output, + const ed25519_public_key_t *pkey); + /* XXXX write secret keys to disk, load secret keys from disk, read encrypted, - * write encrypted. serialize public. parse public. */ + * write encrypted. */ #endif |