Added check to KeyGenUtils' getSecretKey to verify it is a valid length. Also added version of all methods that take ByteBuffers instead of byte[]s.