CPC H04L 9/3242 (2013.01) [H04L 9/3273 (2013.01)] | 23 Claims |
1. A method for data exchange on a communication network operating according to a transmission/reception protocol, the communication network including a transmission bus, and a first node and a second node connected to the transmission bus, the method comprising steps, carried out by the first node, of:
constructing a first and a second data frame, each of said first data frame and said second data frame having a frame format that is defined by said protocol and including a respective payload field, said respective payload fields containing respective first and second information data to be transmitted to the second node;
calculating a first message authentication code as a function of the first and the second information data to be transmitted;
constructing a third data frame having a frame format that is defined by said protocol and includes a payload field, and containing, in the payload field of said third data frame, said first message authentication code;
transmitting to the transmission bus the first, the second and the third data frames;
the method further comprising steps, carried out by the second node, of:
receiving from the transmission bus the first, the second and the third data frames;
extracting the first information data from the first data frame received, the second information data from the second data frame received and the first message authentication code from the third data frame received;
calculating a second message authentication code as a function of the first and the second information data extracted;
comparing the first message authentication code extracted with the second message authentication code calculated; and
accepting the first and the second data frames only if the first message authentication code extracted is identical to the second message authentication code calculated;
wherein the step of calculating the first message authentication code further comprises calculating the first message authentication code as a function of an encryption key,
and the step of calculating the second message authentication code further comprises calculating the second message authentication code as a function of a decryption key,
wherein said encryption key corresponds to the decryption key, thus implementing a symmetric encryption algorithm,
alternatively, the encryption key is a private key and the decryption key is a public key different from the encryption key, thus implementing an asymmetric encryption algorithm.
|