07 May, 2018

1 commit

  • 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: Tom Rini

    Tom Rini
     

30 Jan, 2018

1 commit

  • 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: Andrey Mozzhuhin

    Андрей Мозжухин
     

13 Apr, 2017

1 commit


19 Apr, 2014

1 commit

  • 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: 6e7b9f4fa0ae ("aes: Move the AES-128-CBC encryption function to common code")
    Signed-off-by: Stephen Warren
    Reviewed-by: Simon Glass
    Acked-by: Marek Vasut

    Stephen Warren
     

22 Mar, 2014

3 commits


24 Jul, 2013

1 commit


15 May, 2012

1 commit

  • Add support for AES using an implementation from Karl Malbrain.
    This offers small code size (around 5KB on ARM) and supports 128-bit
    AES only.

    Signed-off-by: Yen Lin
    Signed-off-by: Simon Glass
    Signed-off-by: Tom Warren

    Yen Lin