I don't think the Iranian government is "blameless" in general. (If countries were individual people, all of them would be in jail, with most of them about to hang for war crimes.)
But in the very specific context of embargoing software devs (versus weapons), I do think all of the blame for that is on countries on the imposing end of embargo. Big difference between "systemWMD" and actual WMDs. ;)
The horribly broken crypto we all had to deal with in the 2000s was partially due to US trying to treat it like a "munition" and thus weakening everyone - even themselves - by the mere existence of the hobbled "export-grade" ciphers.