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