*/
/* Later adapted to fit into SimGrid. Distributed under LGPL v2.1, Feb 1999.*/
-/* Copyright (c) 2008, 2009, 2010. The SimGrid Team.
+/* Copyright (c) 2008-2013. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
/** @brief returns the sha hash into a newly allocated buffer (+ reset sha object) */
char *xbt_sha_read(xbt_sha_t sha)
{
- char *res = xbt_malloc(40);
+ char *res = xbt_malloc(41);
xbt_sha_print(sha, res);
return res;
}
XBT_TEST_SUITE("hash", "Various hash functions");
-XBT_LOG_NEW_DEFAULT_CATEGORY(hash, "Tests of various hash functions ");
-
-
XBT_TEST_UNIT("sha", test_crypto_sha, "Test of the sha algorithm")
{
/* Empty string as test vector */