Such transactions have the sanction of law the world over, despite the mishaps such as Orange County, Barings Bank, Long Term Capital Management, Lehman Brothers, AIG etc.
The Nationalised Banks in our country also offer such products, though their marketing strategy is not so aggressive, on account of conservative outlook.