Memory storage method

By encrypting pointers and storing them securely in non-rewritable memory, the method fortifies non-volatile memory against attacks and ensures secure data access.

FR3121766B1Active Publication Date: 2024-08-30STMICROELECTRONICS BELGIUM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
FR2021003600
Authority / Receiving Office
FR · FR
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-04-08
Publication Date
2024-08-30
Estimated Expiration
2041-04-08

AI Technical Summary

Technical Problem

Existing non-volatile memory storage and reading methods are vulnerable to fault injections and probe attacks, and lack secure password and access key protection.

Method used

The method involves encrypting pointers to memory cells using additional data and storing them securely, along with the encrypted data, in a non-rewritable part of the memory, and decrypting using the correct data to access the encrypted data.

Benefits of technology

Enhances security by making memory access resistant to attacks and ensuring only authorized access to encrypted data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000015_0000
    Figure 00000015_0000
  • Figure 00000015_0001
    Figure 00000015_0001
  • Figure 00000016_0000
    Figure 00000016_0000
Patent Text Reader

Abstract

Memory Storage Method This description relates to a method for securely storing, in non-volatile memory, a first piece of data (Key1) encrypted using a second piece of data (pwd1), comprising the following steps: - choosing (402) a pointer (P1) pointing to a first address (AddP1) of a memory cell in a first part (A) of said non-volatile memory (200); - encrypting (403) said pointer (P1) using said second piece of data (pwd1); and - storing said encrypted pointer (P1) in said non-volatile memory. Figure for the abstract: Fig. 4
Need to check novelty before this filing date? Find Prior Art

Description

Description Title of the invention: Memory storage method Technical field This description relates generally to electronic circuits and devices, and more specifically to the protection of data stored by these circuits and devices. This description applies more particularly to the protection of data stored in non-volatile memory. This description concerns methods for storing data in non-volatile memory and associated read methods. Previous technique There are many techniques for protecting data stored on electronic devices. Cryptographic techniques, such as data encryption, are particularly used for this purpose. Data encryption is an operation by which usable and readable data is transformed, using a code, into data that can only be read by people or machines who know the code. This code typically uses an encryption and / or decryption key. It would be desirable to be able to improve at least some aspects of known non-volatile memory storage techniques. Summary of the invention There is a need for more secure non-volatile memory data storage processes. There is a need for more secure methods of reading data from non-volatile memory. There is a need for non-volatile memory data reading processes that are more resistant to fault injections and / or probe attacks. There is a need for reading processes that use more secure passwords and / or access keys. One embodiment overcomes all or part of the drawbacks of known non-volatile memory data storage methods. One embodiment overcomes all or part of the drawbacks of known non-volatile memory data reading methods. One embodiment provides a method for securely storing, in non-volatile memory, a first encrypted piece of data using a second piece of data, comprising the following steps: - choose a pointer pointing to a first address of a memory cell of a first part of said non-volatile memory; - encrypt said pointer using said second piece of data; and - store said encrypted pointer in said non-volatile memory. According to one embodiment, said pointer is chosen randomly. According to one embodiment, said pointer is chosen from a predefined group of pointers targeting memory cell addresses of said first part of said non-volatile memory. According to one embodiment, said first encrypted data is stored at said first address pointed to by said pointer. According to one embodiment, said first data is encrypted using, in addition, a third data stored at said first address pointed to by said pointer. According to one embodiment, said first data is stored in a memory cell, having a second address, not belonging to the first part of said non-volatile memory. According to one embodiment, said first part is a non-rewritable part of the non-volatile memory. Another embodiment provides for a method of reading a first encrypted data item stored securely in non-volatile memory, comprising the following steps: - send a second piece of data; - decipher a pointer with said second piece of data; - verify that the pointer points to an address in the first part of said non-volatile memory; and - decipher the first piece of data using the second piece of data. According to one embodiment, the first encrypted data is read at said first address pointed to by the pointer. According to one embodiment, the first data is decrypted using, in addition, a third data stored at said first address pointed to by the pointer. According to one embodiment, the first encrypted data is stored in a memory cell, having a second address, not belonging to the first part of said non-volatile memory. According to one embodiment, said first part is a non-rewritable part of non-volatile memory. Yet another embodiment provides for an electronic system adapted to implement the storage process described above. Yet another embodiment provides for an electronic system adapted to implement the reading process described above. Yet another embodiment provides for an electronic system adapted to implement the storage process described above and to implement the reading process described above. Brief description of the drawings These features and advantages, as well as others, will be described in detail in the following description of particular embodiments, given by way of non-limiting example, in relation to the attached figures, among which: [Fig.1] represents, very schematically and in block form, an electronic device to which the described embodiments apply; [Fig.2] represents, very schematically, a non-volatile memory; [Fig.3] represents, very schematically and in block form, a method of securely storing data in non-volatile memory; [Fig.4] represents, very schematically and in block form, a method of implementing a secure data storage process in non-volatile memory, and the method of implementing the associated data reading process; [Fig.5] represents, very schematically and in block form, another method of implementing a secure data storage process in non-volatile memory, and the method of implementing the associated data reading process; Figure 6 represents, very schematically and in block form, another method of implementing a secure data storage process in non-volatile memory; and [Fig.7] represents, very schematically and in block form, a method of implementing the reading process associated with the method of implementing the storage process of [Fig.7]. Description of the implementation methods The same elements have been designated by the same reference numerals in the different figures. In particular, structural and / or functional elements common to the different embodiments may have the same reference numerals and may have identical structural, dimensional and material properties. For the sake of clarity, only the steps and elements necessary for understanding the described embodiments have been shown and are detailed. In particular, the encryption techniques used will not be described, as those skilled in the art are capable of choosing the encryption techniques appropriate to the embodiments presented in the description. Unless otherwise specified, when referring to two connected elements, this means directly connected without any intermediate elements other than conductors, and when referring to two connected (in English "coupled") elements between them, this means that these two elements can be connected or linked via one or more other elements. In the description that follows, when referring to absolute positional qualifiers, such as the terms “front”, “back”, “top”, “bottom”, “left”, “right”, etc., or relative positional qualifiers, such as the terms “above”, “below”, “superior”, “inferior”, etc., or to orientational qualifiers, such as the terms “horizontal”, “vertical”, etc., it refers, unless otherwise specified, to the orientation of the figures. Unless otherwise specified, the expressions 'approximately', 'roughly', 'significantly', and 'on the order of' mean within 10%, preferably within 5%. Figure 1 represents, very schematically and in block form, an example of the architecture of an electronic system 100. The electronic system 100 includes a processor 101 (CPU) adapted to implement various processing of data stored in memories and / or supplied by other circuits of the system 100. The electronic system 100 also includes different types of memory, among which is non-volatile memory 102 (NVM), for example volatile memory 103 (RAM), and, for example, read-only memory 104 (ROM). Each type of memory is adapted to store different types of data. The electronic system 100 further comprises various circuits 105 (FCTs) adapted to implement different functions. For example, the circuits 105 may include measurement circuits, data conversion circuits, encryption circuits, etc. The electronic system 100 may further include interface circuits 106 (I0 / OUT) adapted to send and / or receive data from outside the system 100. The interface circuits 106 may further be adapted to implement a data display, for example, a display screen. The electronic system 100 further includes one or more data buses 107 adapted for transferring data between its various components. More specifically, bus 107 allows data transfer between the various memories 102 to 104, the processor 101, the circuits 105, and the interface circuits 106. Fig. 2 represents schematically and in block form an example of a non-volatile memory 200 (NVM) that can be used in an electronic system of the type of system 100 described in relation to Fig. 1. Non-volatile memory (NVG) comprises memory cells, typically arranged in rows and columns. Each memory cell is designed to store a single piece of data, such as a binary word. Furthermore, each memory cell is characterized by its address. The address of a memory cell indicates its location within memory and generally corresponds to the row and column number. column of the memory cell. In the rest of the description, when we talk about data stored at an address Add in memory, this means that the data is stored in a memory cell with address Add. Furthermore, when we talk about a pointer, we are referring to a piece of data that stores the address of a memory cell in which data can be stored. Non-volatile memory 200 can be divided into several parts. Different parts of the memory can be dedicated to storing different types of data, for example, data from different electronic devices or circuits. Furthermore, a part of memory 200 can be rewritable or non-rewritable. In one embodiment, memory 200 comprises at least one part A consisting of N memory cells. In [Fig. 2], the memory cells are denoted A[0], A[1]...., A[Kk]..…, A[N-1] Non-volatile memory 200 is used here to store secret data. The implementation methods described in relation to Figures 3 to 7 all apply to memory of the type 200 memory. [Fig.3] includes two block diagrams (A) and (B) illustrating, respectively, an example of a method for storing a secret data Key0 in memory 200 of [Fig.2], and an example of a corresponding or associated method for reading the secret data Key0. The block schema storage method (A), or storage method (A), aims to encrypt the secret data Key0 and then store it at an address AddKO in memory 200. The sequence of storage method (A) is as follows. At step 301 ("Encrypt Key0"), the secret data Key0 is encrypted using an encryption function e that takes as input at least the secret data Key0 and a data pwd0. The data pwd0 is the encryption key for the data Key0. The encrypted data Key0 is then denoted as e[pwd0](Key0). In an example, the encryption function e is a symmetric encryption function. At a step 302 ("Store Key0"), following step 301, the encrypted secret data e[pwd0](Key0) is stored at address AddKO in memory 200. At step 303 ("Encrypt pwd0"), following step 302, the data pwd0 is encrypted using a function H that takes only the data pwd0 as input. The result of encrypting the data pwd0 with function H is a ciphertext denoted H(pwd0). The function H is, for example, a non-invertible function. For instance, the function H is a hash function or a signature function. At a step 304 ("Store pwd0"), following step 303, the encrypted data H(pwd0) is stored at an address AddPO in memory 200. The block schema reading method (B), or reading method (B), aims to make the secret data accessible to an element by sending only the data pwd0. The element can be an electronic device such as, for example, a processor. The sequence of the reading process (B) is as follows. At step 351 ('Hash pwd'), the element seeking access to the secret data Key0 sends a pwd value. The pwd value is then encrypted using the H function; the result of this encryption is denoted H(pwd). At step 352 (“Compare”), following step 351, the encrypted data H(pwd) is compared to the encrypted data H(pwdO0) stored at address AddP0. If the data H(pwd) and H(pwd0) are different (output "different") then the next step is step 353 (“Abort”), otherwise (output "same") then the next step is step 354 (“Decrypt Key0”). At step 353, following step 352, the element wanting to access the secret data Key0 did not send the correct data pwd, the reading process stops there, the data Key0 is neither decrypted nor returned to the element. At step 354, following step 352, the element wanting to access the secret data Key0 sent the correct data pwd, the encrypted data e[pwd0](Key0) is decrypted using the data pwd equal to the data pwd0. At a step 355 (Return Key0"), following step 354, the decrypted Key0 data is sent to the element. One drawback of this example is that the reading method described here is vulnerable to fault injection and probe attacks. Indeed, in this example, the AddKO address where the encrypted data e[pwd0](Key0) is stored is accessible; simply skipping step 352, for example by injecting a fault, would grant access to the encrypted data e[pwd0](Key0). [Fig.4] includes two block diagrams (A) and (B) illustrating, respectively, an implementation method for storing a secret data Key1 in memory 200 of [Fig.2], and an implementation method for an associated reading method of the secret data Key1. The block schema storage method (A), or storage method (A), aims to encrypt the secret data Key1, and then store it at a secret address AddP1 of a memory cell in part A of memory 200. The sequence of storage method (A) is as follows. At a 401 step ("Encrypt Key1l"), the secret data Key1 is encrypted using an encryption function E that takes as input at least the secret data Key1 and a piece of data pwdl. The pwdl data is the encryption key for the data Key1. The encrypted data Key1 is then denoted as E[pwd1](Key1). Like the encryption function e described in relation to [Fig. 3], the function E is a symmetric encryption function, for example, a block cipher such as AES (Advanced Encryption Standard). At step 402 ("Pick Random P1 Store Key11"), following step 401, the address AddP1 is randomly chosen from the A portion of memory 200, and a pointer P1 to the address AddP1 is generated. In other words, a pointer P1 is chosen. Furthermore, at step 402, the encrypted secret data E[pwd!1](Key1) is stored at the address AddP1 targeted by the pointer P1. At step 403 ("Encrypt P1"), following step 402, the pointer P1 is encrypted using the same function E used to encrypt the secret data Key1. Furthermore, the pointer P1 is encrypted using the same data pwdl as the encryption key. The result of encrypting the pointer P1 with function E is a ciphertext denoted E[pwd1](P1). At a step 404 ("Store P1"), following step 403, the encrypted data E[pwd1](P1) is stored at an address Add1 in memory 200, preferably the memory cell at address Add1 is not included in the A part of memory 200. The block diagram reading method (B), or reading method (B), aims to make the secret data Key1 accessible to an element by sending only the data pwdl. As before, the element can be an electronic device such as, for example, a processor. The execution of reading method (B) is as follows. At a step 451 (“Send pwd Get p”), as in the reading process of [Fig.3], the element wanting to access the secret data Key1 sends the pwd data. Furthermore, at step 451, the encrypted data E[pwd1](P1) stored at address Add! is decrypted using the data pwd as the decryption key. This yields a pointer p. At a step 452 ("p in A"), following step 451, it is checked whether the pointer p aims at an address belonging to part A of memory 200. If the pointer p aims at an address outside part A (output "N"), the next step is a step 453 ("Abort"), otherwise (output "Y"), the next step is a step 454 ("Decrypt Key1"). At step 453, following step 452, the element wanting to access the secret data Key1l did not send the correct data pwd, so the pointer p does not target an address in part A of memory 200. The reading process stops there, the data Keyl1 is neither decrypted nor returned to the element. In step 454, following step 452, the pointer p targets an address in part A; it is then considered that the pointer p targets the same address AddP1 as the pointer P1. The data A[AddP1] stored at address AddP1, that is, the data E[pwd1](Key1), is decrypted using the data pwd as the decryption key. At a step 455 ("Return Keyl"), following step 454, the element receives the decrypted Key1 data. One advantage of this implementation method is that the address to which the data The secret Key! is kept secret, and must be decrypted to give access to the encrypted data E[pwd1](Key1). Thus, as long as the element wanting to access the secret data Key1 has not sent the correct data pwp1, no access will be made to the memory cell containing the desired secret data, and it will not be possible to extract it either by probe attack or by fault injection. [Fig.5] includes two block diagrams (A) and (B) illustrating, respectively, an implementation method for storing a secret data Key2 in memory 200 of [Fig.2], and an implementation method for an associated reading method of the secret data Key2. The block schema storage method (A), or storage method (A), aims to encrypt the secret data Key2 using data stored at a secret address AddP2 of a memory cell in part A of memory 200. The execution of storage method (A) is as follows. In one embodiment, part A of memory 200 is a non-rewritable part. At a 501 step ("Pick Random P2 Read A[P2]"), the address AddP2 is randomly chosen from the A portion of memory 200, and a pointer P2 to the address AddP2 is generated. In other words, a pointer P2 is chosen. Furthermore, at step 501, the data A[P2] stored at the address AddP2 targeted by the pointer P2 is read. At a step 502 ("Encrypt A[P2]"), following step 501, the data A[P2] is encrypted using the encryption function E, described in relation to [Fig.4], and a data pwd2 as the encryption key. The encrypted data A[P2] is then denoted: E[pwd21(A[P2]). At step 503 ("Encrypt Key2"), following step 502, the secret data Key2 is encrypted using an encryption function F that takes as input at least the secret data Key2 and the data E[pwd2](A[P2]). The data E[pwd2](A[P2]) is the encryption key for the data Key2. The encrypted data Key2 is then denoted as: F[E[pwd2](A[P2])](Key2). The encryption function F is of the same type as the encryption function E described in relation to [Fig. 4]. As an example, the encryption function F is an XOR function. At step 504 ("Encrypt P2"), following step 503, the pointer P2 is encrypted using the same function E used to encrypt the data A[P2]. ​​Furthermore, the pointer P2 is encrypted using the same data pwd2 as the encryption key. The result of encrypting the pointer P2 with function E is a ciphertext denoted E[pwd2](P2). At a 505 step ("Store"), following step 504, the data F[E[pwd2](A[P2])](Key2) and E[pwd2](P2), that is, the data Key2 and the pointer The encrypted P2 data is stored in memory 200. According to one embodiment, the data F[E[pwd2](A[P2])](Key2) and E[pwd2](P2) are stored in memory 200 but outside the A part of memory 200. More specifically, the data F[E[pwd2](A[P2])(Key2) is stored at an address AddK2, and the data E[pwd2](P2) is stored at an address Add?. The block diagram reading method (B), or reading method (B), aims to make the secret data accessible to an element by sending only the pwd2 data. As before, the element can be an electronic device such as, for example, a processor. The reading method (B) proceeds as follows. At a step 551 (“Send pwd Get p”), as in the reading process of [Fig.4], the element wanting to have access to the secret data Key2 sends a pwd data. Furthermore, at step 551, the encrypted data E[pwd2](P2) stored at address Add2 is decrypted using the data pwd as the decryption key. As in [Fig.4], this yields a pointer p. At a step 552 (p in A”), following step 551, it is checked whether the pointer p aims at an address belonging to part A of memory 200. If the pointer p aims at an address outside part A (output "N"), the next step is a step 553 ("Abort"), otherwise (output "Y"), the next step is a step 554 ("Read A[p] Decrypt Key2"). At step 553, following step 552, the element wanting to access the secret data Key2 did not send the correct data pwd, so the pointer p does not target an address in part A of memory 200. The reading process stops there, the data Key2 is neither decrypted nor returned to the element. In step 554, following step 552, the pointer p aims at an address in part A, so we consider that the pointer p aims at the same address AddP2 as the pointer P2. The data stored at address AddK2, that is, the data F[E[pwd](A[P2])](Key2) is decrypted using as the decryption key the data E[pwd](A[P2]), that is, the data A[P2] read at address AddP2 and encrypted by the data pwd. At a step 555 ("Return Key2"), following step 554, the element receives the decrypted Key2 data. One advantage of this implementation method is that the secret data Key2 is encrypted using not only the pwd data, but also the data A[P2] chosen randomly from part A of memory 200. If the pointer P2 is incorrectly decrypted then the secret data Key2 cannot be decrypted. Another advantage is that, in some implementations that use a large non-rewritable memory, this allows the size of the A area to be increased, and makes it more difficult to extract sensitive data A[P2]. According to one embodiment, the pointer P2 can be chosen from a group A predefined list of pointers to addresses in the A portion of memory 200. This predefined list of pointers can be used to store constant data that is used only for the storage method described here. Indeed, by choosing an address AddP2 randomly, it is possible that the data A[P2] stored at that address is frequently used data that could "attract the attention" of a user trying to retrieve the secret data Key2. Figures 6 and 7 represent block diagrams 600 and 650 illustrating, respectively, a method of implementing a process for storing a secret data Key3 in memory 200 of [Fig.2], and a method of implementing an associated process for reading the secret data Key3. In [Fig. 6], the 600 block schema storage method, or 600 storage method, aims to store the secret data Key3 at a secret address AddP3(0) of a memory cell in part A of memory 200, to which a pointer P3(0) is associated. Furthermore, the storage method uses a chain comprising I addresses AddP3(0), …, AddP3(I-1) of memory cells in part A of memory 200 to store the secret data Key3. I is a natural number greater than or equal to two and less than N, the number of memory cells in part A of memory 200. A chain of I pointers P3(0), …, P3(I-1) is associated with the chain of I addresses AddP3(0), …, AddP3(I-1). The execution of the 600 storage method is as follows. At step 601 ("Encrypt Key3"), the secret data Key3 is encrypted using the encryption function E, described in relation to [Fig.3], taking as input at least the secret data Key3, and a data pwd3. The data pwd3 is the encryption key of the data Key3. The encrypted data Key3 is then denoted: E[pwd3](Key3). At step 602 ("Pick P3(0)"), following step 601, the first address AddP3(0) of the address chain is randomly chosen from the A portion of memory 200. A pointer P3(0) pointing to the address AddP3(0) is generated. In other words, a pointer P3(0) is chosen. According to one variant, the first address AddP3(0) can be chosen from a predefined list of addresses in part A. At a step 603 ("Store Key3"), following step 602, the encrypted secret data E[pwd3](Key3) is stored at address AddP3(0). At a step 604 ("i=1"), following step 603, an internal counting data i is initialized to one, i being a natural number. At step 605 ("Encrypt P3(i-1)"), the pointer P3(i-1) with index i-1 is encrypted using the encryption function E and the data pwd3 as the encryption key. The encrypted pointer P3(i-1) is then denoted as: E[pwd3](P3(i-1)). When step 605 is directly following step 604, the pointer P3(i-1) is the pointer P3(0). At step 606 ("Pick P3(i)"), following step 605, an address AddP3(i) with index i from the address chain is randomly chosen from the A portion of memory 200. A pointer P3(i) with index i pointing to the address AddP3(i) is generated. In other words, a pointer P3(i) is chosen. Note that the pointer P3(I-1) is a value known by the read procedure described in relation to [Fig. 7], specifically a fixed value independent of the pwd data. As before, according to one variant, the address AddP3(i) can be chosen from a predefined list of addresses in part A. In other words, the addresses AddP3(0) to AddP3(I-1) are not necessarily consecutive. At a step 607 ("Store P3(-1)"), following step 606, the encrypted pointer E[pwd3](P3(i-1)) is stored at the address AddP3(i) targeted by the pointer P3(i). At a step 608 ('“i=I-17"), following step 607, the internal counting data i is compared to the value I decremented by one, denoted I-1. If the data i is different from the value I-1 (output "different"), the next step is a step 609 ("i=i+1"), otherwise (output "same"), the next step is a step 610 ("STOP"). At step 609, the internal counting data i is incremented by one, the next step is step 605. At step 610, all addresses AddP3(0), …, AddP3(1-1) of the address chain have been used, the storage process is complete. In [Fig. 7], the method for reading block diagram 650, or the 650 read method, aims to make the secret data accessible to an element by sending only the pwd3 data. As before, the element can be an electronic device such as, for example, a processor. The sequence of the read method (B) is as follows. At a step 651 ("Send pwd"), as in the reading processes of figures 4 and 5, the element wanting to have access to the secret data Key3 sends a pwd data. At a step 652 ("i=I-1"), following step 651, the internal counting data i is initialized to the value I decremented by one, still noted I-1. At step 653 ("Decrypt P3(i), p in A"), the encrypted data E[pwd3](P3G-1)) stored at address AddP3(i) is decrypted using the data pwd as the decryption key. As in [Fig. 4], a pointer p is then obtained. The pointer P3(I-1) is known to the device implementing the read process 650. In addition, at step 653, we check if the pointer p is aimed at an address belonging to part A of memory 200. If the pointer p is aimed at an address outside part A (output "N"), the next step is a step 654 ("Abort"), otherwise (output "Y"), the next step is a step 655 ("i-1=0 ?"). In step 654, following step 653, the element wanting to access the data The secret Key3 did not send the correct data pwd, so the pointer p does not target an address in the A part of memory. The read process stops there; the data Key3 is neither decrypted nor returned to the element. At step 655, following step 653, the pointer p targets an address in part A; we then consider that the pointer p targets the same address AddP3(i) as the pointer P3(i). The reading process can continue. The internal counting data i, decremented by 1 and denoted i-1, is compared to the null value (zero). If the data i-1 is different from the null value (output "different"), the next step is a 656 step ("i=i-1"), otherwise (output "same"), the next step is a 657 step ("Decrypt Key3"). At step 656, the internal counting data i is decremented by one, the next step is step 653. At step 657, all the data stored at addresses AddP3(1), …, AddP3(I-1) of the address chain has been decrypted; only the secret data Key3 remains to be decrypted. The internal counting data i is decremented by one to equal zero. The pointer P3(0) is the last decrypted pointer; it points to the address AddP3(0) where the encrypted data E[pwd3](Key3) is stored. The data E[pwd3](Key3) is decrypted using the data pwd as the decryption key. Since the data pwd has been used to decrypt the successive pointers P3(0), …, P3(I-1), the data pwd is considered to be equal to the data pwd3. At a step 658 ("Return Key3"), following step 657, the element receives the decrypted Key3 data. One advantage of the implementation method described in relation to figures 6 and 7 is that it makes the reading process more complex, and therefore more resistant to attacks. Furthermore, if, by mistake, a pointer decrypted with the data pwd different from the data pwd3 points to an address within the A part of memory 200, the reading process will fail when decrypting the next pointer. Various embodiments and variations have been described. A person skilled in the art will understand that some features of these various embodiments and variations could be combined, and other variations will become apparent to a person skilled in the art. In particular, the use of a pointer chain can be adapted to the implementation method described in relation to [Fig.5]. Finally, the practical implementation of the described methods and variants is within the reach of the person in the trade, based on the functional indications given above.

Claims

Claims

1. Method for secure storage, in a non-volatile memory (200), of a first data (Key2) encrypted using a second data (pwd2), including the following steps: - choose (501) a pointer (P2) aiming at a first address (AddP2) of a memory cell of a first part (À) of said non-volatile memory (200); - encrypt (504) said pointer (P2) using said second data (pwd2); and - storing said encrypted pointer (P2) in said non-volatile memory (200), wherein said first data (Key2) is encrypted using, in furthermore, a third data (A[P2]) stored at said first address (AddP2) pointed to by said pointer (P2).

2. The method of claim 1, wherein said pointer (P2) is chosen randomly.

3. A method according to claim !, wherein said pointer (P2) is chosen from a predefined group of pointers to addresses of memory cells of said first part (A) of said non-memory volatile (200).

4. A method according to any one of claims 1 to 3, wherein said first data (Key2) is stored in a memory cell, having a second address (AddK2), and not belonging to the first part (A) of said non-volatile memory (200).

5. A method according to any one of claims 1 to 4, wherein said first part (A) is a non-rewritable part of the memory non-volatile (200).

6. Method for reading a first data item (Key2) encrypted and stored from securely in non-volatile memory (200), comprising the next steps: - send (551) a second data (pwd); - decrypt (551) a pointer (P2) with said second data (pwd2); - check (552) that the pointer (P2) points to a first address (AddP2) of a first part (A) of said non-volatile memory {200); and - decrypt (554) the first data using the second data (pwd2), in which the first data (Key2) is decrypted using, in furthermore, a third data (A[P2]) stored at said first address (AddP2) pointed to by pointer (P2).

7. Method according to claim 6, in which the first data (Key2) encrypted is stored in a memory cell, having a second address (AddK2), and not belonging to the first part (A) of said non-volatile memory (200).

8. A method according to claim 6 or 7, wherein said first part (A) is a non-rewritable portion of the non-volatile memory (200).

9. An electronic system adapted to implement the storage method according to any one of claims 1 to 5.

10. Electronic system, adapted to implement the reading method according to any one of claims 6 to 8.

11. | Electronic system according to claims 9 and 10.