diff ecc.c @ 857:c19acba28590

use oldstyle comments
author Matt Johnston <matt@ucc.asn.au>
date Thu, 14 Nov 2013 22:03:30 +0800
parents 04ede40a529a
children 30ab30e46452
line wrap: on
line diff
--- a/ecc.c	Thu Nov 14 21:45:50 2013 +0800
+++ b/ecc.c	Thu Nov 14 22:03:30 2013 +0800
@@ -80,8 +80,8 @@
 	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 @@
 		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 @@
 
 }
 
-// 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;