Fixed a bug when encrypting signed X0 data