cipher: Fix possible NULL deref in call to prime generator.