[PATCH v6 03/11] lib: Add support for ECDSA image signing