Pharmacology

A patient on nitroprusside therapy developed cyanide toxicity. Sodium nitrite was administered i.v. to combat this poisoning. Beneficial effect of sodium nitrite in this case is dependent on: