comparison crypt_register_hash.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
24 } 24 }
25 25
26 /* find a blank spot */ 26 /* find a blank spot */
27 for (x = 0; x < TAB_SIZE; x++) { 27 for (x = 0; x < TAB_SIZE; x++) {
28 if (hash_descriptor[x].name == NULL) { 28 if (hash_descriptor[x].name == NULL) {
29 memcpy(&hash_descriptor[x], hash, sizeof(struct _hash_descriptor)); 29 XMEMCPY(&hash_descriptor[x], hash, sizeof(struct _hash_descriptor));
30 return x; 30 return x;
31 } 31 }
32 } 32 }
33 33
34 /* no spot */ 34 /* no spot */