This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/1423] New: add block size and digest size #define's to crypt/md5.h for gnulib
- From: "simon at josefsson dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 5 Oct 2005 13:51:31 -0000
- Subject: [Bug libc/1423] New: add block size and digest size #define's to crypt/md5.h for gnulib
- Reply-to: sourceware-bugzilla at sourceware dot org
I'm adding HMAC-MD5 functionality to gnulib, which uses the md5 gnulib module,
which is based on glibc's md5.*. While I could hard code 16 and 64 in my code,
or add define's to my code, these define's appear to belong to crypt/md5.h.
2005-10-05 Simon Josefsson <jas@extundo.com>
* crypt/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add defines.
--- md5.h 04 Oct 2004 00:28:10 +0200 1.5
+++ md5.h 05 Oct 2005 15:48:52 +0200
@@ -1,6 +1,7 @@
/* Declaration of functions and data types used for MD5 sum computing
library functions.
- Copyright (C) 1995-1997,1999,2000,2001,2004 Free Software Foundation, Inc.
+ Copyright (C) 1995-1997,1999,2000,2001,2004,2005
+ Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -27,6 +28,9 @@
# include <limits.h>
#endif
+#define MD5_DIGEST_SIZE 16
+#define MD5_BLOCK_SIZE 64
+
/* The following contortions are an attempt to use the C preprocessor
to determine an unsigned integral type that is 32 bits wide. An
alternative approach is to use autoconf's AC_CHECK_SIZEOF macro, but
--
Summary: add block size and digest size #define's to crypt/md5.h
for gnulib
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: simon at josefsson dot org
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=1423
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.