pkcs redone for bitflip