Fixed kasami code generation