From b1bce857c90ee06110e38dfaf78df4b1d20f2b90 Mon Sep 17 00:00:00 2001 From: koe Date: Thu, 1 Dec 2022 17:53:17 -0600 Subject: miscellaneous crypto updates --- src/crypto/crypto-ops.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/crypto/crypto-ops.h') diff --git a/src/crypto/crypto-ops.h b/src/crypto/crypto-ops.h index e4901e080..7a6f0789a 100644 --- a/src/crypto/crypto-ops.h +++ b/src/crypto/crypto-ops.h @@ -30,6 +30,8 @@ #pragma once +#include + /* From fe.h */ typedef int32_t fe[10]; @@ -161,5 +163,7 @@ void ge_sub(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q); void fe_add(fe h, const fe f, const fe g); void fe_tobytes(unsigned char *, const fe); void fe_invert(fe out, const fe z); +void fe_mul(fe out, const fe, const fe); +void fe_0(fe h); int ge_p3_is_point_at_infinity_vartime(const ge_p3 *p); -- cgit v1.2.3