bug fix, keygen e in raw format - changed to byte-array format, refactor of KeyUtil