Make hash functions return error value
authorJouni Malinen <j@w1.fi>
Sun, 16 Aug 2009 11:06:00 +0000 (14:06 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 16 Aug 2009 11:06:00 +0000 (14:06 +0300)
commit0a5d68aba50c385e316a30d834d5b6174a4041d2
treeef28fcecb0dbcacf5d430c4ac187ea6174c876aa
parente1ffdfc18be9027b5ff9ae254f92b6255930ac71
Make hash functions return error value

Some crypto libraries can return in these functions (e.g., if a specific
hash function is disabled), so we better provide the caller a chance to
check whether the call failed. The return values are not yet used
anywhere, but they will be needed for future changes.
16 files changed:
src/crypto/crypto.h
src/crypto/crypto_cryptoapi.c
src/crypto/crypto_gnutls.c
src/crypto/crypto_libtomcrypt.c
src/crypto/crypto_none.c
src/crypto/crypto_openssl.c
src/crypto/md4-internal.c
src/crypto/md5-internal.c
src/crypto/md5.c
src/crypto/md5.h
src/crypto/sha1-internal.c
src/crypto/sha1-pbkdf2.c
src/crypto/sha1-tprf.c
src/crypto/sha1.c
src/crypto/sha1.h
src/crypto/sha256-internal.c