lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <OFB08508D1.309A6473-ONC1257D41.004949B0-C1257D41.0049D541@de.ibm.com>
Date:	Wed, 27 Aug 2014 15:26:36 +0200
From:	Ingo Tuchscherer <ingo.tuchscherer@...ibm.com>
To:	Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc:	Helge Deller <deller@....de>,
	Herbert Xu <herbert@...dor.apana.org.au>,
	Joe Perches <joe@...ches.com>, linux-kernel@...r.kernel.org,
	Marek Vasut <marex@...x.de>,
	Mauro Carvalho Chehab <m.chehab@...sung.com>,
	Tadeusz Struk <tadeusz.struk@...el.com>,
	Alexander Viro <viro@...iv.linux.org.uk>
Subject: Re: [PATCH v3 5/5] [S390] zcrypt: use seq_hex_dump() to dump buffers


I have verified and tested the patch for the zcrypt part.
OK from my side. You can add my Acked-by.
Acked-by: Ingo Tuchscherer <ingo.tuchscherer@...ibm.com>

Thanks

Mit freundlichen Grüßen / Kind regards

Ingo Tuchscherer

Software Development - Linux on System z
IBM Systems &Technology Group
                                                                                                       
                                                                                                       
                                                                                                       
                                                                                                       
                                                                                                       
 Phone:            +49-7031-16-1986                 IBM Deutschland                          (Embedded 
                                                                                           image moved 
                                                                                              to file: 
                                                                                         pic53004.gif) 
                                                                                                       
 E-Mail:           ingo.tuchscherer@...ibm.com      Schoenaicher Str. 220                              
                                                                                                       
                                                    71032 Boeblingen                                   
                                                                                                       
                                                    Germany                                            
                                                                                                       
                                                                                                       
                                                                                                       
                                                                                                       
                                                                                                       
 IBM Deutschland                                                                                       
 Research &                                                                                            
 Development                                                                                           
 GmbH /                                                                                                
 Vorsitzender des                                                                                      
 Aufsichtsrats:                                                                                        
 Martina Koederitz                                                                                     
                                                                                                       
 Geschäftsführung:                                                                                     
 Dirk Wittkopp                                                                                         
 Sitz der                                                                                              
 Gesellschaft:                                                                                         
 Böblingen /                                                                                           
 Registergericht:                                                                                      
 Amtsgericht                                                                                           
 Stuttgart, HRB                                                                                        
 243294                                                                                                
                                                                                                       





From:	Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To:	Tadeusz Struk <tadeusz.struk@...el.com>, Herbert Xu
            <herbert@...dor.apana.org.au>, Mauro Carvalho Chehab
            <m.chehab@...sung.com>, Helge Deller <deller@....de>, Ingo
            Tuchscherer/Germany/IBM@...DE, Alexander Viro
            <viro@...iv.linux.org.uk>, linux-kernel@...r.kernel.org, Joe
            Perches <joe@...ches.com>, Marek Vasut <marex@...x.de>,
Cc:	Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Date:	08/25/2014 11:03 AM
Subject:	[PATCH v3 5/5] [S390] zcrypt: use seq_hex_dump() to dump
            buffers



Instead of custom approach let's use recently introduced seq_hex_dump()
helper.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
---
 drivers/s390/crypto/zcrypt_api.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/drivers/s390/crypto/zcrypt_api.c
b/drivers/s390/crypto/zcrypt_api.c
index 0e18c5d..d1f9983 100644
--- a/drivers/s390/crypto/zcrypt_api.c
+++ b/drivers/s390/crypto/zcrypt_api.c
@@ -1203,16 +1203,8 @@ static void sprinthx(unsigned char *title, struct
seq_file *m,
 static void sprinthx4(unsigned char *title, struct seq_file *m,
 		 		       unsigned int *array, unsigned int len)
 {
-		 int r;
-
 		 seq_printf(m, "\n%s\n", title);
-		 for (r = 0; r < len; r++) {
-		 		 if ((r % 8) == 0)
-		 		 		 seq_printf(m, "    ");
-		 		 seq_printf(m, "%08X ", array[r]);
-		 		 if ((r % 8) == 7)
-		 		 		 seq_putc(m, '\n');
-		 }
+		 seq_hex_dump(m, "    ", DUMP_PREFIX_NONE, 32, 4, array, len,
false);
 		 seq_putc(m, '\n');
 }

--
2.1.0


Download attachment "pic53004.gif" of type "image/gif" (1851 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ