Closed Peter2121 closed 3 years ago
Let me check. Thank you for reporting.
I think you are right, but in libtomcrypt releases, we have:
/** An ECC key */
typedef struct {
/** Type of key, PK_PRIVATE or PK_PUBLIC */
int type;
/** Index into the ltc_ecc_sets[] for the parameters of this curve; if -1, then this key is using user supplied curve in dp */
int idx;
/** pointer to domain parameters; either points to NIST curves (identified by idx >= 0) or user supplied curve */
const ltc_ecc_set_type *dp;
/** The public key */
ecc_point pubkey;
/** The private key */
void *k;
} ecc_key;
But indeed, in master branch we have:
/** An ECC key */
typedef struct {
/** Type of key, PK_PRIVATE or PK_PUBLIC */
int type;
/** Structure with domain parameters */
ltc_ecc_dp dp;
/** Structure with the public key */
ecc_point pubkey;
/** The private key */
void *k;
} ecc_key;
It should be fairly easy to rewrite this code, but not being an official release, I don't think it is a good ideea to support it. Things may change until the next official release.
Probably, some structures are changed.
There are some warnings too.