-
公开(公告)号:EP4513923A1
公开(公告)日:2025-02-26
申请号:EP23818958.3
申请日:2023-05-26
Applicant: Huawei Technologies Co., Ltd.
Inventor: FENG, Jiashu , MENG, Fanrui
IPC: H04W12/033
Abstract: This application provides a message communication method and a device. In the method, an electronic device determines, in response to a first operation, a first message authentication code based on a message sending time corresponding to the first operation, plaintext content corresponding to the first operation, and a first key corresponding to the electronic device. The electronic device processes the first message authentication code based on a target authentication code length, to obtain a target authentication code. The electronic device generates a target message based on the target authentication code and encrypted plaintext content, and sends the target message to a server. According to the solution, after generating the first message authentication code, the electronic device may process the first message authentication code based on the target authentication code length, to obtain the target authentication code. The target authentication code may be used by the server to perform checking on the received message, and the target authentication code does not occupy excessive resources. Therefore, an amount of information that can be transmitted through message communication is increased when communication security is ensured.