OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [libiberty/] [md5.c] - Diff between revs 161 and 163

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 161 Rev 163
Line 1... Line 1...
/* md5.c - Functions to compute MD5 message digest of files or memory blocks
/* md5.c - Functions to compute MD5 message digest of files or memory blocks
   according to the definition of MD5 in RFC 1321 from April 1992.
   according to the definition of MD5 in RFC 1321 from April 1992.
   Copyright (C) 1995, 1996 Free Software Foundation, Inc.
   Copyright (C) 1995, 1996, 2011 Free Software Foundation, Inc.
 
 
   NOTE: This source is derived from an old version taken from the GNU C
   NOTE: This source is derived from an old version taken from the GNU C
   Library (glibc).
   Library (glibc).
 
 
   This program is free software; you can redistribute it and/or modify it
   This program is free software; you can redistribute it and/or modify it
Line 243... Line 243...
            buffer = (const char *) buffer + 64;
            buffer = (const char *) buffer + 64;
            len -= 64;
            len -= 64;
          }
          }
      else
      else
#endif
#endif
 
        {
      md5_process_block (buffer, len & ~63, ctx);
      md5_process_block (buffer, len & ~63, ctx);
      buffer = (const void *) ((const char *) buffer + (len & ~63));
      buffer = (const void *) ((const char *) buffer + (len & ~63));
      len &= 63;
      len &= 63;
    }
    }
 
    }
 
 
  /* Move remaining bytes in internal buffer.  */
  /* Move remaining bytes in internal buffer.  */
  if (len > 0)
  if (len > 0)
    {
    {
      memcpy (ctx->buffer, buffer, len);
      memcpy (ctx->buffer, buffer, len);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.