generator: remove rc4 usage, some cleaning
algos_enc: make timing&sidechannel attacks harder

There was possible timing information leaking from failed decryptions,
new code makes the whole thing fail in almost the same time in all
cases.