ORAM system execution processing method and device, computer equipment and medium

By classifying task requests and optimizing data block loading in the ORAM system, the problems of large memory access overhead and low performance in the ORAM system are solved, and efficient data processing is achieved.

CN118690385AActive Publication Date: 2024-09-24HUNAN UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410737759.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-24
Estimated Expiration
2044-06-07

AI Technical Summary

Technical Problem

Existing ORAM systems have large memory access overhead during memory access, resulting in low system performance, and all data blocks are loaded at the same time during access, affecting efficiency.

Method used

By obtaining the task request and dividing it into a read operation type request and a write operation type request, it is detected whether the target block is stored in the trusted area. If it is not stored in the trusted area, classification and scheduling are performed, and the PosMap is accessed to determine the target path. All blocks in the target path are loaded into the trusted area, and the leaf labels are updated, evicting data after read operations and data after write operations respectively.

Benefits of technology

The processing flow of the ORAM system is optimized, avoiding the simultaneous loading of all data blocks, improving the efficiency and performance of the system, and achieving efficient ORAM system execution processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690385A
    Figure CN118690385A
Patent Text Reader

Abstract

The invention relates to an ORAM system execution processing method and device, computer equipment, a storage medium and a computer program product, and the method comprises the steps: obtaining a task request, and dividing the task request into a read operation type request and a write operation type request; detecting whether the accessed target block is stored in the trusted area; if the accessed target block is not stored in the trusted area, performing classified scheduling on the read operation type request and the write operation type request, and accessing PosMap to determine a target path; loading all blocks in the target path into the trusted area from an ORAM tree in the memory; updating the target block in the credible area to a new leaf tag; and respectively expelling the data after the read operation and the data after the write operation. According to the whole scheme, read operation and write operation are scheduled in a classified mode, it is avoided that all data blocks are loaded at the same time for ORAM access, the processing flow is optimized, and efficient ORAM system execution processing is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of ORAM technology, and in particular to an ORAM system execution processing method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] As cloud computing and storage become more and more popular, the privacy of user sensitive data has become a major issue in computing and storage outsourcing.

[0003] In an ideal setting, users would like to throw their encrypted data "over the wall" to a cloud service without any information leaking from that data to the server. However, it is well known that encryption is not enough to gain privacy. Users' access patterns have been shown to reveal a lot of information about encrypted files or private user data computed on them. Oblivious RAM (ORAM) is a cryptographic primitive that completely eliminates information leakage from memory access traces. In the ORAM scheme, clients store their data in an encrypted and scrambled form on an untrusted server. On each access, the client reads the untrusted memory, reshuffles that memory, and potentially updates some state in a trusted local storage that becomes the client storage.

[0004] Under ORAM, any memory access pattern is computationally indistinguishable from any other access pattern of the same length. The main obstacle to using ORAM is its large memory access overhead. For each ORAM access, many virtual blocks and data blocks are loaded along with the expected data blocks, resulting in poor system performance. Summary of the invention

[0005] Based on this, it is necessary to provide an efficient ORAM system execution processing method, apparatus, computer device, computer readable storage medium and computer program product to address the above technical problems.

[0006] In a first aspect, the present application provides an ORAM system execution processing method. The method comprises:

[0007] Obtain task requests, and divide the task requests into read operation type requests and write operation type requests;

[0008] Detect whether the accessed target block is stored in a trusted area;

[0009] If the accessed target block is not stored in the trusted area, the read operation type request and the write operation type request are classified and scheduled, and the PosMap is accessed to determine the target path (Position Map, position map);

[0010] Load all blocks in the target path from the ORAM tree in memory into the trusted area;

[0011] Updating the target block in the trusted region to a new leaf tag;

[0012] The data after the read operation and the data after the write operation are evicted respectively.

[0013] In one embodiment, the ORAM system execution processing method further includes:

[0014] If the accessed target block is stored in the trustworthy area, then for a read operation type request, the accessed target block is read to the processor; for a write operation type request, the value of the accessed target block is updated to the trustworthy area.

[0015] In one embodiment, classifying and scheduling the read operation type request and the write operation type request, and accessing PosMap to determine the target path includes:

[0016] For the read operation type request, determine the path to access the target block by checking PosMap using address;

[0017] For the write operation type request, the path to access the target block is determined by checking the PosMap using the address.

[0018] In one embodiment, loading all blocks in the target path from the ORAM tree in the memory into the trusted area includes:

[0019] Return all blocks in the target path from memory;

[0020] The data is returned from the memory to the XOR scheduling module for XOR processing to obtain the data blocks of the adjacent nodes of the access path;

[0021] Decrypting data blocks of adjacent nodes of the access path;

[0022] The decrypted data of the data block is stored in the trusted area.

[0023] In one of the embodiments, evicting data after a read operation includes: evicting the read data and non-target blocks in the trusted area to the target path; evicting data after a write operation includes: evicting the read data and non-target data in the trusted area to path l-2, path l-1, path l, and path l+1, where path l is the target path.

[0024] In one embodiment, the step of expelling the read data and non-target blocks in the trusted area to the target path includes:

[0025] Encrypting the read data and non-target blocks in the trusted area to obtain encrypted data to be evicted;

[0026] Performing an XOR operation on the encrypted data to be evicted in an XOR scheduling module to form a new data block value;

[0027] The new data block value is driven to the corresponding target path through the memory controller.

[0028] In a second aspect, the present application also provides an ORAM system execution processing device. The device comprises:

[0029] A task division module is used to obtain task requests and divide the task requests into read operation type requests and write operation type requests;

[0030] A detection module, used for detecting whether the accessed target block is stored in a trusted area;

[0031] An access module, used for classifying and scheduling the read operation type request and the write operation type request when the accessed target block is not stored in the trusted area, and accessing PosMap to determine the target path;

[0032] A loading module, used to load all blocks in the target path from the ORAM tree in the memory into the trusted area;

[0033] An update module, used for updating the target block in the trusted area to a new leaf tag;

[0034] The data eviction module is used to respectively evict the data after the read operation and the data after the write operation.

[0035] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0036] Obtain task requests, and divide the task requests into read operation type requests and write operation type requests;

[0037] Detect whether the accessed target block is stored in a trusted area;

[0038] If the accessed target block is not stored in the trusted area, the read operation type request and the write operation type request are classified and scheduled, and the PosMap is accessed to determine the target path;

[0039] Load all blocks in the target path from the ORAM tree in memory into the trusted area;

[0040] Updating the target block in the trusted region to a new leaf tag;

[0041] The data after the read operation and the data after the write operation are evicted respectively.

[0042] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0043] Obtain task requests, and divide the task requests into read operation type requests and write operation type requests;

[0044] Detect whether the accessed target block is stored in a trusted area;

[0045] If the accessed target block is not stored in the trusted area, the read operation type request and the write operation type request are classified and scheduled, and the PosMap is accessed to determine the target path;

[0046] Load all blocks in the target path from the ORAM tree in memory into the trusted area;

[0047] Updating the target block in the trusted region to a new leaf tag;

[0048] The data after the read operation and the data after the write operation are evicted respectively.

[0049] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0050] Obtain task requests, and divide the task requests into read operation type requests and write operation type requests;

[0051] Detect whether the accessed target block is stored in a trusted area;

[0052] If the accessed target block is not stored in the trusted area, the read operation type request and the write operation type request are classified and scheduled, and the PosMap is accessed to determine the target path;

[0053] Load all blocks in the target path from the ORAM tree in memory into the trusted area;

[0054] Updating the target block in the trusted region to a new leaf tag;

[0055] The data after the read operation and the data after the write operation are evicted respectively.

[0056] The above-mentioned ORAM system execution processing method, apparatus, computer equipment, storage medium and computer program product obtain task requests, and divide task requests into read operation type requests and write operation type requests; detect whether the accessed target block is stored in the trusted area; if the accessed target block is not stored in the trusted area, classify and schedule the read operation type requests and write operation type requests, and access PosMap to determine the target path; load all blocks in the target path from the ORAM tree in the memory into the trusted area; update the target block in the trusted area to the new leaf tag; and evict the data after the read operation and the data after the write operation respectively. In the whole process, the task requests are divided into read operation type requests and write operation type requests. In the subsequent processing, the read operation and the write operation are classified and scheduled to avoid loading all data blocks at the same time for ORAM access, optimize the processing flow, and realize efficient ORAM system execution processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 A diagram of an application environment for an ORAM system to execute a processing method in one embodiment;

[0058] Figure 2 Schematic diagram of the process of initializing tree construction;

[0059] Figure 3 A schematic diagram of a flow chart of an ORAM system executing a processing method in one embodiment;

[0060] Figure 4 A schematic diagram of a flow chart of an ORAM system executing a processing method in another embodiment;

[0061] Figure 5 This is a schematic diagram of the data loading process;

[0062] Figure 6 A structural block diagram of an ORAM system execution processing device in one embodiment;

[0063] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0064] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0065] The ORAM system execution processing method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. The user operates on the terminal 102 side, and the terminal 102 responds to the user operation, obtains the task request, and divides the task request into a read operation type request and a write operation type request; detects whether the accessed target block is stored in the trusted area; if the accessed target block is not stored in the trusted area, the read operation type request and the write operation type request are classified and scheduled, and the PosMap is accessed to determine the target path; all blocks in the target path are loaded from the ORAM tree in the memory into the trusted area; the target block in the trusted area is updated to the new leaf tag; and the data after the read operation and the data after the write operation are respectively expelled. The terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, etc.

[0066] In order to explain in detail the technical solution and technical principle of the ORAM system execution processing method of the present application, some related technologies will be first introduced below.

[0067] ORAM tree construction rules, 1 node contains 4 blocks. The 1st and 2nd blocks in 1 node are real data blocks (encrypted), and the 3rd and 4th blocks are the XOR data of the two encrypted data blocks. The XOR value in the leaf node of the corresponding even path (corresponding to the odd leaf label) is the XOR value of the real data block. The XOR value in the odd path (corresponding to the even leaf label) is the Dummy block value.

[0068] Specific initialization tree construction process:

[0069] 1. The XOR value in the child node with path ID 1 is equal to the data block value in the leaf node XORed by the value of the data block in the adjacent path, that is, the data block with path ID 2. For example, Figure 2 As shown: d2⊕d4, C2⊕C4. If the leaf node XOR value in the path with the largest tree path (corresponding to path ID=7 in the figure) is equal to the data block value in the leaf node of the path XORed with the data block value in the leaf node of the first path (corresponding to path 0 in the figure).

[0070] 2. Go from the leaf node to the root node, taking path 1 as an example. The XOR value of the node in the (L-1)th layer is equal to the XOR value of the real blocks of the two child nodes in this node. Figure 2 In the above equation, d0⊕d2, C0⊕C2, d0, d2, C0, and C2 come from the real data block values ​​of the two child nodes corresponding to this node. Similarly, the XOR values ​​in other nodes except leaf nodes are similar.

[0071] The core idea of ​​the ORAM system execution processing method of this application is as follows:

[0072] We know that when accessing data, conventional computer systems first pre-fetch data blocks from the memory into the cache, and then perform corresponding operations on the data blocks in the buffer, i.e., read, write / update operations. The conventional ORAM system reads the data blocks in the untrusted area memory into the trusted area stash, and then allows the processor to read, write / operate in the stash. Therefore, the system can be divided into two categories for the requested data, i.e., read operations and write operations (or update operations). The present application is optimized based on the above execution flow. Because the operation of the planned request target block is known in advance, i.e., whether the data block is to be read (Read Operation) or written (Update Operation). Therefore, a scheduling classifier will be designed to classify the data blocks accessed by the two plans, and after scheduling, the read operation will first perform ORAM memory access, and then perform ORAM read operation access.

[0073] In one embodiment, Figure 3 As shown, an ORAM system execution processing method is provided, and the method is applied to Figure 1 The terminal 102 in the example is used as an example to illustrate, and the following steps are included:

[0074] S100: Obtain task requests, and divide the task requests into read operation type requests and write operation type requests.

[0075] The task request to be executed and processed by the ORAM system is obtained, and the task request is divided into a read operation type request and a write operation type request, that is, it is clear whether the read operation type request or the write operation type request needs to be processed subsequently.

[0076] S200: Detect whether the accessed target block is stored in the trusted area.

[0077] Query the trusted area Stash to check whether the accessed target block is stored in the Stash.

[0078] S300: If the accessed target block is not stored in the trusted area, classify and schedule the read operation type request and the write operation type request, and access the PosMap to determine the target path.

[0079] If the accessed target block is not stored in the trusted area, the read operation type request and the write operation type request are classified and scheduled, and the PosMap is accessed to determine the target path. Specifically, the read / write (update) operation is divided into two categories according to the task request, that is, as many read operations as possible are divided into one category; the other category is write (update) operation. After classification, the read operation type data request is executed first, and then the write (update) operation type data request is executed.

[0080] Usually, a read operation checks the PosMap to determine the physical location of the required data block on the disk. The PosMap is a data structure that records the mapping relationship between the logical block address (LBA) and the physical block address (PBA). When the target block being accessed is not stored in the trusted area, the system will classify and schedule the read and write operations and determine the location of the target block on the disk based on the PosMap. Accessing the PosMap determines the path to the target block, that is, the target path l.

[0081] S400: Load all blocks in the target path from the ORAM tree in the memory into the trusted area.

[0082] Load all blocks in the target path l from the ORAM tree in memory into the trusted zone Stash. Specifically, the whole process can include the following: 1) Retrieve blocks from the ORAM tree: Access the ORAM tree in memory and use the ORAM access protocol to retrieve all blocks on the target path. Since ORAM is designed to hide the real access pattern, this retrieval process may involve some pseudo-random operations, such as randomizing the access order or accessing additional pseudo-random blocks. 2) Decrypt and verify blocks: If the blocks in the ORAM tree are stored encrypted, they need to be decrypted before loading into the trusted zone. At the same time, the integrity and authenticity of the blocks may also need to be verified to ensure that the data has not been tampered with during transmission. 3) Load into the trusted zone: Load the decrypted and verified blocks into the trusted zone. This trusted zone can be the CPU's cache, a protected memory area, or a storage device protected by hardware encryption. The loading process should ensure that the data is not exposed to unauthorized observers when it is transferred to the trusted zone. 4) Update the ORAM tree state: After loading the blocks into the trusted zone, update the state of the ORAM tree according to the ORAM protocol. This may include updating the location of blocks on the path, rearranging blocks to maintain confidentiality, or recording which blocks have been loaded into the trusted area. 5) Processing access requests: Once all blocks on the target path are loaded into the trusted area, the original access request can be securely processed. This can include reading data, modifying data, or performing other operations without worrying about data leakage or access patterns being captured by external observers. 6) Maintaining the confidentiality of the ORAM tree: Throughout the process, always ensure that the confidentiality of the ORAM tree is maintained. This includes maintaining randomized access patterns when loading, processing, and writing back data, and periodically rearranging blocks in the ORAM tree to prevent pattern leakage.

[0083] S500: Update the target block in the trusted area to the new leaf tag.

[0084] For the trusted region Stash, the target block in the Stash also needs to be updated to the new leaf tag l'. In this way, the data block in the Stash has the latest value and leaf tag.

[0085] S600: Evict the data after the read operation and the data after the write operation respectively.

[0086] Eviction usually refers to the process of removing data from a storage area (such as a cache) due to resource limitations (such as insufficient memory). Eviction is performed separately for data after read operations and data after write operations.

[0087] The above ORAM system executes the processing method, obtains the task request, and divides the task request into a read operation type request and a write operation type request; detects whether the accessed target block is stored in the trusted area; if the accessed target block is not stored in the trusted area, the read operation type request and the write operation type request are classified and scheduled, and the PosMap is accessed to determine the target path; all blocks in the target path are loaded from the ORAM tree in the memory into the trusted area; the target block in the trusted area is updated to a new leaf tag; and the data after the read operation and the data after the write operation are respectively expelled. In the whole process, the task request is divided into a read operation type request and a write operation type request. In the subsequent processing, the read operation and the write operation are classified and scheduled to avoid loading all data blocks at the same time for ORAM access, thereby optimizing the processing flow and realizing efficient ORAM system execution processing.

[0088] In one embodiment, the ORAM system execution processing method further includes:

[0089] If the accessed target block is stored in the trusted area, the accessed target block is read to the processor for a read operation type request; the value of the accessed target block is updated to the trusted area for a write operation type request.

[0090] Specifically, if the target block being accessed is stored in a trusted area, for read operation type requests and write operation type requests, when the system receives a read operation request and the data block pointed to by the request is located in a trusted area, the system will read the contents of the data block into the processor. This usually involves retrieving the data block from a physical storage medium (such as RAM, hard disk, etc.) and transferring it to the processor's cache or register for subsequent processing or calculation. Since these data blocks are located in a trusted area, the system may take additional measures to ensure data integrity and security during the reading process, such as using encryption or verification mechanisms to verify the correctness of the data.

[0091] When the system receives a write operation request and the data block pointed to by the request is located in the trusted area, the system will update the new data value to the corresponding data block in the trusted area. Specifically, the following steps are included here: 1) Verify the request: The system will first verify the legitimacy and validity of the write operation request. This may include checking the source of the request, permissions, data format, etc. 2) Data verification: Before updating the data block, the system may verify the new data value to ensure its integrity and accuracy. This may include using checksums, hash functions, or other algorithms to verify the correctness of the data. 3) Update the data block: Once the request is verified and the data is verified to be correct, the system will write the new data value to the corresponding data block in the trusted area. This process needs to ensure the integrity and security of the data during the writing process, which may involve the use of encryption, atomic operations, or transaction management mechanisms. 4) Record changes: In order to track the change history of the data and provide a rollback mechanism, the system may record every write operation to the data block in the trusted area. This can be achieved through logs, version control, or other mechanisms. 5) Notification and synchronization: If the data blocks in the trusted area are shared by multiple systems or components, then after updating the data blocks, the system may need to notify other relevant parties or synchronize the data in other replicas.

[0092] In one embodiment, classifying and scheduling read operation type requests and write operation type requests, and accessing PosMap to determine the target path includes:

[0093] Step 1: For a read operation type request, determine the path to access the target block by checking PosMap using address.

[0094] When processing a read operation type request, the address is used to check a position map (PosMap) to determine the path to access the target block. Specifically, the above processing includes the following steps: 1) Receive a read operation request: The system first receives a read operation request, which contains the address (address) of a data block to be read. 2) Find PosMap: PosMap is a data structure that is usually used to store mapping information from addresses to physical locations. This mapping information may include the actual location of the data block on the storage device, the identifier of the storage device, partition information, the index of the file system, etc. The system will find the corresponding mapping entry in PosMap according to the address in the read operation request. 3) Parse the mapping information: After finding the mapping entry, the system parses the entry to obtain the path information required to access the target block. This path information may include the path of the storage device, the mount point of the file system, the logical location of the file, etc. 4) Build an access path: Based on the parsed path information, the system builds a complete access path. This path describes the specific steps or instructions from the root directory or starting point of the system to the target data block. 5) Read the target block: Using the constructed access path, the system accesses the storage device and reads the contents of the target data block. This may involve steps such as communicating with the storage device, reading the metadata of the file system, and parsing the internal structure of the file. 6) Return data: Once the contents of the target data block are read, the system returns it to the application or user who initiated the read operation request.

[0095] Step 2: For write operation type requests, determine the path to access the target block by checking PosMap using address.

[0096] For write operation type requests, the target address (address) can also be used to check the position map (PosMap) to determine the path to access the target block. Specifically, the above processing includes the following steps: 1) Receive a write operation request: The system first receives a write operation request, which usually contains the address (address) of a data block to be written and the new data content. 2) Find PosMap: The position map (PosMap) is a data structure that stores address-to-physical location mapping information. The system searches for the corresponding mapping entry in PosMap according to the address in the write operation request. 3) Parse the mapping information: Once the mapping entry is found, the system parses the entry to obtain the physical location information of the target data block. This information may include the identifier of the storage device, partition information, file system index, logical block address (LBA), etc. 4) Construct a write path: Based on the physical location information obtained by the parsing, the system constructs a complete write path. This path describes the specific steps or instructions on how to reach the target data block and write it. 5) Perform a write operation: Using the constructed write path, the system accesses the target storage device and performs a write operation. This may include steps such as communicating with the storage device, updating the metadata of the file system, and modifying the internal structure of the file. 6) Confirmation of write: The system verifies whether the write operation is successful and may return a confirmation message to the application or user who initiated the write operation request.

[0097] In actual applications, read operation type data requests and update PosMap: the read operation request is checked by using the address to check the PosMap to determine the path where the target block is located, that is, path l. If the path l is an even number, then l+1; if l is an odd number, then no operation. Then, a new path (page label) l' is randomly generated and updated for the target block being accessed, and then subsequent data loading processing is performed. Update (write) operation data type requests and update PosMap: the write operation request is checked by using the address to check the PosMap to determine the path where the target block is located, that is, path l. Then, a path l' is randomly generated and updated for the target block being accessed, and then subsequent data loading processing is performed.

[0098] like Figure 4 As shown, in one embodiment, S400 includes:

[0099] S420: Return all blocks in the target path from the memory;

[0100] S440: returning data to the XOR scheduling module through the memory for XOR processing, and obtaining data blocks of adjacent nodes of the access path;

[0101] S460: decrypting data blocks of adjacent nodes of the access path;

[0102] S480: Store the decrypted data of the data block into the trusted area.

[0103] Load all blocks in the target path l from the ORAM tree in the memory into Stash. Specifically, return data from the memory to the XOR scheduling module for data XOR to obtain data blocks of nodes adjacent to the access path. Then go to the encryption / decryption circuit module to decrypt the data blocks and finally store them in Stash. If it is a read operation, the accessed target data block is returned to the processor; if it is an update (write) operation, the value in Stash is updated. The specific processing flow is as follows: Figure 5 shown.

[0104] In one embodiment, evicting data after a read operation includes: evicting the read data and non-target blocks in the trusted area to a target path; and evicting data after a write operation includes: evicting the read data and non-target data in the trusted area to path l-2, path l-1, path l, and path l+1, where path l is the target path.

[0105] Data eviction after a read operation: When data is read from a trusted area, that data (and possibly other non-target data) is moved to the target path. This may be to free up space in the trusted area for other operations, or to prevent the read data from being accessed or tampered with again for some security reasons. Data eviction after a write operation: When a write operation (i.e., modifying or writing new data) is performed in a trusted area, in addition to the target data (i.e., the data being written), other data (including data that may have been read before) is moved to adjacent paths (such as paths l-2, l-1, l, l+1). Here, "l" represents the identifier of the target path, while l-2, l-1, l+1 represent other paths adjacent to the target path. This strategy may be to maintain a certain distribution or redundancy of data, ensure data integrity and accessibility, and reduce the impact of write operations on system performance.

[0106] Specifically, data eviction after a read operation: the read data and non-target data blocks in Stash are evicted to path l. Specifically, first, the data block is encrypted; then, the corresponding data block is XORed in the XOR scheduling module to form a new data block value; finally, it is evicted to the corresponding path l through the memory controller. Data eviction after a write (update) operation: the read data and non-target data blocks in Stash are evicted to paths l-2, l-1, l, l+1. Where l is an odd number, that is, the minimum value of l is 1. If l-2<0, then l-2=(2 (L+1) -1); if l is equal to (2 (L+1) -1), which is equal to the maximum path value, then l+1=0.

[0107] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0108] Based on the same inventive concept, the embodiment of the present application also provides an ORAM system execution processing device for implementing the above-mentioned ORAM system execution processing method. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in the one or more ORAM system execution processing device embodiments provided below can refer to the above-mentioned limitations on the ORAM system execution processing method, and will not be repeated here.

[0109] In one embodiment, Figure 6 As shown, an ORAM system execution processing device is provided, comprising:

[0110] The task division module 100 is used to obtain task requests and divide the task requests into read operation type requests and write operation type requests;

[0111] A detection module 200, used to detect whether the accessed target block is stored in the trusted area;

[0112] The access module 300 is used for classifying and scheduling read operation type requests and write operation type requests when the accessed target block is not stored in the trusted area, and accessing the PosMap to determine the target path;

[0113] A loading module 400, used to load all blocks in the target path from the ORAM tree in the memory into the trusted area;

[0114] An update module 500, configured to update a target block in a trusted region to a new leaf tag;

[0115] The data eviction module 600 is used to respectively evict the data after the read operation and the data after the write operation.

[0116] In one of the embodiments, the ORAM system execution processing device further includes an update module for reading the accessed target block to the processor for a read operation type request when the accessed target block is stored in the trusted area; and for updating the value of the accessed target block to the trusted area for a write operation type request.

[0117] In one embodiment, the access module 300 is also used to determine the path where the target block is accessed by checking PosMap using address for read operation type requests; and to determine the path where the target block is accessed by checking PosMap using address for write operation type requests.

[0118] In one of the embodiments, the loading module 400 is also used to return all blocks in the target path from the memory; return data to the XOR scheduling module through the memory for data XOR processing to obtain data blocks of adjacent nodes of the access path; decrypt the data blocks of adjacent nodes of the access path; and store the decrypted data blocks in the trusted area.

[0119] In one embodiment, the data eviction module 600 is further used to evict the read data and non-target blocks in the trusted area to the target path; evict the read data and non-target data in the trusted area to path l-2, path l-1, path l, and path l+1, where path l is the target path.

[0120] In one embodiment, the data eviction module 600 is further used to encrypt the data and non-target blocks that have been read in the trusted area to obtain encrypted data to be evicted; perform an XOR operation on the encrypted data to be evicted in the XOR scheduling module to form a new data block value; and evict the new data block value to the corresponding target path through the memory controller.

[0121] Each module in the above ORAM system execution processing device can be implemented in whole or in part by software, hardware and a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.

[0122] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an ORAM system execution processing method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0123] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0124] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above ORAM system execution processing method when executing the computer program.

[0125] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned ORAM system execution processing method is implemented.

[0126] In one embodiment, a computer program product is provided, including a computer program, which implements the above ORAM system execution processing method when executed by a processor.

[0127] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0128] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the above-mentioned computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0129] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0130] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An ORAM system execution processing method, characterized in that: The method comprises: Obtain task requests, and divide the task requests into read operation type requests and write operation type requests; Detect whether the accessed target block is stored in a trusted area; If the accessed target block is not stored in the trusted area, the read operation type request and the write operation type request are classified and scheduled, and the PosMap is accessed to determine the target path; Load all blocks in the target path from the ORAM tree in memory into the trusted area; Updating the target block in the trusted region to a new leaf tag; The data after the read operation and the data after the write operation are evicted respectively.

2. The method according to claim 1, characterized in that: Also includes: If the accessed target block is stored in the trustworthy area, requesting the accessed target block to be read to the processor for a read operation type; For a write operation type request, the value of the accessed target block is updated to the trusted area.

3. The method according to claim 1, characterized in that Classifying and scheduling the read operation type request and the write operation type request, and accessing PosMap to determine the target path includes: For the read operation type request, determine the path to access the target block by checking PosMap using address; For the write operation type request, the path to access the target block is determined by checking the PosMap using the address.

4. The method according to claim 1, characterized in that: The step of loading all blocks in the target path from the ORAM tree in the memory into the trusted area includes: Return all blocks in the target path from memory; The data is returned from the memory to the XOR scheduling module for XOR processing to obtain the data blocks of the adjacent nodes of the access path; Decrypting data blocks of adjacent nodes of the access path; The decrypted data of the data block is stored in the trusted area.

5. The method according to claim 1, characterized in that: Evicting the data after the read operation includes: evicting the read data and non-target blocks in the trusted area to the target path; Evicting the data after the write operation includes: evicting the read data and non-target data in the trusted area to path l-2, path l-1, path l, and path l+1, where path l is the target path.

6. The method according to claim 5, characterized in that The step of expelling the read data and non-target blocks in the trusted area to the target path comprises: Encrypting the read data and non-target blocks in the trusted area to obtain encrypted data to be evicted; Performing an XOR operation on the encrypted data to be evicted in an XOR scheduling module to form a new data block value; The new data block value is driven to the corresponding target path through the memory controller.

7. An ORAM system execution processing device, characterized in that: The device comprises: A task division module is used to obtain task requests and divide the task requests into read operation type requests and write operation type requests; A detection module, used for detecting whether the accessed target block is stored in a trusted area; An access module, used for classifying and scheduling the read operation type request and the write operation type request when the accessed target block is not stored in the trusted area, and accessing PosMap to determine the target path; A loading module, used to load all blocks in the target path from the ORAM tree in the memory into the trusted area; An update module, used for updating the target block in the trusted area to a new leaf tag; The data eviction module is used to respectively evict the data after the read operation and the data after the write operation.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Address label distribution scheduling and multipath cache write-back method for Path ORAM

    CN112181864A

  • Access method of ORAM (Optical Random Access Memory) and ORAM controller

    CN117667753A

  • Practical ORAM delegation for untrusted memory on cloud servers

    US20200042442A1