comparison cbc_setiv.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
comparison
equal deleted inserted replaced
15:6362d3854bb4 143:5d99163f7e32
18 _ARGCHK(IV != NULL); 18 _ARGCHK(IV != NULL);
19 _ARGCHK(cbc != NULL); 19 _ARGCHK(cbc != NULL);
20 if (len != (unsigned long)cbc->blocklen) { 20 if (len != (unsigned long)cbc->blocklen) {
21 return CRYPT_INVALID_ARG; 21 return CRYPT_INVALID_ARG;
22 } 22 }
23 memcpy(cbc->IV, IV, len); 23 XMEMCPY(cbc->IV, IV, len);
24 return CRYPT_OK; 24 return CRYPT_OK;
25 } 25 }
26 26
27 #endif 27 #endif
28 28