summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-01-09 10:18:39 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-01-09 10:18:39 +0100
commita88af144813fcefdd8a711b8b4aed15fe215230d (patch)
treef62defa21c9b77e7823c0f4973d3017a590c0828 /include
parent131597e5116cb56c1bb0b651f00778c74fdca194 (diff)
downloadlibuecc-a88af144813fcefdd8a711b8b4aed15fe215230d.tar
libuecc-a88af144813fcefdd8a711b8b4aed15fe215230d.zip
Check points for validity on load
Diffstat (limited to 'include')
-rw-r--r--include/libuecc/ecc.h4
1 files changed, 2 insertions, 2 deletions
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);