Factored out Rijndael and util code.