]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - bcal/bcal-performance.c
[performance-reports] switching to printf
[avr-crypto-lib.git] / bcal / bcal-performance.c
index 267ec1c1aa6bde23a6d2520e31711575249d1c39..3046ba468cfaa449b89204bcb0b8b4f6cc7c003e 100644 (file)
@@ -55,7 +55,7 @@ void printvalue(unsigned long v){
 }
 */
 
-void bcal_performance(const bcdesc_tbcd){
+void bcal_performance(const bcdesc_t *bcd){
        bcdesc_t bc;
        memcpy_P(&bc, bcd, sizeof(bcdesc_t));
        uint8_t ctx[bc.ctxsize_B];
@@ -69,12 +69,12 @@ void bcal_performance(const bcdesc_t* bcd){
                return;
        calibrateTimer();
        print_overhead();
-       printf_P(PSTR("\n\n === %S"), bc.name);
-       printf_P(PSTR(" performance === \n"
-                     "    type:             blockcipher\n"
-                     "    keysize (bits):     %5"PRIu16"\n"), keysize);
-       printf_P(PSTR("    ctxsize (bytes):    %5"PRIu16"\n"), bc.ctxsize_B);
-       printf_P(PSTR("    blocksize (bits):   %5"PRIu16"\n"), bc.blocksize_b);
+       printf_P(PSTR("\n\n === %S performance === \n"
+                     "\ttype:             blockcipher\n"
+                     "\tkeysize (bits):     %5"PRIu16"\n"
+                     "\tctxsize (bytes):    %5"PRIu16"\n"
+                     "\tblocksize (bits):   %5"PRIu16"\n"),
+               bc.name, keysize, bc.ctxsize_B, bc.blocksize_b);
        uart0_flush();
        t=0;
        if(bc.init.init1){
@@ -136,7 +136,7 @@ void bcal_performance(const bcdesc_t* bcd){
        }
 }
 
-void bcal_stacksize(const bcdesc_tbcd){
+void bcal_stacksize(const bcdesc_t *bcd){
        bcdesc_t bc;
        stack_measuring_ctx_t smctx;
        memcpy_P(&bc, bcd, sizeof(bcdesc_t));
@@ -205,8 +205,8 @@ void bcal_stacksize(const bcdesc_t* bcd){
        }
 }
 
-void bcal_performance_multiple(const bcdesc_t* const* bcd_list){
-       const bcdesc_tbcd;
+void bcal_performance_multiple(const bcdesc_t *const *bcd_list){
+       const bcdesc_t *bcd;
        for(;;){
                bcd = (void*)pgm_read_word(bcd_list);
                if(!bcd){