20 Dec, 2016

1 commit

  • The EVP_MD_CTX and EVP_CIPHER_CTX are made opaque since 1.1.x , so instead
    of embedding them directly into struct sb_image_ctx and initializing them
    using EVP_*_CTX_init(), we use pointers and allocate the crypto contexts
    using EVP_*_CTX_new().

    Signed-off-by: Marek Vasut
    Cc: Tom Rini

    Marek Vasut
     

30 Jan, 2015

1 commit


20 Nov, 2014

2 commits


06 Jun, 2014

1 commit


10 Jan, 2014

1 commit


18 Dec, 2013

1 commit

  • According to NOTE in strtoul(3), the errno must be zeroed before strtoul()
    is called. Zero the errno. The NOTE reads as such:

    Since strtoul() can legitimately return 0 or ULONG_MAX (ULLONG_MAX for
    strtoull()) on both success and failure, the calling program should set
    errno to 0 before the call, and then determine if an error occurred
    by checking whether errno has a nonzero value after the call.

    This issue was detected on Fedora 19 with glibc 2.17 .

    Signed-off-by: Marek Vasut
    Cc: Stefano Babic
    Cc: Tom Rini

    Marek Vasut
     

13 Dec, 2013

1 commit

  • In order to avoid duplicating code and keep only one point of modification,
    the functions, structs and defines useful for "dumpimage" were moved from
    "mkimage" to a common module called "imagetool".

    This modification also weakens the coupling between image types (FIT, IMX, MXS,
    and so on) and image tools (mkimage and dumpimage). Any tool may initialize the
    "imagetool" through register_image_tool() function, while the image types
    register themselves within an image tool using the register_image_type()
    function:

    +---------------+
    +------| fit_image |
    +--------------+ +-----------+ | +---------------+
    | mkimage |--------> | | | |
    Signed-off-by: Simon Glass

    Guilherme Maciel Ferreira
     

31 Aug, 2013

1 commit

  • Add mkimage support for generating and verifying MXS bootstream.
    The implementation here is mostly a glue code between MXSSB v0.4
    and mkimage, but the long-term goal is to rectify this and merge
    MXSSB with mkimage more tightly. Once this code is properly in
    U-Boot, MXSSB shall be deprecated in favor of mkimage-mxsimage
    support.

    Note that the mxsimage generator needs libcrypto from OpenSSL, I
    therefore enabled the libcrypto/libssl unconditionally.

    MXSSB: http://git.denx.de/?p=mxssb.git;a=summary

    The code is based on research presented at:
    http://www.rockbox.org/wiki/SbFileFormat

    Signed-off-by: Marek Vasut
    Cc: Tom Rini
    Cc: Fabio Estevam
    Cc: Stefano Babic
    Cc: Otavio Salvador

    Marek Vasut