diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-11-14 22:03:30 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-11-14 22:03:30 +0800 |
commit | de1deaf0bde9c0e67932420117caeb390f8ead98 (patch) | |
tree | ccf5802f9b75b67d28ce22a42cc947dd018b1dcf /ecc.c | |
parent | e00a97944a412213d5335c3664f45bab0fcdb546 (diff) |
use oldstyle comments
Diffstat (limited to 'ecc.c')
-rw-r--r-- | ecc.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -80,8 +80,8 @@ ecc_key * new_ecc_key(void) { return key; } -// Copied from libtomcrypt ecc_import.c (version there is static), modified -// for different mp_int pointer without LTC_SOURCE +/* Copied from libtomcrypt ecc_import.c (version there is static), modified + for different mp_int pointer without LTC_SOURCE */ static int ecc_is_point(ecc_key *key) { mp_int *prime, *b, *t1, *t2; @@ -191,7 +191,7 @@ ecc_key * buf_get_ecc_raw_pubkey(buffer *buf, const struct dropbear_ecc_curve *c goto out; } - // SEC1 3.2.3.1 Check that Q != 0 + /* SEC1 3.2.3.1 Check that Q != 0 */ if (mp_cmp_d(key->pubkey.x, 0) == LTC_MP_EQ) { TRACE(("failed, x == 0")) goto out; @@ -216,8 +216,8 @@ ecc_key * buf_get_ecc_raw_pubkey(buffer *buf, const struct dropbear_ecc_curve *c } -// a modified version of libtomcrypt's "ecc_shared_secret" to output -// a mp_int instead. +/* a modified version of libtomcrypt's "ecc_shared_secret" to output + a mp_int instead. */ mp_int * dropbear_ecc_shared_secret(ecc_key *public_key, ecc_key *private_key) { ecc_point *result = NULL; |