[PATCH v5 3/6] lib: Add support for ECDSA image signing