Added function to align length multiply to 4; Fixed set MAGIC COCKIE