added openDSA code (for reference)