mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 20:13:44 +02:00
Comment out some unused functions.
This commit is contained in:
parent
ee8682ac75
commit
65823332d4
1 changed files with 6 additions and 1 deletions
|
@ -765,12 +765,15 @@ void sc25519_from64bytes(sc25519 *r, const unsigned char x[64])
|
||||||
barrett_reduce(r, t);
|
barrett_reduce(r, t);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
void sc25519_to32bytes(unsigned char r[32], const sc25519 *x)
|
void sc25519_to32bytes(unsigned char r[32], const sc25519 *x)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for(i=0;i<32;i++) r[i] = x->v[i];
|
for(i=0;i<32;i++) r[i] = x->v[i];
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
void sc25519_add(sc25519 *r, const sc25519 *x, const sc25519 *y)
|
void sc25519_add(sc25519 *r, const sc25519 *x, const sc25519 *y)
|
||||||
{
|
{
|
||||||
int i, carry;
|
int i, carry;
|
||||||
|
@ -783,7 +786,9 @@ void sc25519_add(sc25519 *r, const sc25519 *x, const sc25519 *y)
|
||||||
}
|
}
|
||||||
reduce_add_sub(r);
|
reduce_add_sub(r);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
void sc25519_mul(sc25519 *r, const sc25519 *x, const sc25519 *y)
|
void sc25519_mul(sc25519 *r, const sc25519 *x, const sc25519 *y)
|
||||||
{
|
{
|
||||||
int i,j,carry;
|
int i,j,carry;
|
||||||
|
@ -794,7 +799,6 @@ void sc25519_mul(sc25519 *r, const sc25519 *x, const sc25519 *y)
|
||||||
for(j=0;j<32;j++)
|
for(j=0;j<32;j++)
|
||||||
t[i+j] += x->v[i] * y->v[j];
|
t[i+j] += x->v[i] * y->v[j];
|
||||||
|
|
||||||
/* Reduce coefficients */
|
|
||||||
for(i=0;i<63;i++)
|
for(i=0;i<63;i++)
|
||||||
{
|
{
|
||||||
carry = t[i] >> 8;
|
carry = t[i] >> 8;
|
||||||
|
@ -804,6 +808,7 @@ void sc25519_mul(sc25519 *r, const sc25519 *x, const sc25519 *y)
|
||||||
|
|
||||||
barrett_reduce(r, t);
|
barrett_reduce(r, t);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
void sc25519_window3(signed char r[85], const sc25519 *s)
|
void sc25519_window3(signed char r[85], const sc25519 *s)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue