☰
Debian Codegraph
@
2.0.0+20231128.d725c81-1
/
/
ref10
/
crypto_sign
/
ge_tobytes.c
☽
☼
ref10/crypto_sign/ge_tobytes.c
code
plain
raw
symbols
SCIP
public-domain
2008, 2014 Daniel J. Bernstein <
[email protected]
>
debian/copyright
1
#
include
"ge.h"
2
3
void
ge_tobytes
(unsigned char *
s
,const
ge_p2
*
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
}