Bug fixes revealed by latest gcc compiler
[Crypto] Introduced a general purpose permuter