X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=sha1%2Fsha1.h;h=e68c3fe63831c9e70ce62880627877f99433858a;hb=1cdc772d04bae747c339badaa99f6132eedbcd2f;hp=aa8029aec4b4d97e89efb9c2c39d017b06fab4c5;hpb=4f19c43af8afeb3c569eb7b4aa15907832cf8e5c;p=arm-crypto-lib.git diff --git a/sha1/sha1.h b/sha1/sha1.h index aa8029a..e68c3fe 100644 --- a/sha1/sha1.h +++ b/sha1/sha1.h @@ -65,8 +65,9 @@ typedef struct { * \brief hash value type * A variable of this type may hold a SHA-1 hash value */ +/* typedef uint8_t sha1_hash_t[SHA1_HASH_BITS/8]; - +*/ /** \fn sha1_init(sha1_ctx_t *state) * \brief initializes a SHA-1 context * This function sets a ::sha1_ctx_t variable to the initialization vector @@ -100,7 +101,7 @@ void sha1_lastBlock (sha1_ctx_t *state, const void* block, uint16_t length_b); * \param dest pointer to the hash value destination * \param state pointer to the hash context */ -void sha1_ctx2hash (sha1_hash_t *dest, sha1_ctx_t *state); +void sha1_ctx2hash (void *dest, sha1_ctx_t *state); /** \fn sha1(sha1_hash_t *dest, const void* msg, uint32_t length_b) * \brief hashing a message which in located entirely in RAM @@ -110,7 +111,7 @@ void sha1_ctx2hash (sha1_hash_t *dest, sha1_ctx_t *state); * \param msg pointer to the message which should be hashed * \param length_b length of the message in bits */ -void sha1(sha1_hash_t *dest, const void* msg, uint32_t length_b); +void sha1(void *dest, const void* msg, uint32_t length_b);