From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Holler Date: Tue, 25 Jan 2011 09:53:49 +0100 Subject: [U-Boot] Default base for numbers Message-ID: <4D3E8F9D.7040901@ahsoftware.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, I've stumbled over the fact that the length parameter for sha1sum uses 16 as default base, which I found a bit confusing. E.g. ------------------------- U-Boot>> tftp $loadaddr uImage ... done Bytes transferred = 1976384 (1e2840 hex) U-Boot>> sha1sum $loadaddr 1976384 SHA1 for 00800000 ... 02176383 ==> 8d9cc7b167b6d1471d73d46cfc3b374091de88a6 U-Boot>> sha1sum $loadaddr 0x1e2840 SHA1 for 00800000 ... 009e283f ==> fde54f7409c785b7929d36624f77f71abd30282a ------------------------- (The second one is correct) Is the base 16 as default for numbers common for commands in u-boot or is that just a problem of md5sum and sha1sum? Regards, Alexander