diff cbc_getiv.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 6362d3854bb4
children
line wrap: on
line diff
--- a/cbc_getiv.c	Tue Jun 15 14:07:21 2004 +0000
+++ b/cbc_getiv.c	Sun Dec 19 11:34:45 2004 +0000
@@ -21,7 +21,7 @@
    if ((unsigned long)cbc->blocklen > *len) {
       return CRYPT_BUFFER_OVERFLOW;
    }
-   memcpy(IV, cbc->IV, cbc->blocklen);
+   XMEMCPY(IV, cbc->IV, cbc->blocklen);
    *len = cbc->blocklen;
 
    return CRYPT_OK;