You’re thinking of Marathon Man (1976). Dustin Hoffman plays a history graduate student who becomes entangled in a deadly conspiracy involving Nazi war criminals, stolen diamonds, and a sadistic ex-SS dentist (Laurence Olivier). The film is a tense paranoid thriller directed by John Schlesinger.