11.5 Ciphering
25.3213GPPMedium Access Control (MAC) protocol specificationTS
The ciphering function is performed in MAC (i.e. only in MAC-d) if a radio bearer is using the transparent RLC mode. The part of the MAC PDU that is ciphered is the MAC SDU and this is shown in Figure 11.5-1 below.
Figure 11.5-1: Ciphered part unit for a MAC PDU
In case a TTI contains multiple MAC PDUs for a given Transparent mode RB, the ciphering unit for this RB is the bitstring concatenation of all the MAC SDUs, resulting in the PLAINTEXT BLOCK, as defined in [15]. In case there is only one MAC PDU for a given Transparent mode RB, the ciphering unit is the MAC SDU, resulting in the PLAINTEXT BLOCK. The concatenation order is the same as the order of transmission of the Transport Blocks between MAC and Physical layer.
The KEYSTREAM BLOCK as defined in [10] is applied to the PLAINTEXT BLOCK, and the end result, CIPHERTEXT BLOCK, becomes the ciphered part for the MAC PDU, in case there is only one MAC PDU per RB. In case there is more than one MAC PDU per RB, the CIPHERTEXT BLOCK is split into the corresponding ciphered parts for each MAC PDU. The split order is the same as the order of transmission of the Transport Blocks between MAC and Physical layer.
The ciphering algorithm and key to be used are configured by upper layers [7] and the ciphering method shall be applied as specified in [10].
The parameters that are required by MAC for ciphering are defined in [10] and are input to the ciphering algorithm. The parameters required by MAC which are provided by upper layers [7] are listed below:
– MAC-d HFN (Hyper frame number for radio bearers that are mapped onto transparent mode RLC)
– BEARER defined as the radio bearer identifier in [10]. It will use the value RB identity –1 as in [7])
– CK (Ciphering Key)
If the TTI consists of more than one 10 ms radio frame, the CFN of the first radio frame in the TTI shall be used as input to the ciphering algorithm for all the data in the TTI.