# HG changeset patch # User Mark Doliner # Date 1236912660 0 # Node ID 00c659e55902d7d6dc4eb24935b49aea7ecc08ea # Parent 413b445a6018bb3d2d42d2ae66cea093aa11b8dd Add a note that this function could potentially be faster. diff -r 413b445a6018 -r 00c659e55902 libpurple/util.c --- a/libpurple/util.c Fri Mar 13 02:21:27 2009 +0000 +++ b/libpurple/util.c Fri Mar 13 02:51:00 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) {