Mistake Logical Operators and Bitwise Operators in NAS messages
in function " _nas_message_encrypt" , "_nas_message_decrypt", " _nas_message_get_mac", Mistake Logical Operators and Bitwise Operators in NAS messages procedure.
case NAS_SECURITY_ALGORITHMS_EEA1: {
if (direction == SECU_DIRECTION_UPLINK) {
count = 0x00000000 ||
((emm_security_context->ul_count.overflow && 0x0000FFFF) << 8) ||
(emm_security_context->ul_count.seq_num & 0x000000FF);
} else {
count = 0x00000000 ||
((emm_security_context->dl_count.overflow && 0x0000FFFF) << 8) ||
(emm_security_context->dl_count.seq_num & 0x000000FF);
}
the above code should be change to Bitwise Operators.