rewrite rc6decoder