lib: Add support for ECDSA image signing