comparison bignum.c @ 1912:8b4274d34fe8

Use buf_burn_free() instead of two calls
author Matt Johnston <matt@ucc.asn.au>
date Tue, 29 Mar 2022 23:47:30 +0800
parents 1051e4eea25a
children
comparison
equal deleted inserted replaced
1911:ced53051e200 1912:8b4274d34fe8
98 98
99 buf = buf_new(512 + 20); /* max buffer is a 4096 bit key, 99 buf = buf_new(512 + 20); /* max buffer is a 4096 bit key,
100 plus header + some leeway*/ 100 plus header + some leeway*/
101 buf_putmpint(buf, mp); 101 buf_putmpint(buf, mp);
102 hash_desc->process(hs, buf->data, buf->len); 102 hash_desc->process(hs, buf->data, buf->len);
103 buf_free(buf); 103 buf_burn_free(buf);
104 } 104 }