#ifndef HMAC_SHORTONLY
-void hmac_sha1_init(hmac_sha1_ctx_t *s, const void* key, uint16_t keylength_b){
+void hmac_sha1_init(hmac_sha1_ctx_t *s, const void *key, uint16_t keylength_b){
uint8_t buffer[SHA1_BLOCK_BYTES];
uint8_t i;
#endif
}
-void hmac_sha1_nextBlock(hmac_sha1_ctx_t *s, const void* block){
+void hmac_sha1_nextBlock(hmac_sha1_ctx_t *s, const void *block){
sha1_nextBlock(&(s->a), block);
}
-void hmac_sha1_lastBlock(hmac_sha1_ctx_t *s, const void* block, uint16_t length_b){
+void hmac_sha1_lastBlock(hmac_sha1_ctx_t *s, const void *block, uint16_t length_b){
while(length_b>=SHA1_BLOCK_BITS){
sha1_nextBlock(&s->a, block);
block = (uint8_t*)block + SHA1_BLOCK_BYTES;
sha1_lastBlock(&s->a, block, length_b);
}
-void hmac_sha1_final(void* dest, hmac_sha1_ctx_t *s){
+void hmac_sha1_final(void *dest, hmac_sha1_ctx_t *s){
sha1_ctx2hash(dest, &s->a);
sha1_lastBlock(&s->b, dest, SHA1_HASH_BITS);
sha1_ctx2hash(dest, &(s->b));
* keylength in bits!
* message length in bits!
*/
-void hmac_sha1(void* dest, const void* key, uint16_t keylength_b, const void* msg, uint32_t msglength_b){ /* a one-shot*/
+void hmac_sha1(void *dest, const void *key, uint16_t keylength_b, const void *msg, uint32_t msglength_b){ /* a one-shot*/
sha1_ctx_t s;
uint8_t i;
uint8_t buffer[SHA1_BLOCK_BYTES];