1. 11 Jun, 2014 2 commits
  2. 21 Mar, 2014 1 commit
  3. 25 Nov, 2013 1 commit
    • Tom Rini's avatar
      hash.c: Correct non-hash subcommand crc32 addr-save support · 4b756b01
      Tom Rini authored
      In the case of not having CONFIG_CMD_HASH but having CONFIG_CMD_CRC32
      enabled (and not CONFIG_CRC32_VERIFY), we end up in this part of the
      code path on hash_command().  However, we will only have exactly 3 args
      here, and 3 > 3 is false, and we will not try and store the hash at the
      address given as arg #3
      
      .  The next problem however is that we've been
      moving argv around so the third value is now in argv[0] not argv[3].
      
      Confirmed on AM335x Beaglebone White.
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      4b756b01
  4. 24 Jul, 2013 1 commit
  5. 14 May, 2013 1 commit
  6. 29 Mar, 2013 1 commit
  7. 01 Mar, 2013 4 commits
    • Simon Glass's avatar
      hash: Use lower case for hash algorithm names · 218da0f3
      Simon Glass authored
      
      
      Rather than use strcasecmp() in the hash algorithm search, require the
      caller to do this first. Most of U-Boot can use lower case anyway, and
      the hash command can convert to lower case before calling hash_command().
      This saves needing strcasecmp() for boards that use hashing but not
      the hash command.
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      218da0f3
    • Simon Glass's avatar
      sandbox: Allow hash functions to work correctly · bd091b67
      Simon Glass authored
      
      
      Use map_sysmem() so that hashing is possible on sandbox.
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      bd091b67
    • Simon Glass's avatar
      Roll crc32 into hash infrastructure · d20a40de
      Simon Glass authored
      
      
      Add the CRC32 algorithm to the list of available hashes, and make
      the crc32 command use hash_command(). Add a new crc32_wd_buf() to
      make this possible, which puts its result in a buffer rather than
      returning it as a 32-bit value.
      
      Note: For some boards the hash command is not enabled, neither
      are sha1, sha256 or the verify option. In this case the full
      hash implementation adds about 500 bytes of overhead. So as a
      special case, we use #ifdef to select very simple bahaviour in
      that case. The justification for this is that it is currently
      a very common case (virtually all boards enable crc32 but only
      some enable more advanced features).
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      d20a40de
    • Simon Glass's avatar
      hash: Add a flag to support saving hashes in the environment · d5b76673
      Simon Glass authored
      
      
      Some hashing commands permit saving the hash in an environment variable,
      and verifying a hash from there. But the crc32 command does not support
      this. In order to permit crc32 to use the generic hashing infrastructure,
      add a flag to select which behaviour to use.
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      d5b76673
  8. 11 Dec, 2012 1 commit
    • Simon Glass's avatar
      Add generic hash API · 460408ef
      Simon Glass authored
      
      
      We have a SHA1 command and want to add a SHA256 command also. Instead of
      duplicating the code, create a generic hash API which can process
      commands for different algorithms.
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      460408ef