projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CI: add tests with OpenSSL 3.0
[tinc]
/
src
/
ed25519
/
keypair.c
diff --git
a/src/ed25519/keypair.c
b/src/ed25519/keypair.c
index
dc1b8ec
..
71ec4d7
100644
(file)
--- a/
src/ed25519/keypair.c
+++ b/
src/ed25519/keypair.c
@@
-4,13
+4,13
@@
void ed25519_create_keypair(unsigned char *public_key, unsigned char *private_key, const unsigned char *seed) {
void ed25519_create_keypair(unsigned char *public_key, unsigned char *private_key, const unsigned char *seed) {
- ge_p3 A;
+
ge_p3 A;
- sha512(seed, 32, private_key);
- private_key[0] &= 248;
- private_key[31] &= 63;
- private_key[31] |= 64;
+
sha512(seed, 32, private_key);
+
private_key[0] &= 248;
+
private_key[31] &= 63;
+
private_key[31] |= 64;
- ge_scalarmult_base(&A, private_key);
- ge_p3_tobytes(public_key, &A);
+
ge_scalarmult_base(&A, private_key);
+
ge_p3_tobytes(public_key, &A);
}
}