METHODS AND DEVICES FOR SECURE DATA COMMUNICATION

20220337396 · 2022-10-20

    Inventors

    Cpc classification

    International classification

    Abstract

    Devices and methods of data communication between a first electronic device and a second electronic device arc disclosed. The disclosed methods optionally comprises obtaining, at the first electronic device a base key having a length of N bits: determining, at the first electronic device, a first updated key based on the base key. vv herein t lie first updated key lias a length of at least N i M bits, is larger than 4. and wherein determining tlic first updated key comprises performing a cryptographic operation, such as a hash function, at least 2M times; and encrypting, at the first electronic dev ice. data with the first updated key for prov ision of cipher data.

    Claims

    1. A method of data communication between a first electronic device and a second electronic device, the method comprising: obtaining, at the first electronic device, a base key having a length of N bits; determining, at the first electronic device, a first updated key based on the base key, wherein the first updated key has a length of at least N+M bits, M is larger than 4, and wherein determining the first updated key comprises performing a cryptographic operation at least 2.sup.M times; and encrypting, at the first electronic device, data with the first updated key for provision of cipher data.

    2. Method according to claim 1, wherein the cryptographic operation is or comprises a hash function, and wherein N is at least 64 and M is at least 10.

    3. Method according to claim 1, wherein determining the first updated key comprises performing a nested hash function at least 2.sup.M times.

    4. Method according to claim 1, wherein encrypting data with the first updated key comprises performing a first encryption scheme on the data based on a first part of the first updated key for provision of a first output and performing a second encryption scheme on the first output based on a second part of the first updated key for provision of cipher data.

    5. Method according to claim 4, wherein the first part of the first updated key has a first key part length of at least 64 bits and the second part of the first updated key has a second key part length of at least 10 bits.

    6. Method according to claim 4, wherein the first encryption scheme is the Advanced Encryption Standard (AES).

    7. Method according to claim 4, wherein the second encryption scheme is different from the first encryption scheme.

    8. Method according to claim 1, wherein the first updated key is based on an index function used as input to the hash function.

    9. Method according to claim 1, wherein obtaining a base key having a length of N bits comprises Diffie-Hellman key exchange between the first electronic device and the second electronic device.

    10. Method according to claim 1, the method comprising transmitting, at the first electronic device, the cipher data to the second electronic device.

    11. Method according to claim 10, the method comprising: obtaining, at the second electronic device, the cipher data; obtaining, at the second electronic device, the base key having a length of N bits; determining, at the second electronic device, a second updated key based on the base key, wherein the second updated key has a length of at least N+M bits, M is larger than 4, and wherein determining the second updated key comprises performing a cryptographic operation at least 2.sup.M times; and decrypting, at the second electronic device, the cipher data with the second updated key for provision of decrypted data.

    12. Method according to claim 11, wherein decrypting the cipher data with the second updated key comprises performing a second decryption scheme on the cipher data based on a second part of the second updated key for provision of a second output and performing a first decryption scheme on the second output based on a first part of the second updated key for provision of decrypted data.

    13. Method according to claim 12, wherein the first part of the second updated key has a first key part length of at least 64 bits and the second part of the second updated key has a second key part length of at least 10 bits.

    14. An electronic device comprising a processor, memory, and an interface, wherein the processor is configured to: obtain a base key having a length of N bits; determine a first updated key based on the base key, wherein the first updated key has a length of at least N+M bits, M is larger than 4, and wherein determining the first updated key comprises performing a cryptographic operation at least 2.sup.M times; and encrypt data with the first updated key for provision of cipher data.

    15. An electronic device comprising a processor, memory, and an interface, wherein the processor is configured to: obtain cipher data; obtain a base key having a length of N bits; determine a second updated key based on the base key, wherein the second updated key has a length of at least N+M bits, M is larger than 4, and wherein determining the second updated key comprises performing a cryptographic operation at least 2.sup.M times; and decrypt the cipher data with the second updated key for provision of decrypted data.

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0012] The above and other features and advantages of the present invention will become readily apparent to those skilled in the art by the following detailed description of exemplary embodiments thereof with reference to the attached drawings, in which:

    [0013] FIG. 1 shows an exemplary communication system,

    [0014] FIG. 2 is a flow chart of an exemplary method,

    [0015] FIG. 3 is a flow chart of an exemplary method, and

    [0016] FIG. 4 illustrates signaling between a first electronic device and a second electronic device.

    DETAILED DESCRIPTION

    [0017] Various exemplary embodiments and details are described hereinafter, with reference to the figures when relevant. It should be noted that the figures may or may not be drawn to scale and that elements of similar structures or functions are represented by like reference numerals throughout the figures. It should also be noted that the figures are only intended to facilitate the description of the embodiments. They are not intended as an exhaustive description of the invention or as a limitation on the scope of the invention. In addition, an illustrated embodiment needs not have all the aspects or advantages shown. An aspect or an advantage described in conjunction with a particular embodiment is not necessarily limited to that embodiment and can be practiced in any other embodiments even if not so illustrated, or if not so explicitly described.

    [0018] A method of data communication between a first electronic device and a second electronic device is disclosed.

    [0019] The first electronic device may be referred to as the transmitting device. The first electronic device may be configured as a transmitting device and/or a receiving device. The first electronic device may be a portable device, such as a smartphone, a tablet, or a laptop computer. The first electronic device may be a server device. The first electronic device comprises a processor, memory, and an interface.

    [0020] The second electronic device may be referred to as the receiving device. The second electronic device may be configured as a transmitting device and/or a receiving device.

    [0021] The second electronic device may be a portable device, such as a smartphone, a tablet, or a laptop computer. The second electronic device may be a server device. The second electronic device comprises a processor, memory, and an interface.

    [0022] The method of data communication between a first electronic device and a second electronic device comprises obtaining, at the first electronic device, a base key also denoted K_B having a length of N bits. In other words, the base key is an N-bit key. The base key may be a 64 bit-key, a 128 bit-key, a 192 bit-key, a 256 bit-key, or a 512 bit-key. Accordingly, the number N of bits in the base key may be larger than 20, such as larger than 50, e.g. in the range from 100 to 500. In one or more exemplary methods/devices, N is at least 64 bits.

    [0023] The method of data communication between a first electronic device and a second electronic device comprises determining, at the first electronic device, a first updated key also denoted K_1 based on the base key. The first updated key K_1 has a length of at least N+M bits. M is optionally larger than four (4). In one or more exemplary methods and/or (first) electronic devices, M is at least 10, such as 16, 32, 64, 128, 192, or 256. Even larger numbers of M may be used. The first updated key K_1 may have a length of 128, 192, 256, 384, or 512 bits. In one or more exemplary methods and/or (first) electronic devices, the first updated key K_1 has a length of at least 256 bits, such as at least 300 bits. In one or more exemplary methods and/or exemplary (first) electronic devices, M being in the range from 10 to 20, such as in the range from 12 to 18, e.g. 16, has proven to provide an effective increase in the security level while still allowing the cryptographic operations to be performed within an acceptable time frame, such as in less than 1 or 2 seconds. Accordingly, M may be in the range from 10 to 24, such as in the range from 12 to 20, e.g. 16.

    [0024] In the method and/or in the (first) electronic device, determining the first updated key K_1 optionally comprises performing a key-boosting function, such as non-trivial function, and/or a cryptographic operation, such as a hash function and/or an encryption function, at least 2.sup.M times. A combination of hash function and encryption function may be used. In other words, performing a cryptographic operation at least 2.sup.M may comprise performing a hash function at least 2.sup.M-j times and/or performing an encryption function at least 2.sup.j times, where j is an integer such as 1, 2, 3 or more.

    [0025] In the present context, a non-trivial function is a mathematical function that is computationally non-trivial and requires a certain minimum number of operations. Further, the non-trivial function optionally is non-collapsible, i.e. if it takes f operations to do one evaluation of F, it must take about f*2.sup.M operations to compute F{circumflex over ( )}2.sup.M, i.e. iterate F 2.sup.M times. Examples of non-trivial and non-collapsible functions are strong encryption algorithms, such as Serpent and AES, as well as strong hash functions, such as SHA-512 or SHA-3.

    [0026] In the method and/or in the (first) electronic device, determining the first updated key K_1 optionally comprises iterating a key boosting function F at least 2.sup.M times, i.e. K_1=F{circumflex over ( )}2.sup.M=F{circumflex over ( )}2.sup.M(K_B)=F(F(F(F( . . . F(F(K_B)))) . . . ) (2.sup.M times).

    [0027] The key-boosting function may be a hash function, such as a SHA-2 hash function, e.g. SHA-256, SHA-384, or SHA-512. The key-boosting function may be SHA-3.

    [0028] The hash function may be a SHA-2 hash function, e.g. SHA-256, SHA-384, or SHA-512. The hash function may be SHA-3.

    [0029] In the method and/or in the (first) electronic device, determining the first updated key K_1 optionally comprises performing a hash function at least 2.sup.M times, such as at least 16 times (M=4). In one or more exemplary methods and/or (first) electronic devices, determining the first updated key comprises performing a nested hash function at least 2.sup.M times. In other words, the hash function may be iterated at least 2.sup.M times.

    [0030] In one or more exemplary methods and/or exemplary (first) electronic devices, determining the first updated key K_1 comprises: [0031] 1: i=0 and K_I=K_B [0032] 2: K_I=H(K_I) [0033] 3: i=i+1 [0034] 4: if i<2.sup.M then go to 2: else K_1=K_I,

    [0035] where i and M are integers, K_I is an intermediate key, K_B is the base key, H is a hash function, such as SHA-512, and K_1 is the first updated key.

    [0036] In one or more exemplary methods and/or exemplary (first) electronic devices, determining the first updated key K_1 comprises: [0037] 1: i=0 and K_I=K_B [0038] 2: K_I=F(K_I) [0039] 3: i=i+1 [0040] 4: if i<2.sup.M then go to 2: else K_1=K_I,

    [0041] where i and M are integers, K_I is an intermediate key, K_B is the base key, F is constructed from AES, e.g. AES in CBC mode, and K_1 is the first updated key.

    [0042] The method of data communication between a first electronic device and a second electronic device comprises encrypting, at the first electronic device, data with the first updated key for provision of cipher data.

    [0043] In one or more exemplary methods and/or (first) electronic devices, encrypting data with the first updated key comprises performing a first encryption scheme on the data, e.g. based on a first part and/or a second part of the first updated key, for provision of a first output. In other words, the first part and/or the second part of the first updated key may be used in a first encryption scheme, e.g. 256-bit AES encryption, for provision of a first output. In other words, 256 bits of the first updated key may be the first part of the first updated key and be used in AES 256-bit encryption as the first encryption scheme.

    [0044] In one or more exemplary methods and/or (first) electronic devices, encrypting data with the first updated key comprises performing a second encryption scheme on the first output, e.g. based on first part and/or second part of the first updated key, for provision of encrypted data. In other words, the second part of the first updated key may be used in a second encryption scheme for provision of encrypted data/cipher data. The second encryption scheme may be based on one or more S-boxes, such as at least 8 S-boxes. One or more S-boxes of an exemplary second encryption scheme may be based on the second part of the first updated key.

    [0045] In one or more exemplary methods and/or (first) electronic devices, the first part of the first updated key has a first key part length (N_1_1) of at least 64 bits, such as 128 bits, 192 bits, or 256 bits. Thus, the first key part length N_1_1 may be in the range from 100 bits to 500 bits.

    [0046] In one or more exemplary methods and/or (first) electronic devices, the second part of the first updated key has a second key part length (M_1_2) of at least 10 bits, such as 16, 32, 64, 128, 192, or 256 bits. Thus, the second key part length M_1_2 may be in the range from 10 bits to 500 bits.

    [0047] In one or more exemplary methods and/or (first) electronic devices, the first encryption scheme is the Advanced Encryption Standard (AES). The second encryption scheme may be different from the first encryption scheme.

    [0048] In one or more exemplary methods and/or (first) electronic devices, the first updated key is based on an index function or an index used as input to the hash function. Thereby cyclic effects in the cryptographic operation, such as the hash function, may be avoided.

    [0049] In one or more exemplary methods and/or exemplary (first) electronic devices, determining the first updated key K_1 comprises adding K bits to the base key prior to performing the key-boosting function/cryptographic operation. The number K of additional bits may be equal to or larger than M. In one or more exemplary methods and/or exemplary (first) electronic devices, the number K of additional bits may be 16, 32, 64, 128, 192, or 256 bits. In one or more exemplary methods and/or exemplary (first) electronic devices, the additional K bits may be preset to e.g. “0” or “1”. In one or more exemplary methods and/or exemplary (first) electronic devices, the value of the K bits may be selected from a look-up table or based on a key agreement protocol (also known to the second electronic device). In one or more exemplary methods and/or exemplary (first) electronic devices, the K bits may be based on a secondary Diffie-Hellman key exchange between the first electronic device and the second electronic device.

    [0050] For example, in one or more exemplary methods and/or exemplary (first) electronic devices, determining the first updated key K_1 comprises: [0051] 1: i=0 and K_I=K_B [0052] 2: K_I=H(K_I+i) [0053] 3: i=i+1 [0054] 4: if i<2.sup.M then go to 2: else K_1=K_I,

    [0055] where i and M are integers, K_I is an intermediate key, K_B is the base key, H is a hash function, and K_1 is the first updated key. In other words, the hash function H, and therefore the first updated key K_1 is based on the index function i.

    [0056] In one or more exemplary methods and/or (first) electronic devices, obtaining a base key having a length of N bits comprises key exchange between the first electronic device and the second electronic device, such as Diffie-Hellman key exchange between the first electronic device and the second electronic device. In other words, the base key may be a Diffie-Hellman key. Other key exchange methods may be employed.

    [0057] In one or more exemplary methods and/or (first) electronic devices, the method comprises transmitting, at the first electronic device, the cipher data, e.g. to the second electronic device. In one or more exemplary methods and/or (first) electronic devices, the method comprises storing the cipher data in the memory of the first electronic device.

    [0058] In one or more exemplary methods, the method comprises obtaining, e.g. at the second electronic device, the cipher data; obtaining, e.g. at the second electronic device, the base key having a length of N bits; determining, e.g. at the second electronic device, a second updated key based on the base key; and decrypting, e.g. at the second electronic device, the cipher data with and/or based on the second updated key for provision of decrypted data.

    [0059] The second updated key has a length of at least N+M bits. M is optionally larger than four (4). In one or more exemplary methods and/or (second) electronic devices, M is at least 10, such as 16, 32, 64, 128, 192, or 256. Even larger numbers of M may be used. The second updated key K_2 may have a length of 128, 192, 256, 384, or 512 bits. In one or more exemplary methods and/or (second) electronic devices, the second updated key K_2 has a length of at least 256 bits, such as at least 300 bits.

    [0060] In the method and/or in the (second) electronic device, determining/to determine the second updated key optionally comprises performing a key-boosting function, such as non-trivial function, and/or a cryptographic operation, such as a hash function and/or an encryption function, at least 2.sup.M times. A combination of hash function and encryption function may be used. In other words, performing a cryptographic operation at least 2.sup.M times may comprise performing a hash function at least 2.sup.M-j times and/or performing an encryption function at least 2.sup.j times, where j is an integer such as 1, 2, 3 or more. In one or more exemplary methods and/or exemplary (second) electronic devices, M being in the range from 10 to 20, such as in the range from 12 to 18, e.g. 16, has proven to provide an effective increase in the security level while still allowing the cryptographic operations to be performed within an acceptable time frame, such as in less than 1 or 2 seconds. Accordingly, M may be in the range from 10 to 24, such as in the range from 12 to 20, e.g.

    [0061] 16.

    [0062] In the method and/or in the (second) electronic device, determining the second updated key K_2 optionally comprises iterating a key boosting function F at least 2.sup.M times, i.e. K_1=F{circumflex over ( )}2.sup.M=F{circumflex over ( )}2.sup.M(KB)=F(F(F(F( . . . F(F(K_B)))) . . . ) (2.sup.M times). The key-boosting function may be a SHA-2 hash function, e.g. SHA-256, SHA-384, or SHA-512. The key-boosting function may be SHA-3.

    [0063] In the method and/or in the (second) electronic device, determining the second updated key optionally comprises performing a cryptographic operation, such as a hash function and/or an encryption function, at least 2.sup.M times, such as at least 16 times (M=4). In one or more exemplary methods and/or (second) electronic devices, determining the second updated key comprises performing a nested hash function at least 2.sup.M times. A nested hash function takes as input the output or result of the previous hash function.

    [0064] In one or more exemplary methods and/or exemplary (second) electronic devices, determining the second updated key K_2 comprises adding K bits to the base key prior to performing the key-boosting function/cryptographic operation. The number K of additional bits may be equal to or larger than M. In one or more exemplary methods and/or exemplary (second) electronic devices, the number K of additional bits may be 16, 32, 64, 128, 192, or 256 bits. In one or more exemplary methods and/or exemplary (second) electronic devices, the additional K bits may be preset to e.g. “0” or “1”. In one or more exemplary methods and/or exemplary (first) electronic devices, the value of the K bits may be selected from a look-up table or based on a key agreement protocol (also known to the second electronic device). In one or more exemplary methods and/or exemplary (first) electronic devices, the K bits may be based on a secondary Diffie-Hellman key exchange between the first electronic device and the second electronic device.

    [0065] In one or more exemplary methods and/or exemplary (second) electronic devices, determining the second updated key K_2 comprises: [0066] 1: i=0 and K_I=K_B [0067] 2: K_I=H(K_I) [0068] 3: i=i+1 [0069] 4: if i<2.sup.M then go to 2: else K_2=K_I,

    [0070] where i and M are integers, K_I is an intermediate key, K_B is the base key, H is a hash function, and K_2 is the second updated key.

    [0071] In one or more exemplary methods and/or exemplary (second) electronic devices, determining the second updated key K_2 comprises: [0072] 1: i=0 and K_I=K_B [0073] 2: K_I=F(K_I) [0074] 3: i=i+1 [0075] 4: if i<2.sup.M then go to 2: else K_2=K_I,

    [0076] where i and M are integers, K_I is an intermediate key, K_B is the base key, F is constructed from AES, e.g. AES in CBC mode, and K_2 is the second updated key.

    [0077] In one or more exemplary methods and/or (second) electronic devices, the second updated key is based on an index function or an index used as input to the hash function.

    [0078] Thereby cyclic effects in the cryptographic operation, e.g. the hash function, may be avoided.

    [0079] For example, in one or more exemplary methods and/or exemplary (second) electronic devices, determining the second updated key K_2 comprises: [0080] 1: i=0 and K_I=K_B [0081] 2: K_I=H(K_I+i) [0082] 3: i=i+1 [0083] 4: if i<2.sup.M then go to 2: else K_2=K_I,

    [0084] where i and M are integers, K_I is an intermediate key, K_B is the base key, H is a hash function, and K_2 is the second updated key. In other words, the hash function H, and therefore the second updated key K_2 is based on the index function i.

    [0085] Decrypting the cipher data with and/or based on the second updated key optionally comprises performing a second decryption scheme on the cipher data, e.g. based on a first part and/or second part of the second updated key, for provision of a second output, and performing a first decryption scheme on the second output, e.g. based on a first part and/or a second part of the second updated key, for provision of decrypted data. Thus, the second electronic device reproduces the data originally obtained in the first electronic device.

    [0086] The second decryption scheme may be based on one or more S-boxes, such as at least 8 S-boxes. One or more S-boxes of an exemplary second encryption scheme may be based on the second part of the second updated key.

    [0087] The first decryption scheme may be the Advanced Encryption Standard (AES), e.g. 256-bit AES decryption. The second decryption scheme may be different from the first decryption scheme. It is to be understood that the first decryption scheme is used to decrypt data encrypted by the first encryption scheme and that the second decryption scheme is used to decrypt data encrypted with the second encryption scheme.

    [0088] In one or more exemplary methods and/or (first and/or second) electronic devices, the first part of the second updated key has a first key part length (N_2_1) of at least 64 bits, such as 128 bits, 192 bits, or 256 bits. Thus, the first key part length N_2_1 may be in the range from 100 bits to 500 bits. Thus, 256 bits of the second updated key may be the first part of the second updated key and be used in AES 256-bit decryption as the first decryption scheme.

    [0089] In one or more exemplary methods and/or (first) electronic devices, the second part of the second updated key has a second key part length (M_2_2) of at least 10 bits, such as 16, 32, 64, 128, 192, or 256 bits. Thus, the second key part length M_2_2 may be in the range from 10 bits to 500 bits.

    [0090] In one or more exemplary methods and/or exemplary (first and/or second) electronic devices, the base key is a 256-bit key (N=256) and the cryptographic operation is performed 2.sup.16 (M=16) times or more, thus providing an updated key with 16 additional bits of entropy, i.e. a total of 256+16=272 bits of entropy. The length of the updated keys may be larger than the entropy of the updated keys. For example, the first and second updated keys may have a length of more than N+M bits, e.g. a length of 384 bits or 512 bits with an entropy in the range from 266 bits to 276, e.g. a 272 bit entropy.

    [0091] In one or more exemplary methods and/or exemplary (first and/or second) electronic devices, the base key is a 256-bit key (N=256), the cryptographic operation, such as the hash function or an AES function, is performed 2.sup.16 (M=16) times, and the length of the first updated key and the second updated key is larger than 300 bits, e.g. in the range from 320 bits to 400 bits or from 500 bits to 550 bits.

    [0092] Electronic devices, such as electronic devices are disclosed. The interface of an electronic device may comprise a wireless transceiver configured for wireless communication, e.g. in order to communicate cipher data and/or obtain the base key.

    [0093] FIG. 1 shows a communication system 2 comprising a first electronic device 4 and a second electronic device 6. The first electronic device 4 comprises a processor 8A, memory 10A, and an interface 12A. Cipher data 14 are communicated from the first electronic device (transmitting device) 4 to the second electronic device (receiving device) 6 via network 16. The first electronic device 4 may be wired and/or wirelessly connected to the network 16. The second electronic device 6 may be wired and/or wirelessly connected to the network 16.

    [0094] FIG. 2 shows a flow chart of an exemplary method of data communication between a first electronic device, e.g. first electronic device 4, and a second electronic device, e.g. second electronic device 6. The method 100 comprises obtaining 102, at the first electronic device, a base key having a length of N bits, such as 256 bits. Obtaining a base key having a length of N bits optionally comprises Diffie-Hellman key exchange 102A between the first electronic device and the second electronic device.

    [0095] The method 100 proceeds to determining 104, at the first electronic device, a first updated key based on the base key. Determining 104 a first updated key based on the base key comprises performing 104A, e.g. including nesting and/or iterating, a hash function, such as SHA-512, at least 2.sup.M times. In other words, the base key is used as input to the (first run-time of) hash function. The first updated key may be based on an index function used as input to the hash function. For example, an integer index may be fed to the hash function as an input. The integer index may be incremented every time the hash function is performed. Accordingly, determining 104 a first updated key based on the base key may comprise incrementing 104C an integer index, e.g. prior to or after application of the hash function.

    [0096] Upon determining the first updated key, the method 100 comprises encrypting 106, e.g. at the first electronic device, data with and/or based on the first updated key for provision of cipher data. Encrypting 106 data with and/or based on the first updated key for provision of cipher data optionally comprises performing 106A a first encryption scheme, e.g. AES encryption, on the data based on a first part of the first updated key for provision of a first output and optionally performing 106B a second encryption scheme, optionally different from the first encryption scheme, on the first output based on a second part of the first updated key for provision of cipher data. The first part of the first updated key has a first key part length N_1_1 of at least 64 bits, such as 128, 192, or 256 bits, and the second part of the first updated key has a second key part length M_1_2 of at least 10 bits, such as 128 bits.

    [0097] The method 100 may comprise transmitting 108, at the first electronic device, the cipher data, e.g. to the second electronic device.

    [0098] The method 100 optionally comprises obtaining 110, e.g. at the second electronic device, the cipher data; obtaining 112, e.g. at the second electronic device, the base key having a length of N bits; determining 114, e.g. at the second electronic device, a second updated key based on the base key; and decrypting 116, e.g. at the second electronic device, the cipher data with and/or based on the second updated key for provision of decrypted data. The second updated key has a length of at least N+M bits. M is optionally larger than four (4). In one or more exemplary methods and/or (second) electronic devices, M is at least 10, such as 16, 32, 64, 128, 192, or 256. Even larger numbers of M may be used. Determining the second updated key optionally comprises performing 114A, e.g. including nesting and/or iterating, a hash function at least 2.sup.M times, such as at least 16 times (M=4). In one or more exemplary methods and/or (second) electronic devices, determining the second updated key comprises performing 114B a nested hash function at least 2.sup.M times.

    [0099] In method 100, decrypting 116 the cipher data with and/or based on the second updated key comprises performing 116A a second decryption scheme on the cipher data, e.g. based on a second part of the second updated key for provision of a second output, and performing 116B a first decryption scheme on the second output based on a first part of the second updated key for provision of decrypted data. The first part of the second updated key has a first key part length N_2_1 of at least 64 bits, e.g. 256 bits, and the second part of the second updated key has a second key part length M_2_2 of at least 10 bit, such as 128 bits.

    [0100] The method 100 optionally comprises outputting 118 the decrypted data, e.g. by displaying the decrypted data on a display of the interface (second electronic device) and/or storing the decrypted data in the memory of the second electronic device. In one or more exemplary methods, outputting the decrypted data comprises determining and outputting an audio signal based on the decrypted data via a loudspeaker of the interface of the second electronic device.

    [0101] FIG. 3 shows a flow chart of an exemplary method of data communication between a first electronic device, e.g. first electronic device 4, and a second electronic device, e.g. second electronic device 6. The method 200 comprises obtaining 110, e.g. at the second electronic device, cipher data; obtaining 112, e.g. at the second electronic device, a base key having a length of N bits; determining 114, e.g. at the second electronic device, a second updated key based on the base key; and decrypting 116, e.g. at the second electronic device, the cipher data with and/or based on the second updated key for provision of decrypted data. The second updated key has a length of at least N+M bits. M is optionally larger than four (4). In one or more exemplary methods and/or (second) electronic devices, M is at least 10, such as 16, 32, 64, 128, 192, or 256. Even larger numbers of M may be used. Determining the second updated key optionally comprises performing 114A a hash function at least 2.sup.M times, such as at least 16 times (M=4). In one or more exemplary methods and/or (second) electronic devices, determining the second updated key comprises performing 114B a nested hash function at least 2.sup.M times.

    [0102] FIG. 4 illustrates data communication between first electronic device 4 and second electronic device 6, e.g. via network 16. The first electronic device 4 and the second electronic device obtains a base key by Diffie-Hellman key exchange 202. The first electronic device 4 determines a first updated key as described herein and encrypts data with and/or based on the first updated key to provide cipher data that is transmitted from the first electronic device to the second electronic device by cipher data transmission 204.

    [0103] The use of the terms “first”, “second”, “third” and “fourth”, “primary”, “secondary”, “tertiary” etc. does not imply any particular order, but are included to identify individual elements. Moreover, the use of the terms “first”, “second”, “third” and “fourth”, “primary”, “secondary”, “tertiary” etc. does not denote any order or importance, but rather the terms “first”, “second”, “third” and “fourth”, “primary”, “secondary”, “tertiary” etc. are used to distinguish one element from another. Note that the words “first”, “second”, “third” and “fourth”, “primary”, “secondary”, “tertiary” etc. are used here and elsewhere for labelling purposes only and are not intended to denote any specific spatial or temporal ordering. Furthermore, the labelling of a first element does not imply the presence of a second element and vice versa.

    [0104] It may be appreciated that FIGS. 1-4 comprise some circuitries or operations/method steps which are illustrated with a solid line and some circuitrys or operations which are illustrated with a dashed line. The circuitries or operations which are comprised in a solid line are circuitries or operations which are comprised in the broadest example embodiment. The circuitries or operations which are comprised in a dashed line are example embodiments which may be comprised in, or a part of, or are further circuitries or operations which may be taken in addition to the circuitries or operations of the solid line example embodiments. It should be appreciated that these operations need not be performed in order presented. Furthermore, it should be appreciated that not all of the operations need to be performed. The exemplary operations may be performed in any order and in any combination.

    [0105] It is to be noted that the word “comprising” does not necessarily exclude the presence of other elements or steps than those listed.

    [0106] It is to be noted that the words “a” or “an” preceding an element do not exclude the presence of a plurality of such elements.

    [0107] It should further be noted that any reference signs do not limit the scope of the claims, that the exemplary embodiments may be implemented at least in part by means of both hardware and software, and that several “means”, “units” or “devices” may be represented by the same item of hardware.

    [0108] The various exemplary methods, devices, and systems described herein are described in the general context of method steps or processes, which may be implemented in one aspect by a computer program product, embodied in a computer-readable medium, including computer-executable instructions, such as program code, executed by computers in networked environments. A computer-readable medium or memory may include removable and non-removable storage devices including, but not limited to, Read Only Memory (ROM), Random Access Memory (RAM), compact discs (CDs), digital versatile discs (DVD), etc. Generally, program circuitries may include routines, programs, objects, components, data structures, etc. that perform specified tasks or implement specific abstract data types. Computer-executable instructions, associated data structures, and program circuitries represent examples of program code for executing steps of the methods disclosed herein. The particular sequence of such executable instructions or associated data structures represents examples of corresponding acts for implementing the functions described in such steps or processes.

    [0109] Although features have been shown and described, it will be understood that they are not intended to limit the claimed disclosure, and it will be made obvious to those skilled in the art that various changes and modifications may be made without departing from the scope of the claimed disclosure. The specification and drawings are accordingly to be regarded in an illustrative rather than restrictive sense. The claimed disclosure is intended to cover all alternatives, modifications, and equivalents.

    LIST OF REFERENCES

    [0110] 2 communication system [0111] 4 first electronic device [0112] 6 second electronic device [0113] 8A processor of first electronic device [0114] 8B processor of second electronic device [0115] 10A memory of first electronic device [0116] 10B memory of second electronic device [0117] 12A interface of first electronic device [0118] 12B interface of second electronic device [0119] 14 cipher data [0120] 16 network [0121] 100, 200 method of data communication between a first electronic device and a second electronic device [0122] 102 obtaining, at the first electronic device, a base key having a length of N bits [0123] 102A Diffie-Hellman key exchange [0124] 104 determining, at the first electronic device, a first updated key based on the base key [0125] 104A performing a cryptographic operation, such as a hash function, at least 2.sup.M times [0126] 104B performing a nested hash function at least 2.sup.M times [0127] 106 encrypting, at the first electronic device, data with the first updated key for provision of cipher data [0128] 106A performing a first encryption scheme on the data [0129] 106B performing a second encryption scheme on first output [0130] 108 transmitting the cipher data to the second electronic device [0131] 110 obtaining, at the second electronic device, the cipher data [0132] 112 obtaining, at the second electronic device, the base key having a length of N bits [0133] 114 determining, at the second electronic device, a second updated key based on the base key [0134] 114A performing a cryptographic operation, such as a hash function, at least 2.sup.M times [0135] 114B performing a nested hash function at least 2.sup.M times [0136] 116 decrypting, at the second electronic device, the cipher data with the second updated key for provision of decrypted data [0137] 116A performing a second decryption scheme on the cipher data for provision of a second output [0138] 116B performing 116B a first decryption scheme on the second output for provision of decrypted data [0139] 118 outputting the decrypted data [0140] 202 Diffie-Hellman key exchange [0141] 204 transmission of cipher data