Implement ECDSA sign and verify operations.