Either of two related enzymes that control the production of prostaglandins and are blocked by aspirin.