An apparatus and a method for performing shortening and puncturing in case of performing encoding and decoding using a parity test matrix in a communication/broadcasting system are provided. The method includes determining a number of zero-padding bits, determining a number Npad of bit groups in which all bits are padded with zeros, padding the all bits within 0th to (Npad−1)th bit groups with zeros based on a shortening pattern, encoding information bits including the zero-padded bits to generate a codeword. Here, the shortening pattern is defined in a sequence of bit groups defined as 9, 8, 15, 10, 0, 12, 5, 27, 6, 7, 19, 22, 1, 16, 26, 20, 21, 18, 11, 3, 17, 24, 2, 23, 25, 14, 28, 4, 13, 29.