--- pgp/rsaref/source/r_stdlib.c 2018/04/24 16:40:41 1.1.1.1 +++ pgp/rsaref/source/r_stdlib.c 2018/04/24 16:41:42 1.1.1.2 @@ -1,39 +1,39 @@ -/* R_STDLIB.C - platform-specific C library routines for RSAREF - */ - -/* Copyright (C) RSA Laboratories, a division of RSA Data Security, - Inc., created 1991. All rights reserved. - */ - -#include -#include "global.h" -#include "rsaref.h" - -void R_memset (output, value, len) -POINTER output; /* output block */ -int value; /* value */ -unsigned int len; /* length of block */ -{ - if (len) - memset (output, value, len); -} - -void R_memcpy (output, input, len) -POINTER output; /* output block */ -POINTER input; /* input block */ -unsigned int len; /* length of blocks */ -{ - if (len) - memcpy (output, input, len); -} - -int R_memcmp (firstBlock, secondBlock, len) -POINTER firstBlock; /* first block */ -POINTER secondBlock; /* second block */ -unsigned int len; /* length of blocks */ -{ - if (len) - return (memcmp (firstBlock, secondBlock, len)); - else - return (0); -} +/* R_STDLIB.C - platform-specific C library routines for RSAREF + */ + +/* Copyright (C) 1991-2 RSA Laboratories, a division of RSA Data + Security, Inc. All rights reserved. + */ + +#include "global.h" +#include "rsaref.h" +#include + +void R_memset (output, value, len) +POINTER output; /* output block */ +int value; /* value */ +unsigned int len; /* length of block */ +{ + if (len) + memset (output, value, len); +} + +void R_memcpy (output, input, len) +POINTER output; /* output block */ +POINTER input; /* input block */ +unsigned int len; /* length of blocks */ +{ + if (len) + memcpy (output, input, len); +} + +int R_memcmp (firstBlock, secondBlock, len) +POINTER firstBlock; /* first block */ +POINTER secondBlock; /* second block */ +unsigned int len; /* length of blocks */ +{ + if (len) + return (memcmp (firstBlock, secondBlock, len)); + else + return (0); +}