Use common md4 implementation.
[samba.git] / source3 / lib / hmacmd5.c
index a9b7d4d57f96e687c9e1406e45d2c2f83afab1e7..86db3aa236957e2f718ce95a824a240a2a692cea 100644 (file)
@@ -6,7 +6,7 @@
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
@@ -15,8 +15,7 @@
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 /* taken direct from rfc2104 implementation and modified for suitable use
@@ -122,7 +121,8 @@ void hmac_md5_final(unsigned char *digest, HMACMD5Context *ctx)
  use the microsoft hmacmd5 init method because the key is 16 bytes.
 ************************************************************/
 
-void hmac_md5( unsigned char key[16], unsigned char *data, int data_len, unsigned char *digest)
+void hmac_md5( unsigned char key[16], const unsigned char *data, int data_len,
+              unsigned char *digest)
 {
        HMACMD5Context ctx;
        hmac_md5_init_limK_to_64(key, 16, &ctx);