Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
7 results

cmd_mem.c

Blame
  • Forked from Reform / reform-boundary-uboot
    Source project has a limited visibility.
    • Simon Glass's avatar
      d20a40de
      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: default avatarSimon Glass <sjg@chromium.org>
      d20a40de
      History
      Roll crc32 into hash infrastructure
      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: default avatarSimon Glass <sjg@chromium.org>