repo.or.cz
/
tomato.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git]
/
release
/
src
/
router
/
libsodium
/
src
/
libsodium
/
crypto_sign
/
ed25519
/
ref10
/
ge_p3_tobytes.c
blob
21cb2fc656d7b22a8561eaedae395360d6d92c70
1
#include
"ge.h"
2
3
void
ge_p3_tobytes
(
unsigned char
*
s
,
const
ge_p3
*
h
)
4
{
5
fe recip
;
6
fe x
;
7
fe y
;
8
9
fe_invert
(
recip
,
h
->
Z
);
10
fe_mul
(
x
,
h
->
X
,
recip
);
11
fe_mul
(
y
,
h
->
Y
,
recip
);
12
fe_tobytes
(
s
,
y
);
13
s
[
31
] ^=
fe_isnegative
(
x
) <<
7
;
14
}