comparison omac_process.c @ 143:5d99163f7e32 libtomcrypt-orig

import of libtomcrypt 0.99
author Matt Johnston <matt@ucc.asn.au>
date Sun, 19 Dec 2004 11:34:45 +0000
parents 7faae8f46238
children
comparison
equal deleted inserted replaced
15:6362d3854bb4 143:5d99163f7e32
38 state->buflen = 0; 38 state->buflen = 0;
39 } 39 }
40 40
41 /* add bytes */ 41 /* add bytes */
42 n = MIN(len, (unsigned long)(state->blklen - state->buflen)); 42 n = MIN(len, (unsigned long)(state->blklen - state->buflen));
43 memcpy(state->block + state->buflen, buf, n); 43 XMEMCPY(state->block + state->buflen, buf, n);
44 state->buflen += n; 44 state->buflen += n;
45 len -= n; 45 len -= n;
46 buf += n; 46 buf += n;
47 } 47 }
48 48