diff --git a/mpint.c b/mpint.c index 8140fafe..20bc6661 100644 --- a/mpint.c +++ b/mpint.c @@ -899,13 +899,6 @@ mp_int *mp_sub(mp_int *x, mp_int *y) return r; } -mp_int *mp_neg(mp_int *a) -{ - mp_int *r = mp_make_sized(a->nw); - mp_neg_into(r, a); - return r; -} - /* * Internal routine: multiply and accumulate in the trivial O(N^2) * way. Sets r <- r + a*b. diff --git a/sshmd5.c b/sshmd5.c index dbcba3f7..79ca39e9 100644 --- a/sshmd5.c +++ b/sshmd5.c @@ -213,16 +213,6 @@ void MD5Final(unsigned char output[16], struct MD5Context *s) } } -void MD5Simple(void const *p, unsigned len, unsigned char output[16]) -{ - struct MD5Context s; - - MD5Init(&s); - put_data(&s, (unsigned char const *)p, len); - MD5Final(output, &s); - smemclr(&s, sizeof(s)); -} - /* ---------------------------------------------------------------------- * Thin abstraction for things where hashes are pluggable. */ diff --git a/sshsh512.c b/sshsh512.c index 03201d74..b5af140a 100644 --- a/sshsh512.c +++ b/sshsh512.c @@ -277,24 +277,6 @@ void SHA384_Final(SHA512_State *s, unsigned char *digest) { memcpy(digest, biggerDigest, 384 / 8); } -void SHA512_Simple(const void *p, int len, unsigned char *output) { - SHA512_State s; - - SHA512_Init(&s); - put_data(&s, p, len); - SHA512_Final(&s, output); - smemclr(&s, sizeof(s)); -} - -void SHA384_Simple(const void *p, int len, unsigned char *output) { - SHA512_State s; - - SHA384_Init(&s); - put_data(&s, p, len); - SHA384_Final(&s, output); - smemclr(&s, sizeof(s)); -} - /* * Thin abstraction for things where hashes are pluggable. */