We introduce the formalism of generalized Fourier transforms in the context of risk management. We develop a general framework in which to efficiently compute the most popular risk measures, value-at-risk and expected shortfall (also known as conditional value-at-risk). The only ingredient...