comparison ecc.c @ 864:30ab30e46452

Fix some warnings
author Matt Johnston <matt@ucc.asn.au>
date Mon, 25 Nov 2013 23:08:33 +0800
parents c19acba28590
children 063c38ea622b
comparison
equal deleted inserted replaced
863:14342451d3df 864:30ab30e46452
73 return *curve; 73 return *curve;
74 } 74 }
75 75
76 ecc_key * new_ecc_key(void) { 76 ecc_key * new_ecc_key(void) {
77 ecc_key *key = m_malloc(sizeof(*key)); 77 ecc_key *key = m_malloc(sizeof(*key));
78 m_mp_alloc_init_multi(&key->pubkey.x, &key->pubkey.y, 78 m_mp_alloc_init_multi((mp_int**)&key->pubkey.x, (mp_int**)&key->pubkey.y,
79 &key->pubkey.z, &key->k, NULL); 79 (mp_int**)&key->pubkey.z, (mp_int**)&key->k, NULL);
80 return key; 80 return key;
81 } 81 }
82 82
83 /* Copied from libtomcrypt ecc_import.c (version there is static), modified 83 /* Copied from libtomcrypt ecc_import.c (version there is static), modified
84 for different mp_int pointer without LTC_SOURCE */ 84 for different mp_int pointer without LTC_SOURCE */