22 Nov, 2016

1 commit

  • Padding verification was done against static SHA/RSA pair arrays which
    take up a lot of static memory, are mostly 0xff, and cannot be reused
    for additional SHA/RSA pairings. The padding can be easily computed
    according to PKCS#1v2.1 as:

    EM = 0x00 || 0x01 || PS || 0x00 || T

    where PS is (emLen - tLen - 3) octets of 0xff and T is DER encoding
    of the hash.

    Store DER prefix in checksum_algo and create rsa_verify_padding
    function to handle verification of a message for any SHA/RSA pairing.

    Signed-off-by: Andrew Duda
    Signed-off-by: aduda
    Reviewed-by: Simon Glass

    Andrew Duda
     

19 Jun, 2014

1 commit

  • commit 18b06652cd "tools: include u-boot version of sha256.h"
    unconditionally forced the sha256.h from u-boot to be used
    for tools instead of the host version. This is fragile though
    as it will also include the host version. Therefore move it
    to include/u-boot to join u-boot/md5.h etc which were renamed
    for the same reason.

    cc: Simon Glass
    Signed-off-by: Jeroen Hofstee

    Jeroen Hofstee
     

13 May, 2014

1 commit

  • Commit 2842c1c24269a05142802d25520e7cb9035e456c introduced lib/sha256 into
    mkimage. Since then it will be compiled with HOSTCC which may produce errors
    on some systems. Most BSD systems (like OS X for me) do not ship a
    linux/string.h which will lead to take the U-Boot provided
    include/linux/string.h in the end. This header howver is completely wrong
    here. Just take the string.h if compiling with HOSTCC and linux/string.h when
    not.

    Signed-off-by: Andreas Bießmann
    Cc: Heiko Schocher
    Acked-by: Heiko Schocher

    Andreas Bießmann
     

22 Mar, 2014

1 commit


24 Jul, 2013

1 commit


12 Dec, 2012

1 commit


13 Apr, 2010

1 commit

  • Now that the other architecture-specific lib directories have been
    moved out of the top-level directory there's not much reason to have the
    '_generic' suffix on the common lib directory.

    Signed-off-by: Peter Tyser

    Peter Tyser