summaryrefslogtreecommitdiffhomepage
path: root/ecdsa.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-11-14 21:36:45 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-11-14 21:36:45 +0800
commita65f84db38eebcde867ab4bfc5b916f61e95bfa2 (patch)
treed5c32671e64204b67b96dcbf2d9d2b828c11b7b9 /ecdsa.c
parent8c8ecec3e96525d498077da81084302371bab4da (diff)
- Some fixes for old compilers like tru64 v4 from Daniel Richard G.
- Don't warn about blocking random device for prngd
Diffstat (limited to 'ecdsa.c')
-rw-r--r--ecdsa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ecdsa.c b/ecdsa.c
index eddbf13..05912e2 100644
--- a/ecdsa.c
+++ b/ecdsa.c
@@ -36,6 +36,7 @@ enum signkey_type ecdsa_signkey_type(ecc_key * key) {
ecc_key *gen_ecdsa_priv_key(unsigned int bit_size) {
const ltc_ecc_set_type *dp = NULL; // curve domain parameters
+ ecc_key *new_key = NULL;
switch (bit_size) {
#ifdef DROPBEAR_ECC_256
case 256:
@@ -67,7 +68,7 @@ ecc_key *gen_ecdsa_priv_key(unsigned int bit_size) {
, bit_size);
}
- ecc_key *new_key = m_malloc(sizeof(*new_key));
+ new_key = m_malloc(sizeof(*new_key));
if (ecc_make_key_ex(NULL, dropbear_ltc_prng, new_key, dp) != CRYPT_OK) {
dropbear_exit("ECC error");
}