KeyGenUtils API

This is the API I've written for generating Keys, nonces and ivs. It will also convert byte arrays to into SecretKeys, KeyPairs, and a couple other classes. 
Instead of passing `typeEnum` as string, you could also use `type.getDeclaringClass()` (and then `getName()` or whatever on that). That saves you an additional argument here, and makes the other code cleaner.