Method and apparatus for processing data associated with a data frame

By optimizing the data frame processing method and using the bit vector and checksum interception mechanism of multiple information elements, the identifier length and security protocol alignment problems in CAN FD and CAN XL data frame processing are solved, and the control of CAN FD and CAN XL is realized. Unified processing and security improvement of data frames.

CN118740329APending Publication Date: 2024-10-01ROBERT BOSCH GMBH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410356996.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-28
Filing Date
2024-03-27
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing data frame processing methods are difficult to effectively process the data associated with the CAN FD and CAN XL protocols. In particular, there are difficulties in data identifier length and security protocol alignment, which affects the authenticity and integrity check of the data.

Method used

By providing bit vectors of multiple information elements, including 11-bit and 18-bit identification information, combined with padding data and data byte length codes, the data format is optimized to support the CANsec protocol, and security is enhanced through a checksum interception mechanism. Flexible processing and conversion of CAN FD and CAN XL data frames.

Benefits of technology

It achieves unified processing of CAN FD and CAN XL data frames, simplifies bit vector processing, enhances data security and integrity checking, reduces dependence on hardware, and improves compatibility and efficiency of the CANsec protocol. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740329A_ABST
    Figure CN118740329A_ABST
Patent Text Reader

Abstract

A method for processing data associated with a data frame comprises providing output data having a plurality of information elements, e.g. In the form of a bit vector, for example for a device for performing a cryptographic function, wherein a first information element of the plurality of information elements has a length of 11 bits and characterizes first identification information associated with a data frame, and wherein a second information element of the plurality of information elements has a length of 18 bits and is designed to characterize optional second identification information associated with the data frame; and optionally using the output data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for processing data associated with a data frame.

[0002] The present disclosure also relates to an apparatus for processing data associated with a data frame. Summary of the invention

[0003] An exemplary embodiment relates to a method for processing data associated with a data frame that can be transmitted via a bus system and / or transmitted via a bus system, such as a computer-implemented method, comprising: providing output data having a plurality of information elements (Informationselement), such as in the form of a bit vector (Bitvektor), such as for a device for performing a cryptographic function, wherein a first information element of the plurality of information elements has a length of 11 bits and represents first identification information associated with the data frame, wherein a second information element of the plurality of information elements has a length of 18 bits and is designed to represent optional second identification information associated with the data frame; and optionally using the output data. This enables, for example, in further exemplary embodiments, the output data to be provided flexibly, such as for (e.g. further) processing by a device for performing a cryptographic function, such as for decrypting and / or checking the authenticity of data associated with the data frame. or completeness (Unversehrtheit).

[0004] In further exemplary embodiments, the output data may be formed, for example, on the basis of data frames which are transmitted via the bus system and received by the bus users.

[0005] In a further exemplary embodiment, the received data frame can be stored, for example, at least temporarily, for example, intermediately, for example, in a receive buffer associated with the receiving bus user. For example, in this way, the first identification information and / or the second identification information and / or any other information of the received data frame can be stored at least temporarily.

[0006] In a further exemplary embodiment, the output data may be formed, for example, based on the first and second identification information and optionally based on at least part of possibly present further information of the received data frame, which information may for example be at least temporarily stored in a receive buffer.

[0007] In a further exemplary embodiment, it is provided that the data frame is an LLC (Link Layer Control) data frame according to the CAN FD (Controller Area Network Flexible Data-rate) protocol, for example an LLC (Link Layer Control) data frame according to ISO 11898-1:2015.

[0008] In a further exemplary embodiment, the CAN FD LLC data frame may be derived, for example, from a data frame as used in a CAN FD bus system for transmission via the bus system. For example, compared to a data frame used in a CAN FD bus system and associated, for example, with a deeper protocol layer, such as a MAC (Media Access Control) layer, for example, according to layer 2a of the ISO / OSI model, the CAN FD LLC data frame may have a subset thereof and / or other and / or additional information. For example, the CAN FD LLC data frame is associated with layer 2b of the ISO / OSI model.

[0009] In a further exemplary embodiment, it is provided that the method comprises at least one of the following elements: a) assigning a zero value, for example in binary form "000000000000000000", to the second information element, for example if the data frame has a CAN FD basic data frame format, for example FDBF, for example a flexible data rate basic frame format, which has, for example, an 11-bit identification, b) assigning a non-zero value, for example a non-zero binary value, to the second information element, for example on the basis of an identification extension of the data frame, for example if the data frame has a CAN FD extended data frame format, for example FDEF, for example a flexible data rate extended frame format, which has, for example, a 29-bit identification. In other words, in a further exemplary embodiment, the second information element can therefore be understood, for example, as a placeholder, which in the case of a 29-bit identification provides storage space for the 29-bit identification, but in the case of an 11-bit identification, the storage space is, for example, unused.

[0010] In a further exemplary embodiment it is provided that the method comprises at least one of the following elements: a) providing a first information element in the first 11 bits of the bit vector, for example from bit 0 to bit 10, b) providing a third information element having three bits in bit 11 to bit 13 of the bit vector, said third information element characterizing the format of the data frame, c) providing a second information element in bit 14 to bit 31 of the bit vector.

[0011] In a further exemplary embodiment, it is provided that the method comprises at least one of the following elements: a) providing filling data, for example padding data, in bits 32 to 38 of the bit vector, b) providing an information element characterizing the length of the data bytes of the data frame, for example a DLC, i.e. a data length code, of the information element, for example in bits 33 to 42 of the bit vector, c) providing an information element characterizing, for example a data rate switch within the data frame, for example a BRS, i.e. a bit rate switch, of the information element, for example in bit 43 of the bit vector, d) providing the filling data in bits 44 to 63 of the bit vector. In further exemplary embodiments, the filling data can, for example, cause the other information elements of the bit vector to be aligned, for example at data word boundaries.

[0012] In a further exemplary embodiment it is provided that the method comprises at least one of the following elements: a) providing an information element characterizing, for example, a data rate switch within a data frame, such as the BRS of the information element, i.e., the bit rate switch, for example in bit 32 of the bit vector; b) providing an information element characterizing the length of the data bytes of the data frame, such as the DLC of the information element, i.e., the data length code, for example in bits 33 to 36 of the bit vector; c) providing padding data in bits 37 to 63 of the bit vector.

[0013] In a further exemplary embodiment it is provided that the method comprises at least one of the following elements: a) providing a first information element in the first 11 bits of the bit vector, for example from bit 0 to bit 10, b) providing a third information element having three bits in bit 11 to bit 13 of the bit vector, which characterizes the format of the data frame, c) providing a second information element in bit 46 to bit 63 of the bit vector.

[0014] In a further exemplary embodiment it is provided that the method comprises at least one of the following elements: a) providing filling data in bits 14 to 30 of the bit vector, b) providing an information element characterizing the length of the data bytes of the data frame, such as the DLC, i.e., data length code, of the information element, for example in bits 31 to 34 of the bit vector, c) providing an information element characterizing, for example, a data rate switch within the data frame, such as the BRS, i.e., bit rate switch, of the information element, for example in bit 35 of the bit vector, d) providing filling data in bits 36 to 45 of the bit vector.

[0015] In a further exemplary embodiment it is provided that the method comprises at least one of the following elements: a) providing, for example, 32 bits of filling data in bits 64 to 95 of the bit vector, for example in the third data word having 32 bits of the bit vector, b) providing, for example, 27 bits of filling data, wherein b1): for example, the 27 bits of filling data extend, for example, from bit 32 to bit 38 and from bit 44 to bit 63, or wherein b2): for example, the 27 bits of filling data extend, for example, from bit 37 to bit 63, or wherein b3): for example, the 27 bits of filling data extend, for example, from bit 14 to bit 30 and from bit 36 ​​to bit 45.

[0016] In another exemplary embodiment, it is provided that the method comprises: providing, for example, starting from bit 64 or bit 96 of the bit vector, one or more information elements for a safety protocol, for example associated with the data frame, the safety protocol being, for example, a safety protocol of the CANsec type, for example according to specification CiA (CAN in Automation), 613-2. In a further exemplary embodiment, the data associated with the safety protocol can be processed, for example, by a device for performing cryptographic functions.

[0017] In a further exemplary embodiment, the combination of the above-mentioned 32-bit filling data in the third data word with the 27-bit filling data for the first and / or second data word is advantageous, since, for example, this allows an alignment of the optional information elements for the CANsec protocol in the output data, for example in the bit vector, as can also be obtained, for example, when a CAN XL LLC data frame is used for using the CANsec protocol. The processing of the bit vector is thus simplified, wherein, for example, a device processing the bit vector (for example, a device for performing cryptographic functions) does not have to distinguish whether it is a CAN FD-based data frame or an input vector associated with a CAN FD-based data frame or a CAN XL-based data frame or an input vector associated with a CAN XL-based data frame. Instead, the relevant information for the CANsec protocol is provided to the device processing the bit vector at the same bit position in the input vector.

[0018] In a further exemplary embodiment it is provided that the method comprises providing a checksum, for example an ICV (i.e. integrity check value) type checksum, for example at the end of the bit vector. For example, the bit vector has a length of 24 bytes to, for example, 100 bytes, and the checksum information may, for example, occupy the last bytes, for example, the last 4 bytes or 8 bytes or 12 bytes or 16 bytes.

[0019] In a further exemplary embodiment it is provided that the method comprises truncating a checksum, for example of the ICV type, wherein, for example, a truncated checksum is obtained and optionally, for example, the truncated checksum is provided at the end of a bit vector.

[0020] In another exemplary embodiment, it is provided that truncating the checksum includes truncating the checksum to a length that is an integer multiple of 8 bits, for example, truncating the checksum to a length of 32 bits, 40 bits, 48 ​​bits, 56 bits, 64 bits, etc.

[0021] In further exemplary embodiments, for example instead of or in addition to using a (eg intercepted) checksum, further optional measures may be taken to increase security, for example to prevent forgery of data frames and / or to identify attacks.

[0022] Further exemplary embodiments relate to an apparatus for carrying out the method according to the described embodiments.

[0023] Further exemplary embodiments relate to a bus user for a bus system, for example of the CAN FD type, which has at least one device according to the described embodiments. In further exemplary embodiments, the bus user can be designed to at least selectively process CAN FD type data frames and CAN XL type data frames, for example.

[0024] Further exemplary embodiments relate to a computer-readable storage medium comprising instructions which, when executed by a computer, cause the computer to perform a method according to the described embodiments.

[0025] Further exemplary embodiments relate to a computer program comprising instructions which, when executed by a computer, cause the computer to carry out a method according to the described embodiments.

[0026] Further exemplary embodiments relate to a data carrier signal which transmits and / or represents a computer program according to the described embodiments.

[0027] Further exemplary embodiments relate to the use of the method according to the embodiments and / or the device according to the embodiments and / or the bus user according to the embodiments and / or the computer-readable storage medium according to the embodiments and / or the computer program according to the embodiments and / or the data carrier signal according to the embodiments for at least one of the following elements: a) providing output data having a plurality of information elements, for example in the form of a bit vector, for a device for performing a cryptographic function, b) enabling efficient use of the CANsec protocol for CAN FD, c) optimizing the data format of an input vector for a device for performing a cryptographic function, d) enabling truncation of a checksum, for example to a length of less than 64 bits, for example for CAN FD, e) enabling, for example, efficient use of the CANsec protocol selectively for CAN FD and / or CAN XL, f) enabling, for example, efficient processing of different CAN FD identifier lengths, for example, identifier lengths of 11 bits and 29 bits, g) converting, for example flexibly, data associated with a data frame into at least one input bit vector of a device for performing a cryptographic function. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Further features, application possibilities and advantages of the invention are apparent from the following description of the exemplary embodiments of the invention shown in the drawings. All features described or shown here form the subject matter of the invention individually or in any combination, regardless of their summary in the claims or their reference relationship, and regardless of their expression or representation in the description or drawings. In the drawings:

[0029] Figure 1 schematically illustrates a simplified flow chart according to an exemplary embodiment;

[0030] Figure 2 schematically illustrates a simplified block diagram according to an exemplary embodiment;

[0031] Figure 3 schematically illustrates a simplified block diagram according to an exemplary embodiment;

[0032] Figure 4 schematically illustrates a simplified flow chart according to an exemplary embodiment;

[0033] Figure 5 schematically illustrates a simplified flow chart according to an exemplary embodiment;

[0034] Figure 6 schematically illustrates a simplified flow chart according to an exemplary embodiment;

[0035] Figure 7 schematically illustrates a simplified flow chart according to an exemplary embodiment;

[0036] Figure 8 schematically illustrates a simplified flow chart according to an exemplary embodiment;

[0037] Fig. 9 schematically illustrates a simplified flow chart according to an exemplary embodiment;

[0038] Fig.10 schematically illustrates a simplified flow chart according to an exemplary embodiment;

[0039] Fig.11 schematically illustrates a simplified flow chart according to an exemplary embodiment;

[0040] Fig.12 schematically illustrates a simplified flow chart according to an exemplary embodiment;

[0041] Fig.13 schematically illustrates a simplified block diagram according to an exemplary embodiment; and

[0042] Fig.14 Schematically illustrates aspects of use according to exemplary embodiments;

[0043] Fig.15 schematically illustrates information according to an exemplary embodiment;

[0044] Fig.16 schematically illustrates information according to an exemplary embodiment;

[0045] Fig.17 Information according to an exemplary embodiment is schematically shown. DETAILED DESCRIPTION

[0046] See e.g. Figure 1 , Figure 2 , Figure 3 , the exemplary embodiment relates to a method for processing and communicating with a bus system 10 ( Figure 3 ) and / or transmitted via the bus system 10 ( Figure 3 ) a method for transmitting data associated with a data frame DR' transmitted by a computer, for example a computer-implemented method, comprising: for example, for an apparatus 20 ( Figure 3 ), providing 100( Figure 1 ) output data AD having a plurality of information elements IE-1, IE-2, ... ( Figure 2 ), for example in the form of a bit vector BV, wherein the first information element IE-1 ( Figure 2) has a length of 11 bits and represents the first identification information associated with the data frames DR and DR', wherein the second information element IE-2 in the plurality of information elements has a length of 18 bits and is designed to represent the optional second identification information associated with the data frames DR and DR'; and optionally uses 102( Figure 1 ) The output data. This enables, for example, in further exemplary embodiments, the output data AD to be provided flexibly, for example for (for example further) processing by the device 20 for performing cryptographic functions, for example for decrypting and / or checking the authenticity or integrity of data associated with the data frames DR, DR'.

[0047] like Figure 2 As shown, in a further exemplary embodiment, the output data AD can be formed, for example, based on a data frame DR' transmitted via the bus system 10 and received by the bus user 12b, for example by means of a device 200 for performing aspects according to the exemplary embodiment. The data frame DR' can be sent, for example, by the first bus user 12a, and can be received, for example, by one or more further bus users 12b, 12c, ...

[0048] In further exemplary embodiments, device 20 and / or device 200 may be integrated into bus user 12 b , for example.

[0049] In a further exemplary embodiment, the providing 100 may include, for example, writing the output data AD, for example in the form of a bit vector BV, into a memory to which the device 20 has at least read access, and / or transmitting, for example, via a data interface between the device 200 and the device 20. Optionally, in a further exemplary embodiment, a shared memory (“shared memory”) or a shared memory area may also be provided for providing 100 the output data AD, for example from the device 200 to the device 20.

[0050] In a further exemplary embodiment, the received data frame DR' can be stored, for example, at least temporarily, for example, intermediately, for example, in a receive buffer EP associated with the receiving bus user 12b. For example, in this way, the first identification information and / or the second identification information and / or any other information of the received data frame DR' can be stored at least temporarily.

[0051] like Figure 3 As shown, in a further exemplary embodiment, the output data AD can be formed, for example, based on the first and second identification information and optionally based on at least a portion of other possible information of the received data frame DR', which information can, for example, be at least temporarily stored in the receive buffer EP.

[0052] In a further exemplary embodiment, it is provided that the data frame DR is an LLC (Link Layer Control) data frame according to the CAN FD (Controller Area Network Flexible Data-rate) protocol, for example an LLC (Link Layer Control) data frame according to ISO 11898-1:2015.

[0053] In a further exemplary embodiment, the CAN FD LLC data frame DR may be derived, for example, from a data frame DR' as used in the CAN FD bus system 10 for transmission via the bus system 10. For example, compared to the data frame DR' used in the CAN FD bus system and associated, for example, with a deeper protocol layer, such as a MAC (Medium Access Control) layer, for example, layer 2a according to the ISO / OSI model, the CAN FD LLC data frame DR may have a subset thereof and / or other and / or additional information. For example, the CAN FD LLC data frame DR is associated with layer 2b of the ISO / OSI model.

[0054] like Figure 4 As shown, in another exemplary embodiment, it is provided that the method includes at least one of the following elements: a) For example, if the data frame DR', DR has a CAN FD basic data frame format, such as FDBF, such as a flexible data rate basic frame format, which has, for example, an 11-bit identifier, then a zero value, for example, in binary form "000000000000000000" or 000000000000000000 b Assigned to the second information element IE-2 ( Figure 2 ), b) if the data frame DR, DR' has a CAN FD extended data frame format, such as FDEF, such as a flexible data rate extended frame format, which has, for example, a 29-bit identifier, then a non-zero value, such as a non-zero binary value, is assigned 112 ( Figure 4 ) to the second information element IE-2, for example, allocated to the second information element IE-2 based on the identification extension of the data frames DR, DR'.

[0055] like Figure 5 As shown, in a further exemplary embodiment it is provided that: the method comprises at least one of the following elements: a) providing 120a a first information element IE-1 in the first 11 bits of the bit vector BV, for example from bit 0 to bit 10, b) providing 120b a third information element IE-3 having three bits in bit 11 to bit 13 of the bit vector BV, the third information element characterizing the format of the data frame DR, c) providing 120c a second information element IE-2 in bit 14 to bit 31 of the bit vector BV.

[0056] For example, Fig.15A first type of bit vector BV-A is schematically shown for this purpose, which can be used in further exemplary embodiments as an input vector V for the device 20, for example. A The bit vector BV-A has a plurality of data words each 32 bits wide, corresponding to Fig.15 The individual rows (Zeile) of the diagram (Schema) in . Fig.15 The numbers "0" . . . "31" in the upper area symbolize the individual bits of the corresponding data word.

[0057] according to Fig.15 The element e1 of the bit vector BV-A is symbolically represented, for example, according to Figure 5 The first information element IE-1, according to Fig.15 The element e2 of the bit vector BV-A is represented symbolically according to Figure 5 The third information element IE-3, and according to Fig.15 The element e3 of the bit vector BV-A is represented symbolically according to Figure 5 The second information element IE-2.

[0058] For example, Fig.16 A second type of bit vector BV-B is schematically shown for this purpose, which can be used in further exemplary embodiments as an input vector V for the device 20, for example. B . Similar to Fig.15 The bit vector BV-A and the bit vector BV-B have a plurality of data words, each of which is 32 bits wide. These data words correspond to Fig.16 . Fig.16 The numbers "0" .. "31" in the upper area symbolize the individual bits of the corresponding data word.

[0059] according to Fig.16 The element e30 of the bit vector BV-B is symbolically represented, for example, according to Figure 5 The first information element IE-1, according to Fig.16 The element e31 of the bit vector BV-B is symbolically represented, for example, according to Figure 5 The third information element IE-3, and according to Fig.16 The element e32 of the bit vector BV-B is symbolically represented, for example, according to Figure 5 Therefore, according to Fig.15 , 16 The structures of the corresponding first data words of the two bit vectors BV-A, BV-B are identical.

[0060] like Figure 6As shown, in a further exemplary embodiment it is provided that the method comprises at least one of the following elements: a) providing 122a fill data e4 ( Fig.15 ), such as padding data, for example, see Fig.15 BV-A, b) provides 122b (for example, in bit 33 to bit 42 of bit vector BV Figure 6 ) Information element e5 characterizing the length of the data bytes of the data frame DR, for example the DLC, i.e. the data length code, of the information element e5, for example see Fig.15 bit vector BV-A, c) for example provides 122c in bit 43 of bit vector BV ( Figure 6 ) characterizes, for example, an information element e6 for data rate switching within a data frame DR, such as a BRS of information element e6, i.e., a bit rate switching, for example, see Fig.15 The bit vector BV-A, d) provides 122d in bits 44 to 63 of the bit vector BV ( Figure 6 ) fill in data e7, for example, see Fig.15 The bit vector BV-A.

[0061] like Figure 7 As shown, in a further exemplary embodiment it is provided that the method comprises at least one of the following elements: a) providing 124a, for example in bit 32 of the bit vector BV-B, an information element e33 characterizing, for example, a data rate switch within a data frame DR, for example a BRS of the information element e33, i.e. a bit rate switch, see Fig.16 , b) providing 124b, for example, in bit 33 to bit 36 ​​of bit vector BV-B ( Figure 7 ) an information element e34 characterizing the length of the data bytes of the data frame DR, for example the DLC, i.e. the data length code, of the information element e34, c) providing 124c in bits 37 to 63 of the bit vector BV-B ( Figure 7 ) to fill in the data.

[0062] For example, Fig.17 A third type of bit vector BV-C is schematically shown, which can be used in further exemplary embodiments, for example, as an input vector V for the device 20. C The bit vector BV-C is related to Fig.15 The bit vector BV-A of Fig.17 . Fig.17 The numbers "0" .. "31" in the upper area symbolize the individual bits of the corresponding data word.

[0063] like Figure 8As shown, in a further exemplary embodiment it is provided that the method comprises at least one of the following elements: a) in the first 11 bits of the bit vector BV-C, for example from bit 0 to bit 10, providing 126a a first information element IE-1, see Fig.17 The symbol e50,b) provides 126b in bits 11 to 13 of the bit vector BV-C ( Figure 8 ) A third information element IE-3 having three bits, wherein the third information element represents the format of the data frame DR, see Fig.17 The symbol e51,c) provides 126c in bits 46 to 63 of bit vector BV-C ( Figure 8 ) The second information element IE-2, see Fig.17 The symbol is e57.

[0064] like Fig. 9 As shown, in another exemplary embodiment, it is provided that the method includes at least one of the following elements: a) providing 128a filling data e52 in bit 14 to bit 30 of the bit vector BV-C, b) providing 128b ( Fig. 9 ) information elements e53, e54 characterizing the length of the data bytes of the data frame DR, for example the DLC, i.e. the data length code, of the information element, c) providing 128c ( Fig. 9 ) characterizes, for example, an information element e55 of a data rate switch within a data frame DR, for example, an information element BRS, i.e., a bit rate switch, d) provides 128d( Fig. 9 ) to fill in the data.

[0065] like Fig.10 As shown, in a further exemplary embodiment it is provided that the method comprises at least one of the following elements: a) in bit 64 to bit 95 of the bit vector BV-A, BV-B, BV-C, for example in the third 32-bit data word of the bit vector BV-A, BV-B, BV-C, providing 130a, for example, 32-bit filling data, for example, see from Fig.15 Elements of E8 and / or from Fig.16 Elements of e36 and / or from Fig.17 The element e58,b) provides 130b( Fig.10 ) has, for example, 27 bits of padding data, wherein b1): the 27 bits of padding data, for example, extend from bit 32 to bit 38 and from bit 44 to bit 63 (see according to Fig.15 Elements e4 and e7), or wherein b2): for example, 27 bits of padding data extending from bit 37 to bit 63, (see according to Fig.16Element e35), or wherein b3): for example, 27 bits of padding data, for example, extending from bit 14 to bit 30 and from bit 36 ​​to bit 45 (see according to Fig.17 elements e52 and e56).

[0066] like Fig.11 As shown, in a further exemplary embodiment it is provided that the method comprises: for example, starting from bit 64 or bit 96 of the bit vector, providing 140 one or more information elements IE-SP-DR for a security protocol, for example associated with the data frame DR, the security protocol being, for example, a security protocol of the CANsec type, for example according to the specification CiA (CAN in Automation), 613-2, see, for example Fig.15 Elements e9, e10, e11, e12, e13, e14, e15, e16, e17 and / or Fig.16 Elements e37, e38, ..., e45 and / or Fig.17 Elements e59, e60, ..., e67 in .

[0067] In another exemplary embodiment, the data associated with the security protocol may be, for example, provided by the device 20 ( Figure 3 )deal with.

[0068] like Fig.11 As shown, in another exemplary embodiment, it is provided that: the method includes: for example, according to Fig.15 A checksum ICV, for example an ICV (ie integrity check value) type checksum, is provided 142 at the end of the bit vector BV-A, see elements e19, e20, and / or in accordance with Fig.16 A checksum ICV, for example an ICV (ie integrity check value) type checksum, is provided 142 at the end of the bit vector BV-B, see elements e47, e48, and / or in accordance with Fig.17 A checksum ICV, for example an ICV (ie integrity check value) type checksum, is provided 142 at the end of the bit vector BV-C, see elements e69, e70.

[0069] For example, the bit vector BV and / or BV-A and / or BV-B and / or BV-C has a length of, for example, 24 bytes to, for example, 100 bytes, and the checksum ICV information may, for example, occupy the last bytes, for example, the last 4 bytes or 8 bytes or 12 bytes or 16 bytes.

[0070] In another exemplary embodiment, according to Fig.15In the bit vector BV-A, useful data (e.g., up to 64 bytes) can be arranged in one or more data words between element e17 (e.g., representing an optional "freshness" value) and element e19, see, for example, elements e18a, e18b.

[0071] In another exemplary embodiment, according to Fig.16 In the bit vector BV-B, useful data (e.g., up to 64 bytes) can be arranged in one or more data words between element e45 (e.g., representing an optional "freshness" value) and element e47, see, for example, elements e46a, e46b.

[0072] In another exemplary embodiment, according to Fig.17 In the bit vector BV-C, useful data (e.g., up to 64 bytes) can be arranged in one or more data words between element e67 (e.g., representing an optional "freshness" value) and element e69, see, for example, elements e68a, e68b.

[0073] like Fig.12 As shown, in a further exemplary embodiment it is provided that the method comprises: intercepting 150 a checksum ICV of, for example, the ICV type, wherein, for example, the intercepted checksum ICV' is obtained; and optionally providing 152 the intercepted checksum ICV', for example at the end of the bit vector BV-A, see, for example, according to Fig.15 Elements e19, e20 of the bit vector BV-B, and / or providing 152 a truncated checksum ICV' at the end of the bit vector BV-B, see for example according to Fig.16 Elements e47, e48 of the bit vector BV-C, and / or providing 152 a truncated checksum ICV' at the end of the bit vector BV-C, see for example according to Fig.17 Elements e69 and e70.

[0074] like Fig.12 As shown, in another exemplary embodiment, it is provided that: truncating 150 the checksum ICV includes: truncating 150a the checksum ICV to a length that is an integer multiple of 8 bits, for example, truncating it to a length of 32 bits, 40 bits, 48 ​​bits, 56 bits, 64 bits, etc.

[0075] like Fig.13 As shown, a further exemplary embodiment relates to a device 200 for executing the method according to the described embodiment. For example, the device 200 or its functions can be integrated into at least one bus user 12b ( Figure 3 )middle.

[0076] like Fig.13As shown, in a further exemplary embodiment it is provided that the apparatus 200 comprises: a computing device ("computer") 202 having at least one computing core, a storage device 204 assigned to the computing device 202, which is used to at least temporarily store at least one of the following elements: a) data DAT (e.g. data associated with the one or more data frames DR, DR' and / or data representing a bit vector BV or BV-A, or BV-B or BV-C), b) a computer program PRG, which is used, for example, to execute a method according to the described embodiment.

[0077] In further exemplary embodiments, the storage device 204 includes volatile memory (e.g., random access memory (RAM)) 204a, and / or non-volatile (NVM) memory (e.g., flash EEPROM) 204b, or a combination thereof or with other memory types not explicitly mentioned.

[0078] Further exemplary embodiments relate to a computer-readable storage medium SM comprising instructions PRG′ which, when executed by a computer 202 , cause the computer 202 to perform a method according to the described embodiments.

[0079] Further exemplary embodiments relate to a computer program PRG comprising instructions which, when executed by a computer 202 , cause the computer 202 to carry out a method according to the described embodiments.

[0080] Further exemplary embodiments relate to a data carrier signal DCS transmitting and / or characterizing a computer program PRG according to the described embodiments. The data carrier signal DCS can be received, for example, via the optional data interface 206 of the device 200. For example, data frames DR', DR can also be transmitted (can be sent and / or received) via the optional data interface 206.

[0081] like Fig.13 As shown, in another exemplary embodiment, the apparatus 200 or its functions are implemented as a hardware circuit, such as a pure hardware circuit.

[0082] In another exemplary embodiment, the apparatus 200 is designed to access the receiving buffer EP ( Figure 3 ) and reads therefrom, for example, information or data associated with a data frame DR' received via the bus system 10 and / or with information or data associated with, for example, a CAN FD LLC data frame which can be derived therefrom, and converts it, for example, into output data according to an exemplary embodiment, i.e., for example, into a bit vector BV of the type mentioned above, such as BV-A and / or BV-B, and / or BV-C.

[0083] like Figure 3As shown, further exemplary embodiments relate to a bus user 12b for a bus system 10 (e.g., of the CAN FD type), which has at least one device 200 according to the described embodiment. In further exemplary embodiments, the bus user 12b can be designed, for example, to selectively process data frames of the CAN FD type and data frames of the CAN XL type.

[0084] like Figure 3 As shown, further exemplary embodiments relate to a bus system 10 , for example a bus system 10 of the CAN FD type, having at least one device 200 according to the described embodiments and / or having at least one bus user 12 b.

[0085] The principle according to the exemplary embodiment enables the information of the received data frames DR′, DR to be converted (eg transformed) into a bit vector BV, which can be supplied as input data (eg input vector) to the device 20, for example.

[0086] The principle of the exemplary embodiment enables an optimized structure of the bit vector BV, for example with regard to the processing of data or information of the bit vector BV by the device 20, for example formatting, wherein in other exemplary embodiments, for example different variants BV-A ( Fig.15 )、BV-B( Fig.16 )、BV-C( Fig.17 ) is possible.

[0087] For example, in another exemplary embodiment, the apparatus 200 may be designed to selectively receive data in the format BV-A ( Fig.15 )、BV-B( Fig.16 )、BV-C( Fig.17 ) at least one of which outputs a bit vector BV( Fig.17 ).

[0088] Optional truncation of checksum ICV 150, 150a (see Fig.12 ) increases flexibility in alternative implementations.

[0089] The principle according to the exemplary embodiments enables efficient use of the CANsec protocol, for example with CAN FD-compatible bus users or bus systems, for example by using CAN FD data frames, for example CAN FD LLC data frames.

[0090] The principles according to the exemplary embodiments make it possible, for example, to implement a unified architecture of components and, for example, also to reduce the code size of computer programs PRG, PRG' for processing data associated with the CANsec protocol, for example, regardless of whether CAN FD and / or CAN XL is used, thereby, for example, also reducing the possibility of attacks on the implementation of the device 200.

[0091] According to the principle of the exemplary embodiment, efficient “handling”, for example processing, of CAN FD data frames, for example, with an 11-bit identifier (“base ID”) and CAN FD data frames with a 29-bit identifier (“extended ID”) is achieved.

[0092] For example, if bus user 12b ( Figure 3 ) should only be used to process CAN FD data frames (and not, for example, for processing CAN XL data frames), existing hardware acceleration that may be used to process the CANsec protocol can also be effectively utilized by using the bit vectors BV, BV-A, BV-B, BV-C.

[0093] like Fig.14 As shown, further exemplary embodiments relate to the use of the method according to the embodiment and / or the device 200 according to the embodiment and / or the bus user 12b according to the embodiment and / or the computer-readable storage medium SM according to the embodiment and / or the computer program PRG, PRG' according to the embodiment and / or the data carrier signal DCS according to the embodiment for at least one of the following elements: a) for a device 20 for performing a cryptographic function (e.g. a "crypto-engine"), providing 301 output data AD having a plurality of information elements IE-1, IE-2, ..., for example in the form of bit vectors BV, BV-A, BV-B, BV-C, b) implementing 302 efficient use of the CANsec protocol for CANFD, c) optimizing 303 the data format of the input vector of the device 20 for performing the cryptographic function, d) for example for CANFD, implementing 304 a checksum truncation 150, for example truncation to a length less than 64 bits, e) selectively for CAN FD and / or CANXL and implement 305, for example, effectively use the CANsec protocol, f) implement 306, for example, effectively handle different CAN FD identifier lengths, for example, 11 bits and 29 bits of identifier lengths, g) convert 307, for example, flexibly convert data associated with the data frame into at least one input bit vector BV, BV-A, BV-B, BV-C of the device 20 for performing the cryptographic function.

Claims

1. A method, for example a computer-implemented method, for processing data associated with a data frame (DR') transmittable by and / or transmitted via a bus system (10), the method comprising: For example, for a device (20) for performing a cryptographic function, output data (AD) having multiple information elements is provided (100), for example in the form of a bit vector (BV; BV-A; BV-B; BV-C), wherein a first information element (IE-1) of the multiple information elements has a length of 11 bits and represents first identification information associated with a data frame (DR), wherein a second information element (IE-2) of the multiple information elements has a length of 18 bits and is designed to represent optional second identification information associated with the data frame (DR); and the output data (AD) is optionally used (102).

2. The method according to claim 1, wherein the data frame (DR) is an LLC, i.e., Link Layer Control Data Frame according to CAN FD, i.e., Controller Area Network Flexible Data Rate protocol, for example an LLC, i.e., Link Layer Control Data Frame according to ISO 11898-1:2015.

3. The method according to at least one of the preceding claims, comprising at least one of the following elements: a) assigning (110) a zero value, for example "000000000000000000", in binary, to the second information element (IE-2), for example if the data frame (DR) has a CAN FD basic data frame format, for example FDBF, for example a flexible data rate basic frame format, which has, for example, an 11-bit identification, b) assigning (112) a non-zero value, for example a non-zero binary value, to the second information element (IE-2), for example based on an identification extension of the data frame (DR), for example if the data frame (DR') has a CAN FD extended data frame format, for example FDEF, for example a flexible data rate extended frame format, which has, for example, a 29-bit identification.

4. Method according to at least one of the preceding claims, comprising at least one of the following elements: a) providing (120a) the first information element (IE-1; e1; e30; e50) in the first 11 bits of the bit vector (BV; BV-A; BV-B; BV-C), for example from bit 0 to bit 10, b) providing (120b) a third information element (IE-3; e2; e31; e51) with three bits in bit 11 to bit 13 of the bit vector (BV; BV-A; BV-B; BV-C), the third information element characterizing the format of the data frame (DR), c) providing (120c) the second information element (IE-1; e3; e32) in bit 14 to bit 31 of the bit vector (BV; BV-A; BV-B).

5. The method according to at least one of the preceding claims, comprising at least one of the following elements: a) providing (122a) filling data (e4) in bits 32 to 38 of the bit vector (BV; BV-A), b) providing (122b) an information element (e5) characterizing the length of the data bytes of the data frame (DR), for example a DLC, i.e. a data length code, of the information element (e5), for example in bits 33 to 42 of the bit vector (BV; BV-A), c) providing (122c) an information element (e6) characterizing, for example, a data rate switch within the data frame (DR), for example a BRS, i.e. a bit rate switch, of the information element (e6), for example in bits 43 of the bit vector (BV; BV-A), d) providing (122d) filling data (e7) in bits 44 to 63 of the bit vector (BV; BV-A).

6. A method according to at least one of the preceding claims, comprising at least one of the following elements: a) providing (124a) an information element (e33) characterizing, for example, a data rate switch within the data frame (DR), for example a BRS, i.e. a bit rate switch, of the information element (e33), for example in bit 32 of the bit vector (BV; BV-B), b) providing (124b) an information element (e34) characterizing the length of the data bytes of the data frame (DR), for example a DLC, i.e. a data length code, of the information element (e34), for example in bits 33 to 36 of the bit vector (BV; BV-B), c) providing (124c) padding data (e35) in bits 37 to 63 of the bit vector (BV; BV-B).

7. Method according to at least one of the preceding claims, comprising at least one of the following elements: a) providing (126a) the first information element (IE-1; e50) in the first 11 bits of the bit vector (BV; BV-C), for example from bit 0 to bit 10, b) providing (126b) a third information element (IE-3; e51) with three bits in bit 11 to bit 13 of the bit vector (BV; BV-C), the third information element characterizing the format of the data frame (DR), c) providing (126c) the second information element (IE-1; e57) in bit 46 to bit 63 of the bit vector (BV; BV-C).

8. The method according to claim 7, comprising at least one of the following elements: a) providing (128a) padding data (e52) in bits 14 to 30 of the bit vector (BV; BV-C), b) providing (128b) an information element (e53, e54) characterizing the length of the data bytes of the data frame (DR), for example in bits 31 to 34 of the bit vector (BV; BV-C), for example a DLC, i.e. a data length code, of the information element (e53, e54), c) providing (128c) an information element (e55) characterizing, for example, a data rate switch within the data frame (DR), for example a BRS, i.e. a bit rate switch, of the information element (e55), for example in bit 35 of the bit vector (BV; BV-C), d) providing (128d) padding data (e56) in bits 36 to 45 of the bit vector (BV; BV-C).

9. A method according to at least one of the preceding claims, comprising at least one of the following elements: a) providing (130a) for example 32-bit filling data (e8; e36; e58) in bits 64 to 95 of the bit vector (BV; BV-A; BV-B; BV-C), for example in the third 32-bit data word of the bit vector (BV; BV-A; BV-B; BV-C), b) providing (130b) for example 27-bit filling data (FD-27), wherein b1): the for example 27-bit filling data extends, for example, from bit 32 to bit 38 and from bit 44 to bit 63, or wherein b2): the for example 27-bit filling data extends, for example, from bit 37 to bit 63, or wherein b3): the for example 27-bit filling data extends, for example, from bit 14 to bit 30 and from bit 36 ​​to bit 45.

10. The method according to at least one of the preceding claims, comprising: For example, starting from bit 64 or bit 96 of the bit vector (BV; BV-A, BV-B, BV-C), one or more information elements (IE-SP-DR; e9, e10, e11, e12, e13, e14, e15, e16, e17; e37, e38, e39, e40, e41, e42, e43, e44, e45; e59, e60, e61, e62, e63, e64, e65, e66, e67) are provided (140) for a security protocol, for example, associated with the data frame (DR), the security protocol being, for example, a CANsec type security protocol, for example according to specification CiA, i.e. CAN in Automation, 613-2.

11. The method according to at least one of the preceding claims, comprising: For example, at the end of the bit vector (BV; BV-A, BV-B, BV-C) a checksum (ICV) is provided (142), for example a checksum of the ICV, ie integrity check value type.

12. The method according to at least one of the preceding claims, comprising: A checksum (ICV), e.g. of the ICV, i.e. integrity check value type, is truncated (150), wherein, e.g., a truncated checksum (ICV') is obtained; and optionally, the truncated checksum (ICV') is provided (152), e.g., at the end of said bit vector (BV; BV-A, BV-B, BV-C).

13. The method of claim 12, wherein said intercepting (150) comprises: The checksum (ICV) is truncated (150a) to a length that is an integer multiple of 8 bits, for example, to a length of 32 bits, 40 bits, 48 ​​bits, 56 bits, 64 bits, etc.

14. Apparatus (200) for carrying out the method according to at least one of the preceding claims.

15. A bus user (12a, 12b, 12c, . . . ) for a bus system (10), for example of the CAN FD type, comprising at least one device (200) according to claim 14.

16. Computer-readable storage medium (SM) comprising instructions (PRG) which, when executed by a computer (202), cause the computer to perform the method according to at least one of claims 1 to 13.

17. Computer program (PRG) comprising instructions which, when said program (PRG) is executed by a computer (202), cause said computer to carry out the method according to at least one of claims 1 to 13.

18. Data carrier signal (DCS) transmitting and / or representing a computer program (PRG) according to claim 17.

19. Use (300) of the method according to at least one of claims 1 to 13 and / or the device (200) according to claim 14 and / or the bus user (12a, 12b, 12c, ...) according to claim 15 and / or the computer-readable storage medium (SM) according to claim 16 and / or the computer program (PRG) according to claim 17 and / or the data carrier signal (DCS) according to claim 18 for at least one of the following elements: a) for a device (20) for performing a cryptographic function, providing (301) output data (AD) having a plurality of information elements, for example in the form of a bit vector (BV; BV-A; BV-B; BV-C), b) realizing (302) for CAN c) optimizing (303) the data format of an input vector (BV-A; BV-B; BC-C) of a device (20) for performing cryptographic functions, d) implementing (304) truncation of a checksum (150), for example to a length less than 64 bits, for example for CAN FD, e) selectively implementing (305) for example efficient use of the CANsec protocol for CAN FD and / or CAN XL, f) implementing (306) for example efficient processing of different CAN FD identifier lengths, for example, identifier lengths of 11 bits and 29 bits, g) converting (307), for example flexibly converting, data associated with the data frame (DR) into at least one input bit vector of a device (20) for performing cryptographic functions.