The Math Behind the NSA’s Email Hacks