• Juan Castillo's avatar
    TBB: add mbedTLS authentication related libraries · 7d37aa17
    Juan Castillo authored
    This patch adds the following mbedTLS based libraries:
    
    * Cryptographic library
    
    It is used by the crypto module to verify a digital signature
    and a hash. This library relies on mbedTLS to perform the
    cryptographic operations. mbedTLS sources must be obtained
    separately.
    
    Two key algorithms are currently supported:
    
        * RSA-2048
        * ECDSA-SECP256R1
    
    The platform is responsible for picking up the required
    algorithm by defining the 'MBEDTLS_KEY_ALG' variable in the
    platform makefile. Available options are:
    
        * 'rsa' (for RSA-2048) (default option)
        * 'ecdsa' (for ECDSA-SECP256R1)
    
    Hash algorithm currently supported is SHA-256.
    
    * Image parser library
    
    Used by the image parser module to extract the authentication
    parameters stored in X509v3 certificates.
    
    Change-Id: I597c4be3d29287f2f18b82846973afc142ee0bf0
    7d37aa17
mbedtls_crypto.c 5.9 KB