X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=md5%2Fmd5-asm.S;h=07402964262ba21180af5666a4d52dc94a18bd55;hb=d9352fc79fbdee0cf3288809b104ea196ea85693;hp=de3b170092330281674357475131a58019413d22;hpb=d32eba56ce10ea6b9eff123b50d9842673b38f2b;p=avr-crypto-lib.git diff --git a/md5/md5-asm.S b/md5/md5-asm.S index de3b170..0740296 100644 --- a/md5/md5-asm.S +++ b/md5/md5-asm.S @@ -1,7 +1,7 @@ /* md5-asm.S */ /* This file is part of the AVR-Crypto-Lib. - Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) + Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -247,9 +247,9 @@ md5_core: mov r18, r14 ; rjmp md5_core_asm /* -void md5_core(uint32_t* a, void* block, uint8_t as, uint8_t s, uint8_t i, uint8_t fi){ +void md5_core(uint32_t *a, void *block, uint8_t as, uint8_t s, uint8_t i, uint8_t fi){ uint32_t t; - md5_func_t* funcs[]={md5_F, md5_G, md5_H, md5_I}; + md5_func_t *funcs[]={md5_F, md5_G, md5_H, md5_I}; as &= 0x3; / * a = b + ((a + F(b,c,d) + X[k] + T[i]) <<< s). * / t = a[as] + funcs[fi](a[(as+1)&3], a[(as+2)&3], a[(as+3)&3]) + *((uint32_t*)block) + md5_T[i] ; @@ -452,7 +452,7 @@ md5_core_exit: ;################################################################### /* -void md5_nextBlock(md5_ctx_t *state, void* block){ +void md5_nextBlock(md5_ctx_t *state, void *block){ uint32_t a[4]; uint8_t m,n,i=0; @@ -743,7 +743,7 @@ md5_nextBlock: ;############################################################################### /* -void md5_lastBlock(md5_ctx_t *state, const void* block, uint16_t length_b){ +void md5_lastBlock(md5_ctx_t *state, const void *block, uint16_t length_b){ uint16_t l; uint8_t b[64]; while (length_b >= 512){