X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dff9e15c44ab6340d27215957c56fa72fad246a2..bfe98911a4c3fa925c1ef59b08259295642f9d9f:/src/xbt/xbt_sha.c diff --git a/src/xbt/xbt_sha.c b/src/xbt/xbt_sha.c index 12fa575479..29016d9f2d 100644 --- a/src/xbt/xbt_sha.c +++ b/src/xbt/xbt_sha.c @@ -1,11 +1,13 @@ -/* $Id$ */ /* xbt_sha.c - SHA1 hash function */ /* Initial version part of iksemel (XML parser for Jabber) - * Copyright (C) 2000-2003 Gurer Ozen . All right reserved. */ + * Copyright (C) 2000-2003 Gurer Ozen . All right reserved. + * Distributed under LGPL v2.1, February 1999. + */ -/* Adapted to fit into SimGrid by Martin Quinson. - Copyright (c) 2008 Martin Quinson. All rights reserved. */ +/* Later adapted to fit into SimGrid. Distributed under LGPL v2.1, Feb 1999.*/ +/* Copyright (c) 2008, 2009, 2010. The SimGrid Team. + * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -148,8 +150,8 @@ static void sha_calculate(xbt_sha_t sha) for (i = 16; i < 80; i++) sha->buf[i] = - SRL(sha->buf[i - 3] ^ sha->buf[i - 8] ^ sha-> - buf[i - 14] ^ sha->buf[i - 16], 1); + SRL(sha->buf[i - 3] ^ sha->buf[i - 8] ^ sha-> + buf[i - 14] ^ sha->buf[i - 16], 1); A = sha->hash[0]; B = sha->hash[1]; @@ -217,4 +219,4 @@ XBT_TEST_UNIT("sha", test_crypto_sha, "Test of the sha algorithm") "373ba8be29d4d95708bf7cd43038f4e409dcb439"); } -#endif /* SIMGRID_TEST */ +#endif /* SIMGRID_TEST */