[PATCH RFC v2 3/5] lib: Add support for ECDSA image signing