diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-04-07 01:36:42 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-04-07 01:36:42 +0800 |
commit | c6bdc810abab5b58aba26a7618c49f3dac58ebd6 (patch) | |
tree | 2594798a88e46aff08f0b350925b4a77eb0a6341 /libtomcrypt/src/pk | |
parent | a8135dec1e8b9360274679c9ff89cb98cda87930 (diff) |
ecc kind of works, needs fixing/testing
--HG--
branch : ecc
Diffstat (limited to 'libtomcrypt/src/pk')
-rw-r--r-- | libtomcrypt/src/pk/ecc/ecc_decrypt_key.c | 2 | ||||
-rw-r--r-- | libtomcrypt/src/pk/ecc/ecc_encrypt_key.c | 2 | ||||
-rw-r--r-- | libtomcrypt/src/pk/ecc/ecc_export.c | 2 | ||||
-rw-r--r-- | libtomcrypt/src/pk/ecc/ecc_import.c | 2 | ||||
-rw-r--r-- | libtomcrypt/src/pk/ecc/ecc_sign_hash.c | 2 | ||||
-rw-r--r-- | libtomcrypt/src/pk/ecc/ecc_verify_hash.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/libtomcrypt/src/pk/ecc/ecc_decrypt_key.c b/libtomcrypt/src/pk/ecc/ecc_decrypt_key.c index bb56208..97039d0 100644 --- a/libtomcrypt/src/pk/ecc/ecc_decrypt_key.c +++ b/libtomcrypt/src/pk/ecc/ecc_decrypt_key.c @@ -21,7 +21,7 @@ ECC Crypto, Tom St Denis */ -#ifdef MECC +#if defined(MECC) && defined(LTC_DER) /** Decrypt an ECC encrypted key diff --git a/libtomcrypt/src/pk/ecc/ecc_encrypt_key.c b/libtomcrypt/src/pk/ecc/ecc_encrypt_key.c index dd9bab0..d11ffe4 100644 --- a/libtomcrypt/src/pk/ecc/ecc_encrypt_key.c +++ b/libtomcrypt/src/pk/ecc/ecc_encrypt_key.c @@ -21,7 +21,7 @@ ECC Crypto, Tom St Denis */ -#ifdef MECC +#if defined(MECC) && defined(LTC_DER) /** Encrypt a symmetric key with ECC diff --git a/libtomcrypt/src/pk/ecc/ecc_export.c b/libtomcrypt/src/pk/ecc/ecc_export.c index 1919849..08c8d31 100644 --- a/libtomcrypt/src/pk/ecc/ecc_export.c +++ b/libtomcrypt/src/pk/ecc/ecc_export.c @@ -21,7 +21,7 @@ ECC Crypto, Tom St Denis */ -#ifdef MECC +#if defined(MECC) && defined(LTC_DER) /** Export an ECC key as a binary packet diff --git a/libtomcrypt/src/pk/ecc/ecc_import.c b/libtomcrypt/src/pk/ecc/ecc_import.c index 4adb28e..97eaa7d 100644 --- a/libtomcrypt/src/pk/ecc/ecc_import.c +++ b/libtomcrypt/src/pk/ecc/ecc_import.c @@ -21,7 +21,7 @@ ECC Crypto, Tom St Denis */ -#ifdef MECC +#if defined(MECC) && defined(LTC_DER) static int is_point(ecc_key *key) { diff --git a/libtomcrypt/src/pk/ecc/ecc_sign_hash.c b/libtomcrypt/src/pk/ecc/ecc_sign_hash.c index 44f949e..34c5893 100644 --- a/libtomcrypt/src/pk/ecc/ecc_sign_hash.c +++ b/libtomcrypt/src/pk/ecc/ecc_sign_hash.c @@ -21,7 +21,7 @@ ECC Crypto, Tom St Denis */ -#ifdef MECC +#if defined(MECC) && defined(LTC_DER) /** Sign a message digest diff --git a/libtomcrypt/src/pk/ecc/ecc_verify_hash.c b/libtomcrypt/src/pk/ecc/ecc_verify_hash.c index bd8a840..65a96e6 100644 --- a/libtomcrypt/src/pk/ecc/ecc_verify_hash.c +++ b/libtomcrypt/src/pk/ecc/ecc_verify_hash.c @@ -21,7 +21,7 @@ ECC Crypto, Tom St Denis */ -#ifdef MECC +#if defined(MECC) && defined(LTC_DER) /* verify * |