summaryrefslogtreecommitdiff
path: root/src/skey
diff options
context:
space:
mode:
Diffstat (limited to 'src/skey')
-rw-r--r--src/skey/btoe.c1
-rw-r--r--src/skey/md4.c6
-rw-r--r--src/skey/sha1.c1
-rw-r--r--src/skey/skey.c1
4 files changed, 1 insertions, 8 deletions
diff --git a/src/skey/btoe.c b/src/skey/btoe.c
index bad4e81..f08dd3c 100644
--- a/src/skey/btoe.c
+++ b/src/skey/btoe.c
@@ -274,7 +274,6 @@ char *btoe(unsigned char *md)
}
-
/*
* Extract 'length' bits from the char array 's'
* starting with bit 'start'
diff --git a/src/skey/md4.c b/src/skey/md4.c
index 2335240..ce8eb23 100644
--- a/src/skey/md4.c
+++ b/src/skey/md4.c
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2001 Nikos Mavroyanopoulos
+ * Copyright (C) 2012-2021 MATE Developers
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Library General Public License as published
@@ -22,7 +23,6 @@
* written by Colin Plumb in 1993.
*/
-
#include <string.h>
#include <stdlib.h>
#include "config.h"
@@ -35,7 +35,6 @@
#else
static void byteReverse(unsigned char *buf, unsigned longs);
-
/*
* Note: this code is harmless on little-endian machines.
*/
@@ -191,7 +190,6 @@ void MD4Final(unsigned char* digest, MD4_CTX *ctx)
(a) = rotl32 ((a), (s)); \
}
-
/*
* The core of the MD4 algorithm
*/
@@ -255,7 +253,6 @@ void MD4Transform(guint32 buf[4], guint32 const in[16])
HH(c, d, a, b, in[7], 11); /* 47 */
HH(b, c, d, a, in[15], 15); /* 48 */
-
buf[0] += a;
buf[1] += b;
buf[2] += c;
@@ -291,7 +288,6 @@ int MD4Keycrunch( char *result, const char *seed, const char *passphrase)
return 0;
}
-
void MD4SKey(char *x)
{
MD4_CTX md;
diff --git a/src/skey/sha1.c b/src/skey/sha1.c
index 4537781..12fb478 100644
--- a/src/skey/sha1.c
+++ b/src/skey/sha1.c
@@ -35,7 +35,6 @@ static void byteReverse(unsigned char *buf, unsigned longs)
}
#endif
-
int SHA1Keycrunch(char *result, const char *seed, const char *passphrase)
{
char *buf;
diff --git a/src/skey/skey.c b/src/skey/skey.c
index fde2d15..0d35f9f 100644
--- a/src/skey/skey.c
+++ b/src/skey/skey.c
@@ -23,7 +23,6 @@ static struct skey_hash hash_table[] =
{ SHA1Keycrunch, SHA1SKey }
};
-
char *skey(SKeyAlgorithm algorithm, int seq, const char *seed, const char *passphrase)
{
char key[SKEY_SIZE];