Check points for validity on load

This commit is contained in:
Matthias Schiffer 2013-01-09 10:18:39 +01:00
parent 131597e511
commit a88af14481
2 changed files with 38 additions and 12 deletions

View file

@ -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);