A transparent encryption and decryption method, system and storage medium based on multi-thread environment

A transparent encryption and decryption, multi-threaded technology, applied in the field of data protection, can solve problems such as unresponsiveness, affecting user experience, black screen, etc., to avoid mutual exclusion problems, avoid early release, and avoid errors.
CN111832054BActive Publication Date: 2022-03-15ZHENGZHOU XINDA JIEAN INFORMATION TECH

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHENGZHOU XINDA JIEAN INFORMATION TECH
Publication Date
2022-03-15

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The present invention proposes a transparent encryption and decryption method, computer equipment and storage medium based on a multi-thread environment. The transparent encryption and decryption method includes: obtaining a file descriptor FD, receiving an operation request from the first thread for a file; using an atomic operation function To operate the global VFDSet, search for the corresponding virtual file descriptor VFD in the global VFDSet through the file descriptor FD, if the virtual file descriptor VFD is not found, judge the current state of the file descriptor FD, if the current state is marked as closed state, the virtual file system will directly return an error message and end the process; if the current state is marked as an initialization state, call the I / O function of the operating system to directly perform plaintext operations on the file; if the virtual file descriptor VFD is found, based on The virtual file descriptor VFD implements transparent encryption and decryption operations on files at the virtual file system layer. The invention can solve the problem of mutual exclusion between multi-threads and avoid file data errors.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the technical field of data protection, in particular to a transparent encryption and decryption method, system and storage medium based on a multi-thread environment. Background technique

[0002] In the actual operation of the transparent encryption and decryption system, there is a problem of multi-thread concurrency. When multiple threads operate a file at the same time, mutual exclusion is required for accessing and destroying data shared by threads in the virtual file layer. The global VFDSet and the virtual file descriptor VFD are shared by threads at the virtual file layer. The virtual file descriptor VFD is consistent with the real file descriptor. The global VFDSet is a collection of virtual file descriptors VFD. The global VFDSet and virtual file descriptor VFD data are required to be opened and closed as well as read and write operations on files. In order to avoid data errors, mutual exclusion locks need to be add...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More