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. 
To avoid code duplication you can always add a private method (for
constructing the exception, in this case) ☺