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