comparison bignum.c @ 852:7540c0822374 ecc

Various cleanups and fixes for warnings
author Matt Johnston <matt@ucc.asn.au>
date Tue, 12 Nov 2013 23:02:32 +0800
parents 724c3e0c8734
children 2bb4c662d1c2
comparison
equal deleted inserted replaced
851:c1c1b43f78c2 852:7540c0822374
76 } 76 }
77 77
78 /* hash the ssh representation of the mp_int mp */ 78 /* hash the ssh representation of the mp_int mp */
79 void hash_process_mp(const struct ltc_hash_descriptor *hash_desc, 79 void hash_process_mp(const struct ltc_hash_descriptor *hash_desc,
80 hash_state *hs, mp_int *mp) { 80 hash_state *hs, mp_int *mp) {
81
82 int i;
83 buffer * buf; 81 buffer * buf;
84 82
85 buf = buf_new(512 + 20); /* max buffer is a 4096 bit key, 83 buf = buf_new(512 + 20); /* max buffer is a 4096 bit key,
86 plus header + some leeway*/ 84 plus header + some leeway*/
87 buf_putmpint(buf, mp); 85 buf_putmpint(buf, mp);