made the generation of D, and am now working on encrypting byte arrays