# HG changeset patch # User Elliott Sales de Andrade # Date 1236918725 0 # Node ID 2321248ad70243c2e2ad144136df4c216abe7645 # Parent 00c659e55902d7d6dc4eb24935b49aea7ecc08ea# Parent b03430dae08e901142ac0ec90cebc49bda57c42c merge of '9ae083b7093cb3dc764443a54dbb8d2abe84a0b8' and 'e13689e4856dc0f8c93c715c70c76bce6a2babca' diff -r b03430dae08e -r 2321248ad702 libpurple/util.c --- a/libpurple/util.c Fri Mar 13 04:29:11 2009 +0000 +++ b/libpurple/util.c Fri Mar 13 04:32:05 2009 +0000 @@ -2850,6 +2850,12 @@ return "icon"; } +/* + * TODO: Consider using something faster than SHA-1, such as MD5, MD4 + * or CRC32. Are there security implications to that? Would + * probably be a good idea to benchmark some algorithms with + * 3KB-10KB chunks of data (typical buddy icon sizes). + */ char * purple_util_get_image_checksum(gconstpointer image_data, size_t image_len) {