added rijndael and done some helper code