Added sign to encrypt but broke encrypt

something is wrong with creating the encrypted data packet (both types)