aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/sha1.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2014-10-14 11:12:16 -0400
committerBill Meier <wmeier@newsguy.com>2014-10-14 16:45:09 +0000
commit10b83e6931debe1f1f2ea4edce86ddf168995e51 (patch)
treefb8b987b896ded10ce6e1f9a4fa344ccdd987515 /wsutil/sha1.c
parent2359e67f9c42cc285935c70fe8e9cc6b9f369797 (diff)
Add editor-modelines; adjust whitespace.
Change-Id: I8cad872cee972a6d22a72852dac57fd188daca84 Reviewed-on: https://code.wireshark.org/review/4683 Reviewed-by: Bill Meier <wmeier@newsguy.com>
Diffstat (limited to 'wsutil/sha1.c')
-rw-r--r--wsutil/sha1.c23
1 files changed, 18 insertions, 5 deletions
diff --git a/wsutil/sha1.c b/wsutil/sha1.c
index fcafd2b743..ff8036bd7d 100644
--- a/wsutil/sha1.c
+++ b/wsutil/sha1.c
@@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Changed to use guint instead of uint 2004 by Anders Broman
- * Original code found at http://www.cr0.net:8040/code/crypto/sha1/
+ * Original code found at http://www.cr0.net:8040/code/crypto/sha1/
* References: http://www.ietf.org/rfc/rfc3174.txt?number=3174
*
* 2012-08-21 - C Elston - Split sha1_hmac function to allow incremental usage.
@@ -256,10 +256,10 @@ void sha1_update( sha1_context *ctx, const guint8 *input, guint32 length )
static guint8 sha1_padding[64] =
{
- 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+ 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
void sha1_finish( sha1_context *ctx, guint8 digest[20] )
@@ -442,3 +442,16 @@ int main( int argc, char *argv[] )
#endif
+
+/*
+ * Editor modelines - http://www.wireshark.org/tools/modelines.html
+ *
+ * Local variables:
+ * c-basic-offset: 4
+ * tab-width: 8
+ * indent-tabs-mode: nil
+ * End:
+ *
+ * vi: set shiftwidth=4 tabstop=8 expandtab:
+ * :indentSize=4:tabSize=8:noTabs=true:
+ */