Skip to content
Snippets Groups Projects
  1. May 07, 2018
    • Tom Rini's avatar
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini authored
      
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      83d290c5
  2. Jan 29, 2018
    • Андрей Мозжухин's avatar
      aes: Allow non-zero initialization vector · af09eba6
      Андрей Мозжухин authored
      
      AES encryption in CBC mode, in most cases, must be used with random
      initialization vector. Using the same key and initialization vector several
      times is weak and must be avoided.
      
      Added iv parameter to the aes_cbc_encrypt_blocks and aes_cbc_decrypt_blocks
      functions for passing initialization vector.
      
      Command 'aes' now also require the initialization vector parameter.
      
      Signed-off-by: default avatarAndrey Mozzhuhin <amozzhuhin@yandex.ru>
      af09eba6
  3. Apr 12, 2017
  4. Apr 18, 2014
    • Stephen Warren's avatar
      aes: make apply_cbc_chain_data non-static · 53eb768d
      Stephen Warren authored
      
      Tegra's crypto.c uses apply_cbc_chain_data() to sign the warm restart
      code. This function was recently moved into the core aes.c and made
      static, which prevents the Tegra code from compiling. Make it public
      again to avoid the compile errors:
      
      arch/arm/cpu/tegra20-common/crypto.c: In function ‘sign_object’:
      arch/arm/cpu/tegra20-common/crypto.c:74:3: warning: implicit declaration of function ‘apply_cbc_chain_data’ [-Wimplicit-function-declaration]
      arch/arm/cpu/built-in.o: In function `sign_object':
      .../arch/arm/cpu/tegra20-common/crypto.c:74: undefined reference to `apply_cbc_chain_data'
      .../arch/arm/cpu/tegra20-common/crypto.c:78: undefined reference to `apply_cbc_chain_data'
      
      Fixes: 6e7b9f4f ("aes: Move the AES-128-CBC encryption function to common code")
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      Acked-by: default avatarMarek Vasut <marex@denx.de>
      53eb768d
  5. Mar 21, 2014
  6. Jul 24, 2013
  7. May 15, 2012
Loading