summaryrefslogtreecommitdiff
path: root/src/ltc/pk/ecc/ecc_export.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ltc/pk/ecc/ecc_export.c')
-rw-r--r--src/ltc/pk/ecc/ecc_export.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/ltc/pk/ecc/ecc_export.c b/src/ltc/pk/ecc/ecc_export.c
index 05aacfed..a095e9a2 100644
--- a/src/ltc/pk/ecc/ecc_export.c
+++ b/src/ltc/pk/ecc/ecc_export.c
@@ -7,9 +7,6 @@
* guarantee it works.
*/
-/* Implements ECC over Z/pZ for curve y^2 = x^3 + a*x + b
- *
- */
#include "tomcrypt.h"
/**
@@ -42,12 +39,8 @@ int ecc_export(unsigned char *out, unsigned long *outlen, int type, ecc_key *key
return CRYPT_PK_TYPE_MISMATCH;
}
- if (ltc_ecc_is_valid_idx(key->idx) == 0) {
- return CRYPT_INVALID_ARG;
- }
-
/* we store the NIST byte size */
- key_size = key->dp->size;
+ key_size = key->dp.size;
if (type == PK_PRIVATE) {
flags[0] = 1;