From a88af144813fcefdd8a711b8b4aed15fe215230d Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 9 Jan 2013 10:18:39 +0100 Subject: Check points for validity on load --- include/libuecc/ecc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/libuecc/ecc.h b/include/libuecc/ecc.h index 1cc2100..8b09ccd 100644 --- a/include/libuecc/ecc.h +++ b/include/libuecc/ecc.h @@ -65,10 +65,10 @@ typedef struct _ecc_25519_work { * @{ */ -void ecc_25519_load_xy(ecc_25519_work_t *out, const ecc_int256_t *x, const ecc_int256_t *y); +int ecc_25519_load_xy(ecc_25519_work_t *out, const ecc_int256_t *x, const ecc_int256_t *y); void ecc_25519_store_xy(ecc_int256_t *x, ecc_int256_t *y, const ecc_25519_work_t *in); -void ecc_25519_load_packed(ecc_25519_work_t *out, const ecc_int256_t *in); +int ecc_25519_load_packed(ecc_25519_work_t *out, const ecc_int256_t *in); void ecc_25519_store_packed(ecc_int256_t *out, const ecc_25519_work_t *in); int ecc_25519_is_identity(const ecc_25519_work_t *in); -- cgit v1.2.3