]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/main-md5-test.c
new MD5 ins ASM with C (working on pure ASM implementation) plus enhancments in asm...
[avr-crypto-lib.git] / test_src / main-md5-test.c
index 490ee480a030bbc9ad2b4570b7c1cf681f4c6a27..c3e40dae816ce44171c3ef7f509390bab2e9c094 100644 (file)
@@ -85,7 +85,12 @@ void testrun_nessie_md5(void){
 
 void testrun_md5(void){
        md5_ctx_t s;
-       char* testv[]={"", "a", "abc", "message digest", "abcdefghijklmnopqrstuvwxyz", 
+       char* testv[]={
+               "", 
+               "a", 
+               "abc", 
+               "message digest", 
+               "abcdefghijklmnopqrstuvwxyz", 
                "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", 
                "12345678901234567890123456789012345678901234567890123456789012345678901234567890"};
        uint8_t i;
@@ -94,10 +99,10 @@ void testrun_md5(void){
        for(i=0; i<7; ++i){
                uart_putstr("\r\n MD5 (\"");
                uart_putstr(testv[i]);
-               uart_putstr("\") = \r\n");
+               uart_putstr("\") = \r\n\t");
                md5_init(&s);
                md5_lastBlock(&s, testv[i], strlen(testv[i])*8);
-               uart_hexdump(&s.a[0], 16);
+               uart_hexdump(&(s.a[0]), 16);
        }
 }
 
@@ -141,7 +146,7 @@ void testrun_performance_md5(void){
 
 
 /*****************************************************************************
- *  main                                                                                                                                        *
+ * main                                                                                                                                         *
  *****************************************************************************/
 
 int main (void){