System and method for Viterbi decoding on encrypted data6760438Abstract A system and method for Viterbi decoding on encrypted data is disclosed. At the receiver, maximum likelihood decoding is performed based on received input in the encryption domain. When selecting a path from one stage of a Viterbi decoding trellis to the next, a local metric may be associated with each of the possible paths based on Euclidean distance between a received symbol and a path state. The path state is determined by encrypting the binary path state. An overall metric is associated with each state equivalent to a sum of local path metrics along a survivor path of selected paths. At the end of the Viterbi decoding trellis, a decoded and decrypted bit sequence is obtained by tracing back in a conventional manner. Claims We claim: Description FIELD OF THE INVENTION
A B A .sym. B
0 0 0
0 1 1
1 0 1
1 1 0
If soft-decision decoding is used in the receiver, the input to the soft-decision decoder must be soft-decision samples instead of binary bits. This requires the demodulator make a soft-decision to obtain output symbols, for example, a multi-level quantized real number, 0.75, or a complex number, exp(j3.pi./8). As a result, the input and output of the decryption process may be in soft symbol format. As discussed, current encryption schemes are based on an operation on binary bits. One possible way of combining soft-decision decoding and XOR-based decryption is to map the bit-wise encryption mask and XOR operation into the symbol domain. This mapping not only makes soft-decision decoding possible under current practice in IS-136 but also provides a technique that can map the XOR-based bit operation into the symbol domain in a communication system using phase-shift keying (PSK). However, the above method can only achieve optimum results when the modulation level is low, namely 2 or 4 PSK (see, for instance, application Ser. No. 08/953,763, "System and Method for Decryption in the Symbol Domain", Karl Mann and Yan Hui, hereby incorporated by reference). While this is sufficient for such communication systems as IS-136 TDMA systems, it cannot provide an optimum solution for higher level modulation, 8 PSK, for example, which has been standardized in IS-136 Rev. B, GPRS-136 and EDGE. SUMMARY OF THE INVENTION A method is provided for embedding decryption into Viterbi decoding. Metrics associated with paths of a Viterbi decoding trellis are calculated from a received signal and an encrypted path state. When the method is used in conjunction with a communication channel, such as the AWGN channel, where the received signal and encrypted path state are in the symbol domain, significantly less transmitter power is required than is required when encryption and decoding are performed separately in a hard bit domain. In accordance with an aspect of the present invention there is provided a method for use in channel decoding including obtaining a channel decoding trellis having states, stages, and paths between states of adjacent stages, each of the paths having an associated path state. The method further including encrypting each path state with an encryption mask to result in an encrypted path state. In accordance with another aspect of the present invention there is provided, in a channel decoding trellis comprising states and paths between the states, a method for selecting one path from a plurality of paths leading to a destination state. The method includes, for each path of the plurality of paths leading to the destination state, encrypting a path state, associated with each path, with an encryption mask to result in an encrypted path state, calculating a local metric from an input and the encrypted path state and associating the local metric with each path. Also for each path, the method includes associating an overall path metric with each path, where the overall path metric is equivalent to a sum of the local metric and an overall state metric associated with a state at the origin of the path. The method concludes by selecting one path of the plurality of paths leading to the destination state based at least in part on each overall path metric. In accordance with further aspects of the present invention there is provided a decoder having a processor for carrying out this method of the present invention, a communication system including a decoder having a processor for carrying out this method of the present invention and a computer software medium for providing program control for a processor for carrying out this method of the present invention. In accordance with another aspect of the present invention there is provided a method for use in decrypting and decoding encrypted coded soft symbols, including associating a given encrypted encoded soft symbol with at least one stage and state of a decoding trellis, each path of the decoding trellis having an associated soft symbol path state and an equivalent hard symbol path state. The method further includes obtaining an encryption mask for use in decrypting the given encrypted encoded soft symbol, encrypting the equivalent hard symbol path state in the decoding trellis associated with each path leading to the at least one stage and state, utilising said encryption mask and determining an encrypted soft symbol path state corresponding to each encrypted equivalent hard symbol path state. The method concludes by determining metrics, each based on the given encrypted encoded soft symbol and one encrypted soft symbol path state. In accordance with a further aspect of the present invention there is provided a decoder for carrying out this method of the present invention. In accordance with another aspect of the present invention there is provided a method for use in decrypting and decoding encrypted coded symbols, including associating a given encrypted encoded symbol with at least one stage and state of a decoding trellis, each path of the decoding trellis having an associated symbol path state which, where the trellis is in a hard symbol domain, is a hard symbol path state and which, where the trellis is in a soft symbol domain, is a soft symbol path state with an equivalent hard symbol path state. The method further includes obtaining an encryption mask for use in decrypting the given encrypted encoded symbol, encrypting said hard symbol path state in said decoding trellis associated with each path leading to said at least one stage and state, utilising said encryption mask. The method concludes by determining metrics utilising the given encrypted encoded symbol and each encrypted hard symbol path state. In accordance with a further aspect of the present invention there is provided a decoder for carrying out this method of the present invention. In accordance with another aspect of the present invention there is provided a method for use in a decoder, including, obtaining an encryption mask. The method further includes, in a decoding trellis having an associated soft symbol path state and an equivalent hard symbol path state, determining a destination state corresponding with said encryption mask and encrypting the equivalent hard symbol path state associated with each path leading to the destination state utilising the encryption mask. The method concludes by determining an encrypted soft symbol path state corresponding to each encrypted equivalent hard symbol path state. In accordance with a further aspect of the present invention there is provided a decoder for carrying out this method of the present invention. Other aspects and features of the present invention will become apparent to those ordinarily skilled in the art upon review of the following description of specific embodiments of the invention in conjunction with the accompanying figures. BRIEF DESCRIPTION OF THE DRAWINGS In the figures which illustrate example embodiments of this invention: FIG. 1 illustrates, in a block diagram, a communication system employing hard-decision coding and XOR-based encryption. FIG. 2 illustrates, in a block diagram, an arrangement of convolutional coding and voice ciphering in IS-136. FIG. 3 illustrates a bit-wise trellis representation of a Viterbi decoder. FIG. 4 illustrates a signal space diagram for Quadrature Phase Shift Keying (QPSK). FIGS. 5A and 5B illustrate portions of a Viterbi decoding trellis with and without encryption of path states respectively. FIG. 6 illustrates a symbol domain trellis representation of a Viterbi decoder. In this figure, phase angle .theta., representing e.sup.j.theta., is used to label the path state. FIG. 7 illustrates, in a block diagram, a communication system in accordance with the present invention. FIG. 8 illustrates a flow diagram for a known maximum likelihood decoding procedure. FIG. 9 illustrates a flow diagram for a known method of calculating an overall metric for each state in a stage. FIG. 10 illustrates a flow diagram for a method of metric calculation in accordance with an embodiment of the present invention. FIGS. 11A and 11B illustrate example phases in a Viterbi decoding procedure using varied methods. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS In the known communication system of FIG. 1, the output of an encryption unit 112 may be the result of an XOR operation performed with output from a channel encoder 102 and output from an encryption mask generator 114 as operands. In one embodiment, encryption unit 112 provides output directly to a modulator 104, whereas, in a second embodiment encryption unit 112 provides output to an interleaver 103 whose output is input to modulator 104. After passing over a channel 106, in the non-interleaving case, a demodulator 108 provides a sequence of bits to a decryption unit 116 which then may perform an XOR operation with the sequence of bits and output from a decryption mask generator 118 as operands. In the interleaving case, a deinterleaver 109 acts on the output of demodulator 108 before decryption unit 116 is employed. Finally, the output of decryption unit 116 is passed to a hard decision channel decoder 110. FIG. 2 illustrates a particular embodiment of the transmission side of FIG. 1. Channel encoder 102, encryption unit 112 and interleaver 103 of FIG. 1 correspond in a general sense to a rate 1/2 convolutional channel encoder 202, a voice cipher unit 212 and a 2-slot interleaver 203, respectively. FIG. 2 is representative of the IS-136 specification, depicting an arrangement of channel encoding, ciphering and interleaving of VSELP speech data. 77 Class 1 bits and 82 Class 2 bits are output from a speech encoder 201. Twelve of the Class 1 bits are input to 7-bit cyclical redundancy check (CRC) calculator 207. The output of the CRC calculator 207 is input to rate 1/2 convolutional channel encoder 202 along with the Class 1 bits and 5 tail bits 205. Channel encoder 202 output, in conjunction with Class 2 bits, is input to voice cipher unit 212. 2-slot interleaver 203 receives output from voice cipher unit 212 and outputs to a modulator. Interleaver 203 scrambles an input bit sequence in a deterministic manner such that successive bits are separated in time when transmitted on the channel. Once a deinterleaver has descrambled the bit sequence at the receiver, any errors that occurred on the channel as a burst are spread out and may be more easily corrected by error correction coding. A coherence Quadrature PSK scheme, such as illustrated in FIG. 4, may be used for modulation. In such a case, a carrier wave is output from modulator 104 with a particular frequency and phases 0, .pi./2, .pi. and 3.pi./2 corresponding to input to modulator 104 of 00, 01, 11 and 10, respectively. After channel 106, the output of demodulator 108 reflects the bits that were present at the input of modulator 104. At the input of channel encoder 102 in FIG. 1 is a binary information sequence. Ideally, the same information sequence is present at the output of hard decision channel decoder 110. Toward that end, hard decision channel decoder 110 may use the Viterbi algorithm. FIG. 3 is a trellis representation of an example decoding scheme for use in conjunction with the Viterbi algorithm at a receiver when rate 1/2 convolutional encoding has been used at the transmitter. The trellis consists of stages (301, 302, 303, 304 and 305), states (a, b, c and d) and paths connecting states at adjacent stages. The trellis is created with the knowledge of the action of the encoder, as follows. Consider the states as representative of the state of a buffer in the encoder. The buffer could, for instance, store the two most recently received bits. In the trellis of FIG. 3, states a, b, c and d are representative of buffer states 00, 01, 10 and 11 respectively. The stages may be considered consecutive moments in time, where the transition from one stage to the next corresponds to a rate 1/2 encoder receiving one bit and generating two bits given the value of the one received bit and the two buffered bits. Each path, in the trellis of FIG. 3, is labelled with a binary path state which, in this case, is a series of two bits corresponding to the bits generated by the encoder in a response to a particular value of input bit. The binary path states in the trellis of FIG. 3 correspond to the encoding example given earlier in this document, namely v.sub.1 =u.sub.t +u.sub.t-1 +u.sub.t-2 and v.sub.2 =u.sub.t +u.sub.t-2, where v.sub.1 v.sub.2 is the path state (encoder output) resulting from an input bit of u.sub.t and a buffer state of u.sub.t-2 u.sub.t-1. Note that there are two paths exiting each state as there are two possibilities for the input bit: 0 and 1. The path from state a of stage 301 to state a of stage 302 represents an input bit 0 in combination with the buffer state 00, while the path from state a of stage 301 to state b of stage 302 represents an input bit 1 in combination with the buffer state 00. The following table illustrates the action of an example encoder and the relationship to each path from one stage to another in the Viterbi trellis of FIG. 3.
Encoder
Output
Initial (Binary Final
Buffer Received Path Buffer
State Bit State) State Path
a = 00 0 00 a = 00 aa
a = 00 1 11 b = 01 ab
b = 01 0 10 c = 10 bc
b = 01 1 01 d = 11 bd
c = 10 0 11 a = 00 ca
c = 10 1 00 b = 01 cb
d = 11 0 01 c = 10 dc
d = 11 1 10 d = 11 dd
The Viterbi algorithm comprises computing a local metric, d, for each path and then selecting the one path, of many entering a state, with the smallest overall metric, D. The overall metric D is the sum of the local metric d for the path under consideration and the overall metric of the state at which the path under consideration originated. Where more than one path enters a state, the path resulting in the lesser overall metric is selected. The local metric for a particular path may be the Hamming distance between a sequence represented by the path and the received sequence. A survivor path, which may be associated with a particular state, is made up of selected paths through a trellis up to the particular state. At the end of a decoding procedure, the decoded bit sequence may be obtained by tracing back through the survivor path, since each path, between stages, in the survivor path corresponds to one bit of the original information sequence. The Hamming distance between two sequences is the bit difference between the two sequences. Put another way, the Hamming distance may be found by performing an XOR operation on the two sequences and counting the 1 bits in the result. A step of the Viterbi algorithm is performed as follows. Each state at stage j has an associated overall metric. For each state at stage j+1, an overall metric is determined for each incoming path. For each state, the algorithm compares the two paths entering the state. The path with the smallest overall metric is selected and the selected overall metric becomes the overall metric associated with the state at stage j+1. At the termination of the algorithm, the state at the final stage with the minimum overall metric is representative of the end of most likely encoded bit sequence. The encoded bit sequence may then be decoded to result in the original information sequence. For example, consider a bit sequence 11 10 11 11 received by decoder 110 from a 1/2 rate convolutional encoder 102 which has encoded the bit sequence such that it may be decoded by the trellis of FIG. 3. An assumption is made that the buffer of encoder 102 was preloaded with 0s, as is known. Given that assumption, decoding can begin at state a. Referring to FIG. 3, and beginning at state a of stage 301, a local metric is computed for the first received pair (11) for each path leading from stage 301 to stage 302. The local metric d.sub.aa =2 because the Hamming distance between the received pair (11) and the binary path state (00) of the path from state a of stage 301 to state a of stage 302 is 2. Since the algorithm begins at stage 301, the overall metric associated with stage 301 D.sub.a301 is 0. Thus, the overall metric, D.sub.a302, assigned to state a of stage 302 is D.sub.a301 +d.sub.aa =2. Similarly, since the local metric d.sub.ab =0, an overall metric D.sub.b.sub.302 =0 is assigned to state b of stage 302. Here, path aa is the survivor path for state a of stage 302 and path ab is the survivor path for state b of stage 302. The second received pair (10) is then used to compute local metrics for each path leading from stage 302 to stage 303. The overall metrics, which comprise the overall metric of the state at the origin of a particular path summed with the Hamming distance between the received pair and the binary path state of the path, are as follows, D.sub.a303 =D.sub.a302 +d.sub.aa =2+1=3, D.sub.b303 =D.sub.a302 +d.sub.ab =2+1=3, D.sub.c303 =D.sub.b302 +d.sub.bc =0+0=0 and D.sub.d3C3 =D.sub.b302 +d.sub.bd =0+2=2. The third received pair (11) is then used to compute local metrics for each path leading from stage 303 to stage 304. The overall metrics are as follows, D.sub.a304 =min[D.sub.a303 +d.sub.aa, D.sub.c303 +d.sub.ca ]=D.sub.c303 +d.sub.ca =0+0=0, D.sub.b304 =min[D.sub.a303 +d.sub.ab, D.sub.c303 +d.sub.cb ]=D.sub.c303 +d.sub.cb =0+2=2, D.sub.c304 =min[D.sub.b303 +d.sub.bc, D.sub.d303 +d.sub.dc ]=D.sub.d303 +d.sub.dc =2+1=3 and D.sub.d304 =min[D.sub.b303 +d.sub.bd, D.sub.d303 +d.sub.dd ]=D.sub.d303 +d.sub.dd =2+1=3. The fourth received pair (11) is then used to compute local metrics for each path leading from stage 304 to stage 305. The overall metrics are as follows, D.sub.a305 =min[D.sub.a304 +d.sub.aa, D.sub.c304 +d.sub.ca ]=D.sub.a304 +d.sub.aa =0+2=2, D.sub.b305 =min[D.sub.a304 +d.sub.ab, D.sub.c304 +d.sub.cb ]=D.sub.a304 +d.sub.ab =0+0=0, D.sub.c305 =min[D.sub.b304 +d.sub.bc, D.sub.d304 +d.sub.dc ]=D.sub.b304 +d.sub.bc =2+1=3 and D.sub.d305 =min[D.sub.b304 +d.sub.bd, D.sub.d304 +d.sub.dd ]=D.sub.b302 +d.sub.bd =2+1=3. As stage 305 is the end of the trellis, the least overall metric may be identified and a survivor path traced back. In this example, the least overall metric is the metric associated with state b. The paths in the survivor path for this state are, tracing left to right, ab, bc, ca and ab. It is these transitions in the survivor path that indicate the decoded bits. In this example, ab, bc, ca and ab may be decoded as the information sequence 1001. Hard Symbols with Encryption With hard symbols (bits), generally, when encryption is performed after encoding at a transmitter, decryption must be performed before decoding at the receiver. If the encryption and decryption are performed in a bit-wise manner, as is known, by performing an XOR operation with an encoded bit stream and an encryption mask as operands, the input to the decryption unit must be hard bits. Thus the output of the decryption unit, and therefore input to the channel decoder, is hard bits. Encryption is necessarily reversible. If encryption is performed using an XOR operation, the mask used for encryption is the same as the mask used for decryption. Commonly, the encryption mask changes with time and the encryption and decryption operations need to be synchronized. With hard symbols, conventionally, an encryption mask is applied to a received bit sequence and the decrypted result is compared to binary path states for transitions from one state to another in a decoding trellis. In an example case where an encryption mask is 01, a bit with a value 0 may be encoded as 00 and subsequently encrypted to yield 01. In the system of FIG. 1, the encrypted sequence is modulated, sent over the channel and demodulated after which the received sequence, 01, is input to decryption unit 116. The encryption mask is applied to the received sequence, yielding 00. In the transition from stage 501A to stage 502A of the trellis of FIG. 5A, the decrypted sequence is compared to the binary path states 00, for the xq path, and 11, for the yq path. As the local metric (Hamming distance=0) for the xq path is less than the local metric (Hamming distance=2) for the yq path, the received sequence may be decoded as being representative of a bit with a value 0. We have discovered that if the encryption mask is instead applied to the various binary path states to which the received bit sequence is compared, then decoding and decrypting may occur simultaneously. To combine the operations of decoding and decrypting, again, consider an encryption mask of 01 and a bit with a value 0 encoded as 00, subsequently encrypted to yield 01. In this case, the received sequence, 01, is input to a decoder with embedded decryption. To embed decryption in decoding, the path states of the decoding trellis are encrypted. As the encryption mask changes with time, encryption of path states is performed just before the comparison to the received sequence. Specific to the example under consideration, application of the encryption mask produces a path state of 01 for the xq path and a path state of 10 for the yq path. In the transition from stage 501B to stage 502B in the encrypted trellis of FIG. 5B, the received sequence, 01, is compared to encrypted path state 01, for the xq path, and 10, for the yq path. As the local metric (Hamming distance=0) for the xq path is less than the local metric (Hamming distance=2) for the yq path, the received sequence may be decoded as being representative of a bit with a value 0. Soft Symbols without Encryption In the absence of encryption, a trellis similar to the one illustrated in FIG. 3 may be used for Viterbi decoding when soft symbols are received from the demodulator instead of hard bits. If, for instance, a coherence Quadrature PSK scheme, such as illustrated in FIG. 4, is used for modulation, the sent soft symbols will have phases 0, .pi./2, .pi. and 3.pi./2 corresponding to sent hard bits 00, 01, 11 and 10, respectively. If a demodulator in a receiver outputs received soft symbols corresponding to the above sent soft symbols, a suitable decoding trellis, such as the one illustrated in FIG. 6, is required for Viterbi decoding. In FIG. 6, soft path states have replaced the binary path states of FIG. 3. In a manner similar to the hard bit case, the soft path states represent the sent symbols. When Viterbi decoding is performed on received soft symbols, a different measure is necessary for computing local metrics. Rather than a Hamming distance between a received bit sequence and a binary path state of a particular path, the local metric for a path may be computed as the Euclidean distance between the received soft symbol and the soft path state of a particular path. When computed using Euclidean distance, the metric is likely to more accurately reflect the difference between received information and sent information. As an overall metric accumulates over a trellis, this increased accuracy better defines a maximum likelihood survivor path. Consider an M-PSK symbol sequence, h, that represents the information sequence which has been convolutionally coded and mapped into one of M possible M-PSK symbols. The kth element of symbol sequence h is h.sub.k where ##EQU1## On the receiver side, the received symbol sequence after demodulation can be represented as r. The kth element of the received symbol sequence r in an AWGN channel is r.sub.k where ##EQU2## .epsilon..sub.s is symbol energy and n(k) represents channel noise. The value of a local metric, d, for a maximum likelihood decoding algorithm may be p(r.vertline.h) or a related value such as log(p(r.vertline.h)). The expression p(r.vertline.h) represents the joint probability of r.sub.k conditioned on the transmitted sequence h.sub.k, where r.sub.k and h.sub.k denote the kth elements of r and h respectively. A likelihood function is defined ##EQU3## Correspondingly, a log-likelihood function is ##EQU4## The log-likelihood function is preferred over the likelihood function for computing a local metric, d, because of reduced computational complexity of the addition operation of the former over the multiplication operation of the latter. It can be shown that log[p(r.vertline.h)]=C.multidot..parallel.r-h.parallel..sup.2 where C is a constant common for all paths and .parallel..multidot..parallel. is Euclidean distance. For two N-dimension vectors x=(x.sub.1, x.sub.2, . . . x.sub.N) and y=(y.sub.1, y.sub.2, . . . y.sub.N), Euclidean distance is defined as ##EQU5## Let an overall metric, D.sub.f, be the sum of local metrics of each path along a survivor path terminating at state f. Let s.sub.i be soft path state for a path originating at generic state i. Where r.sub.j is a received soft decision input, the value of a local metric, d, for a maximum likelihood decoding algorithm may be determined from log.vertline.p(r.sub.j.vertline.s.sub.i)=C.multidot..parallel.r.sub.j -s.sub.i.parallel..sup.2. For a path from a state x to a state q, a local metric d.sub.xq may be calculated using the received soft decision input r.sub.j and soft path state s.sub.x. For each of the paths entering state q, an overall path metric, D.sub.iq =D.sub.i +d.sub.iq, may be calculated. The path with the lesser overall path metric D.sub.iq, that is, the local metric d.sub.iq plus an overall state metric D.sub.i associated with the originating state i, is chosen to be the survivor path and the local metric of the survivor path is accumulated into the overall state metric for state q, D.sub.q. For example, where a transition from state x to state q is compared to a transition from state y to state q, D.sub.q =min.left brkt-bot.D.sub.xq, D.sub.yq.right brkt-bot.. In addition, the survivor path is stored for later traceback. Soft Symbols with Encryption A problem arises if encryption is to be employed with soft symbols as a soft symbol cannot be an operand for an XOR operation. With soft symbols, one way to perform decryption with an XOR operation would be to convert the soft symbols to hard bits. But if this is done, the increased accuracy attendant upon using soft symbols is lost. Using a separate decryption unit and decoder, then, precludes soft symbol decoding. We have demonstrated, though, that decryption may be embedded in a decoding process in the hard bit domain. It is proposed to embed decryption in decoding in the symbol domain. The result of this combination may be the soft-decision channel decoder with embedded decryption 710 of FIG. 7. Turning to FIG. 7, wherein like parts to those of FIG. 1 have been given like reference numerals, note that the difference between the system of FIG. 1 and the system of FIG. 7 is only found on the receiver side of the channel. Information is encoded, encrypted, possibly interleaved and then modulated in the same manner in both systems. The differences start with demodulation. Where the output of demodulator 108 is hard decisions, or bits, the output of a demodulator 708 is soft decision symbols. These soft decision symbols may be received directly by a soft-decision channel decoder with embedded decryption 710 that replaces both decryption unit 116 and hard decision channel decoder 110 of FIG. 1. Soft-decision channel decoder with embedded decryption 710 comprises a processor 716 and a memory 718 loaded with software for executing the method of this invention from software medium 720 which could be a disk, a tape, a chip or a random access memory containing a file downloaded from a remote source. In another embodiment, output of demodulator 708 is first deinterleaved by deinterleaver 709 and then passed to soft-decision channel decoder with embedded decryption 710. In operation, soft-decision channel decoder with embedded decryption 710 receives a soft decision input (symbol) from demodulator 708 and the processor 716, under control of software in memory 718, undertakes the method of this invention to select one path of many entering each state of the appropriate stage of a decoding trellis. Path selection is repeated for each received soft decision input. Once an end of the decoding trellis is reached, a decoded and decrypted bit sequence is obtained in a conventional manner. Consider a first embodiment (without interleaving) of the system of FIG. 7 comprising a transmitter with output from encryption mask generator 114 being applied to obtain an encrypted and encoded information sequence after convolutional encoding and before modulation. If encryption is applied, the received soft decision input r.sub.j is in the encryption domain. Therefore, the pre-encrypted soft path state s.sub.i should not be used to compute local metric d.sub.iq. Instead, a soft path state in the encryption domain, s.sub.i, should be used. Encrypted soft path state s.sub.i can be computed by first finding the binary path state b.sub.i corresponding to pre-encrypted soft path state s.sub.i (which, for example, for Quadrature PSK, is typically as shown in FIG. 4), then performing an XOR operation on b.sub.i using the proper encryption mask to obtain an encrypted binary path state b.sub.i, and finally finding the encrypted soft path state s.sub.i corresponding to b.sub.i. As the received soft decision input r.sub.j is being compared to the encrypted soft path state s.sub.i, local metric calculation becomes d.sub.iq =C.multidot..parallel.r.sub.j -s.sub.i.parallel..sup.2 for a path from a generic state i to the state under consideration q. This equation for the local metric calculation used in path selection is repeated through the entire trellis during the decoding. At the end of the trellis, a decoded and decrypted bit sequence is obtained by tracing back as in standard Viterbi decoding. To review, when performing soft decision Viterbi decoding, the soft path states of the decoding trellis must be converted to the bit domain, encrypted and returned to the symbol domain before the calculation of local metrics. It should be noted that given the changing nature of the encryption mask, a static soft decision decoding trellis without encryption, such as that illustrated in FIG. 6, is maintained by soft-decision channel decoder with embedded decryption 710 (To minimize processing, the static trellis is stored after conversion of the soft path states to binary path states). Encryption of the soft path states is accomplished in conjunction with the receipt of each soft decision input. The method of the present invention can be summarized in conjunction with FIGS. 8-10. With reference to FIG. 8, as a stream of symbols is received, calculation of the overall metrics of all states associated with a particular stage (step 802) is repeated through an entire trellis (step 804). At the end of the trellis (step 806), the state with the minimum overall metric is chosen (step 808) and a decoded and decrypted binary sequence is obtained by tracing back the survivor path which ends at the chosen state (step 810) as in standard Viterbi decoding. FIG. 9 illustrates the sub-steps of step 802 involved in determining the value of the overall metric for each state in a particular stage. A destination state of the stage under consideration is selected (step 902) and the overall metric for the destination state is calculated (step 904). Lastly, a decision is made as to whether all states in the stage have been considered. As illustrated in FIG. 10, the overall metric calculation step for a destination state q (step 904) has the following phases: (A) At time j, receive a soft decision input r.sub.j from a demodulator (step 1002). (B) From the static trellis maintained in the decoder, find the soft path states, s.sub.x and s.sub.y, which lead to the destination state q and therefore find the binary path states, b.sub.x and b.sub.y, corresponding to the soft path states (step 1004). (C) Retrieve an encryption mask e.sub.j ; e.sub.j has the same number of bits as b.sub.x and b.sub.y and corresponds to the current time t.sub.j (step 1006). (D) XOR e.sub.j with b.sub.x and b.sub.y to yield b.sub.x and b.sub.y (step 1008). (E) Find the soft path state s.sub.x and s.sub.y corresponding to b.sub.x and b.sub.y (step 1010). (F) Calculate local metrics d.sub.xq and d.sub.yq, where d.sub.iq =C.multidot..parallel.r.sub.j -s.sub.i.parallel..sup.2 (step 1012) and overall metrics D.sub.xq and D.sub.yq, where D.sub.iq =D.sub.i +d.sub.iq (step 1014) with i=x or i=y. Choose the path with the lesser overall path metric D.sub.iq (step 1016) to be the survivor path (D.sub.q =min[D.sub.iq ]). Note that the encrypted path state is only used to calculate the local metric. (G) Store the survivor path and the decoded bit(s) associated with each path in the survivor path (step 1018) for traceback. Note that decryption is embedded in phases (C) through (E). Phases (A), (B), (F) and (G) are the same as in the standard Viterbi algorithm. As well, note that, although in the above example only two paths enter each state, a decoding trellis may have a plurality of paths entering each state, dependent upon the encoding scheme. By way of example, consider a system wherein a coherence Quadrature PSK scheme is used for modulation and the sequence at the output of encoder 102 at time t.sub.j is 01. Without encryption, 01 is mapped according to FIG. 4, to ##EQU6## which is transmitted. The fact that s.sub.j may be transmitted using I and Q symbols is not addressed here since it does not affect the method of the present invention, also, .epsilon..sub.s is omitted without loss of generality. On the receiver side, the received symbol may be ##EQU7## due to channel distortion. As illustrated in FIG. 11A, the two binary path states leading to destination state q are b.sub.x =01 (from x) and b.sub.y =10 (from y). The corresponding soft path states are then ##EQU8## According to the formula d.sub.iq =C.multidot..parallel.r.sub.j -s.sub.i.parallel..sup.2, the resulting local metrics for the two paths in FIG. 11A are d.sub.xq =0.1522 and d.sub.yq =3.8478 (constant C is omitted here). Each local metric d.sub.iq is added to the appropriate overall metric D.sub.i of the previous time interval. The path (from x to q) that corresponds to the correct transmitted encoded bits is associated with the lesser of the two local metrics. Now assume encryption is applied and the encryption mask e.sub.j corresponding to time t.sub.j is 11. After encryption, the sequence 01 (output by encoder 102) becomes 10 and is mapped to ##EQU9## If the same channel distortion occurs, the received symbol becomes ##EQU10## Using the method of the present invention, the encrypted binary path state is calculated for each path (step 1008, FIG. 10), giving b.sub.x =10 and b.sub.y =01, respectively. Then the corresponding encrypted soft path state is determined (step 1010, FIG. 10), giving ##EQU11## Now, the local metrics d.sub.xq and d.sub.yq can be calculated using r.sub.j, s.sub.x and s.sub.y. The result, as illustrated in FIG. 11B, is d.sub.xq =0.1522 and d.sub.yq =3.8478. Here, the path from x to q has the lesser local metric, which, correctly, is the same as the non-encryption case. Now, consider a second embodiment of the system of FIG. 7 comprising a transmitter with encryption mask generator 114 being applied (XORed) to a bit sequence after convolutional encoding and before interleaving and subsequent modulation, similarly to the first embodiment. However, in the receiver, the soft-decision output of demodulator 708 is not soft symbols, as was the case in the first embodiment, but soft bits. Where a soft-decision in soft symbol format might be ##EQU12## a soft-decision in soft bit format might be g.sub.j =(0.38, 0.92). This soft-decision in soft bit format may then be processed by deinterleaver 709 resulting in soft-decision r.sub.j whose bit sequence is as it was at the output of encryption unit 112, i.e. before interleaving. As in the first embodiment, soft-decision channel decoder with embedded decryption 710 receives soft decision input r.sub.j in the encryption domain. For each path, a soft path state s.sub.i may be computed, as previously, by first finding the binary path state b.sub.i corresponding to pre-encrypted soft path state s.sub.i, then performing XOR on b.sub.i using the encryption mask corresponding to this time to obtain an encrypted binary path state b.sub.i, and finally finding the encrypted soft path state s.sub.i corresponding to b.sub.i. In an alternative embodiment, the encryption mask does not change with time. In such a case, all path states of the Viterbi decoding trellis may be encrypted in advance, rather than upon the receipt of each decision. As the method of the present invention may be used in decoding bit sequences encoded using general convolutional code, it may also be used in decoding bit sequences encoded using modified convolutional code such as those employing puncturing or tailbiting. Other modifications will be apparent to those skilled in the art and, therefore, the invention is defined in the claims.
|
Same subclass Same class Consider this |
||||||||||
