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