CN109040653A - Data encrypting and deciphering expense determines method, apparatus and electronic equipment - Google Patents

Data encrypting and deciphering expense determines method, apparatus and electronic equipment Download PDF

Info

Publication number
CN109040653A
CN109040653A CN201810687105.7A CN201810687105A CN109040653A CN 109040653 A CN109040653 A CN 109040653A CN 201810687105 A CN201810687105 A CN 201810687105A CN 109040653 A CN109040653 A CN 109040653A
Authority
CN
China
Prior art keywords
thread
expense
data
encryption
decryption
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810687105.7A
Other languages
Chinese (zh)
Other versions
CN109040653B (en
Inventor
田邵华
赵毅
胡小鹏
顾振华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Keda Technology Co Ltd
Original Assignee
Suzhou Keda Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Keda Technology Co Ltd filed Critical Suzhou Keda Technology Co Ltd
Priority to CN201810687105.7A priority Critical patent/CN109040653B/en
Publication of CN109040653A publication Critical patent/CN109040653A/en
Application granted granted Critical
Publication of CN109040653B publication Critical patent/CN109040653B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/15Conference systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2347Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving video stream encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4405Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4408Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream encryption, e.g. re-encrypting a decrypted video stream for redistribution in a home network

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Storage Device Security (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of data encrypting and deciphering expenses to determine method, device and electronic equipment, wherein method includes: to control the operating status of thread in data encryption process;Wherein, thread includes at least one of: obtaining thread, encryption thread, sends thread;When encrypting thread and transmission thread is out of service, the expense of the acquisition thread in data encryption process is extracted, will acquire the expense of thread as the first expense;When transmission thread is out of service, the expense for obtaining thread and encrypting thread in data encryption process is extracted, thread is will acquire and encrypts the expense of thread as the second expense;Using the first expense and the second expense, encryption overhead is determined.This method is just capable of determining that data encryption expense merely with encryption meeting, it is compared without introducing non-encrypted meeting, so that fixed limit is scheduled on same target to data encryption expense really, and it to guarantee all expenses is all carried out under same benchmark, the accuracy of data encryption expense with higher.

Description

Data encrypting and deciphering expense determines method, apparatus and electronic equipment
Technical field
The present invention relates to video conferencing technology fields, and in particular to a kind of data encrypting and deciphering expense determine method, apparatus and Electronic equipment.
Background technique
In recent years, under the promotion of Internet rapid development, people are to safe and efficient, belt-tightening video conference System is increasingly paid close attention to.Video conferencing system links up the conference terminal in two or more places by network, makes to be in different The member on ground can discuss with regard to same subject under discussion, can not only hear the sound of spokesman between each other but also can also be seen that The image and background of spokesman, while the information such as data, text, chart in relation to subject under discussion can also be exchanged.
Add when needing to carry out important meeting in many ways, the data that network is sent are typically required in video conferencing system Close.But encrypt and decrypt operation will increase and calculate time, memory and energy consumption, show most intuitive body in meeting It is now exactly the increase of video pictures delay.For embedded device, the resource of CPU and memory is that exception is valuable, therefore To guarantee that too many resource cannot be occupied when being encrypted and decrypted.
Therefore, it is necessary to quantitatively determine to encryption and decryption expense during video conference.In the prior art, add for determining The most common method of expense is decrypted, passing through between comparison encryption meeting and non-encrypted meeting is performance difference to determine, i.e., The performance difference encrypted between meeting and non-encrypted meeting is to be by comparative analysis due to caused by the encryption and decryption to data It can determine that the expense of encryption and decryption.
However, in the above-mentioned technical solutions, the data as transmitted by different conference terminals are different, then to difference The data progress encryption and decryption operation time used is also different;Network state cannot be completely secured in the meeting that different time is held It is consistent, and the time used in the progress encryption and decryption operation of network state difference is also different.Therefore, pass through comparison encryption meeting with it is non- Encryption and decryption expense accuracy is lower in the video conference that performance difference between encryption meeting is determined.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of data encrypting and deciphering expenses to determine method, apparatus and electronic equipment, Accuracy to solve the problems, such as the encryption and decryption expense determined by method in the prior art is lower.
For this purpose, the embodiment of the invention provides following technical solutions:
First aspect present invention provides a kind of data encryption expense and determines method, comprising:
Control the operating status of thread in data encryption process;Wherein, the thread includes at least one of: for obtaining Take the acquisition thread of raw data packets, the encryption thread for encrypting the raw data packets, encrypted described for sending The transmission thread of raw data packets;
When the encryption thread and the transmission thread out of service, extract described in the data encryption process The expense for obtaining thread, using the expense for obtaining thread as the first expense;
When the transmission thread is out of service, extract the acquisition thread in the data encryption process and it is described plus The expense of close thread, using the expense of the acquisition thread and the encryption thread as the second expense;
Using first expense and second expense, the encryption overhead is determined.
Data encryption expense provided by the invention determines method, by the way that data encryption process is divided into acquisition thread, adds Close thread and thread is sent, and the operating status at least one of controlling above-mentioned thread and data is determined according to the operating status Encryption overhead, this method are just capable of determining that data encryption expense merely with encryption meeting, without introduce non-encrypted meeting into Row comparison, so that fixed limit is scheduled on same target to data encryption expense really, to guarantee that all establish a capital really is under same benchmark It carries out, the accuracy for the data encryption expense determined is higher, and this method can be avoided caused by extraneous factor really Fixed number is different according to the benchmark of two objects of encryption overhead, influences the accuracy of determined data encryption expense.
With reference to first aspect, in first aspect first embodiment, the fortune of thread in the control data encryption process Row state includes:
The first control command is sent, to stop the encryption thread and the transmission thread;
The second control command is sent, to stop the transmission thread.
Data encryption expense provided in an embodiment of the present invention determines method, wherein entire data encryption process is to obtain line After journey obtains raw data packets, encryption thread encrypts raw data packets, and encrypted raw data packets pass through transmission Thread is sent, and cooperates between above three thread and independent operating passes through due to independent operating between three threads Control command can be realized as certain threads are out of service, provide condition for the corresponding expense of the certain threads of subsequent determination.
With reference to first aspect, described using first expense and described the in first aspect second embodiment Two expenses determine the encryption overhead, comprising:
First expense is subtracted using second expense, obtains the expense of the encryption thread;Wherein, described will add The expense of close thread is as the encryption overhead.
Second aspect of the present invention provides a kind of data deciphering expense and determines method, comprising:
Control the operating status of thread in data decrypting process;Wherein, the thread includes at least one of: for connecing The receiving thread for receiving encrypted raw data packets, for what the encrypted raw data packets received were decrypted Thread is decrypted, and is used for transmission the transmission thread of the data packet obtained after decryption;
When the decryption thread and the transmission thread out of service, extract described in the data decrypting process The expense of receiving thread, using the expense of the receiving thread as third expense;
When the transmission thread is out of service, the receiving thread in the data decrypting process and the solution are extracted The expense of close thread, using the expense of the receiving thread and the decryption thread as the 4th expense;
Using the third expense and the 4th expense, the decryption expense is determined.
Data deciphering expense provided by the invention determines method, by the way that data decrypting process is divided into receiving thread, solves Close thread and transmission thread, and the operating status that at least one of controls above-mentioned thread and data are determined according to the operating status Decrypt expense, this method is just capable of determining that data deciphering expense merely with encryption meeting, without introduce non-encrypted meeting into Row comparison, so that fixed limit is scheduled on same target to data deciphering expense really, to guarantee that all establish a capital really is under same benchmark It carries out, the accuracy for the data deciphering expense determined is higher, and this method can be avoided caused by extraneous factor really The benchmark for determining two objects of data deciphering expense is different, influences the accuracy of determined data deciphering expense.
In conjunction with second aspect, in second aspect first embodiment, the fortune of thread in the control data decrypting process Row state, comprising:
Third control command is sent, to stop the decryption thread and the transmission thread;
The 4th control command is sent, to stop the transmission thread.
Data deciphering expense provided in an embodiment of the present invention determines method, wherein entire data decrypting process is to receive line After journey receives encrypted raw data packets, received encrypted packet is decrypted using decryption thread, and The data packet obtained after decryption is transferred out, mutual cooperation and independent operating between above three thread, due to three threads Between independent operating, can be realized as by control command certain threads are out of service, be that the certain threads of subsequent determination are corresponding Expense provide condition.
It is described using the third expense and described the in second aspect second embodiment in conjunction with second aspect Four expenses determine the decryption expense, comprising:
The third expense is subtracted using the 4th expense, obtains the expense of the decryption thread;Wherein, by the solution The expense of close thread is as the decryption expense.
Third aspect present invention provides a kind of data encryption expense determining device, comprising:
First control module, for controlling the operating status of thread in data encryption process;Wherein, the thread include with It is at least one lower: for obtaining the acquisition thread of raw data packets, the encryption thread for encrypting the raw data packets, being used for Send the transmission thread of the encrypted raw data packets;
First extraction module, for extracting the number when the encryption thread and the transmission thread out of service According to the expense of the acquisition thread in ciphering process, using the expense for obtaining thread as the first expense;
Second extraction module, for extracting the institute in the data encryption process when the transmission thread is out of service The expense for obtaining thread and the encryption thread is stated, the expense of the acquisition thread and the encryption thread is opened as second Pin;
Encryption overhead determining module determines that the encryption is opened for utilizing first expense and second expense Pin.
Data encryption expense determining device provided by the invention is added by the way that data encryption process is divided into acquisition thread Close thread and thread is sent, and the operating status at least one of controlling above-mentioned thread and data is determined according to the operating status Encryption overhead, the device are just capable of determining that data encryption expense merely with encryption meeting, without introduce non-encrypted meeting into Row comparison, so that fixed limit is scheduled on same target to data encryption expense really, to guarantee that all establish a capital really is under same benchmark It carries out, the accuracy for the data encryption expense determined is higher, which can be avoided caused by extraneous factor really Fixed number is different according to the benchmark of two objects of encryption overhead, influences the accuracy of determined data encryption expense.
Fourth aspect present invention provides a kind of data deciphering expense determining device, comprising:
Second control module, for controlling the operating status of thread in data decrypting process;Wherein, the thread include with It is at least one lower: for receiving the receiving thread of encrypted raw data packets, for the encrypted original received The decryption thread that beginning data packet is decrypted, and it is used for transmission the transmission thread of the data packet obtained after decryption;
Third extraction module, for extracting the number when the decryption thread and the transmission thread out of service According to the expense of the receiving thread in decrypting process, using the expense of the receiving thread as third expense;
4th extraction module, for extracting the institute in the data decrypting process when the transmission thread is out of service The expense for stating receiving thread and the decryption thread opens the expense of the receiving thread and the decryption thread as the 4th Pin;
Expense determining module is decrypted, for utilizing the third expense and the 4th expense, determines that the decryption is opened Pin.
Data deciphering expense determining device provided by the invention is solved by the way that data decrypting process is divided into receiving thread Close thread and transmission thread, and the operating status that at least one of controls above-mentioned thread and data are determined according to the operating status Decrypt expense, which is just capable of determining that data deciphering expense merely with encryption meeting, without introduce non-encrypted meeting into Row comparison, so that fixed limit is scheduled on same target to data deciphering expense really, to guarantee that all establish a capital really is under same benchmark It carries out, the accuracy for the data deciphering expense determined is higher, which can be avoided caused by extraneous factor really The benchmark for determining two objects of data deciphering expense is different, influences the accuracy of determined data deciphering expense.
Fifth aspect present invention provides a kind of electronic equipment, comprising: at least one processor;And with described at least one The memory of a processor communication connection;Wherein, the memory is stored with the instruction that can be executed by one processor, institute It states instruction to be executed by least one described processor, so that at least one described processor executes above-mentioned first aspect and first Data encryption expense described in any one embodiment of aspect determines that method or above-mentioned second aspect and second aspect are appointed Data deciphering expense described in a kind of embodiment of anticipating determines method.
Sixth aspect present invention provides a kind of computer readable storage medium, is stored thereon with computer instruction, special Sign is, which is executed by processor data described in above-mentioned first aspect and first aspect any one embodiment Encryption overhead determines that data deciphering described in method or above-mentioned second aspect and second aspect any one embodiment is opened Sell the method for determination.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 shows a structure chart specifically illustrated of video conferencing system in the embodiment of the present invention;
Fig. 2 is the flow chart specifically illustrated that middle data encryption expense determines method according to embodiments of the present invention;
Fig. 3 is another flow chart specifically illustrated that middle data encryption expense determines method according to embodiments of the present invention;
Fig. 4 is the flow chart specifically illustrated that middle data deciphering expense determines method according to embodiments of the present invention;
Fig. 5 is another flow chart specifically illustrated that middle data deciphering expense determines method according to embodiments of the present invention;
Fig. 6 is a structure chart specifically illustrated of middle data encryption expense determining device according to embodiments of the present invention;
Fig. 7 is another structure chart specifically illustrated of middle data encryption expense determining device according to embodiments of the present invention;
Fig. 8 is a structure chart specifically illustrated of middle data deciphering expense determining device according to embodiments of the present invention;
Fig. 9 is another structure chart specifically illustrated of middle data deciphering expense determining device according to embodiments of the present invention;
Figure 10 is the hardware structural diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those skilled in the art are not having Every other embodiment obtained under the premise of creative work is made, shall fall within the protection scope of the present invention.
It should be noted that data encryption is sent, decrypted transport is all a complete process, and each step is all upper with it Lower process is tied in a hundred and one ways, i.e., there are coupled relations for each step and its process up and down.Present inventor passes through Data encryption is sent and the process of decrypted transport is precisely separated and decoupling, is split as three moulds respectively by creative work Block after splitting whole process, will not influence the original operation of program.Wherein, each inside modules relevance is very big, but mould Relevance very little between block, each module after splitting are equivalent to the small routine worked in coordination one by one.And utilize fractionation Module out, quantitative analytical data encryption and decryption expense.Specifically, the module separation in data encryption and decrypting process After good, setting command is needed to control starting and stopping for each little module and (stop meaning here and thoroughly no longer execute This part, rather than some module is allowed to become backstage dormant state);When controlling little module, its of program is not influenced The normal operation of his part is (that is, by the way that, to connection function, each module starts and stops not between design modules Other modules can be impacted).
Wherein, since starting or stoping for each module is controlled by thread, the present invention passes through control thread Operating status realizes the control to corresponding module operating status, and by mentioning when the corresponding thread of certain module is out of service Take the expense for the thread being currently running;By can accurately determine encryption line to the various combined controls of each thread Journey, and the expense of decryption thread, so that it is determined that data encryption expense and decryption expense out.
In addition, it is audio data in video conference that the data in the present invention, which can be, it is also possible to video data;It can also To be the data of other needs encryptions or decryption.In the following description, it is described by taking video conferencing system as an example, such as Fig. 1 institute Show, is the application scenarios schematic diagram of the embodiment of the present invention.Video conferencing system includes one-on-one, also includes multipoint video Meeting illustrates only one-to-one meeting in Fig. 1.Wherein, as shown in Figure 1, the participant terminal of the video conference is respectively first Terminal and second terminal, when first terminal sends data to second terminal, first terminal needs to encrypt data, and Second terminal needs that data are decrypted;Conversely, when second terminal sends data to first terminal, second terminal needs pair Data are encrypted, and in first terminal need that data are decrypted.It will necessarily be generated in data encryption or decrypting process Encryption overhead, or decryption expense.
Therefore, the present invention provides a kind of electronic equipment, which passes through control first terminal or second terminal middle line The operating status of journey, and data encryption or decryption expense are determined according to the operating status of each thread.
Wherein, which can be independence and first terminal or second terminal is arranged, and be also possible to setting the In one terminal and/or second terminal.In the present invention with no restrictions to the setting of electronic equipment, it need to only guarantee electronic equipment benefit It determines that method and/or data deciphering expense determine method with data encryption expense provided by the invention, determines encryption overhead, solve Close expense, belongs to protection scope of the present invention.
According to embodiments of the present invention, the embodiment that a kind of data encryption expense determines method is provided, it should be noted that Step shown in the flowchart of the accompanying drawings can execute in a computer system such as a set of computer executable instructions, and It, in some cases, can be to be different from sequence execution institute herein and although logical order is shown in flow charts The step of showing or describing.
A kind of data encryption expense is provided in the present embodiment and determines method, can be used in above-mentioned electronic equipment, Fig. 2 It is the flow chart that data encryption expense according to an embodiment of the present invention determines, as shown in Fig. 2, the process includes the following steps:
S11 controls the operating status of thread in data encryption process.
Wherein, thread includes at least one of: for obtaining the acquisition thread of raw data packets, for encrypting original number According to encryption thread, the transmission thread for sending encrypted raw data packets of packet.
In the present embodiment, data encryption process includes: that (1) obtains thread, obtains raw data packets;(2) thread is encrypted, it is right The raw data packets got are encrypted;(3) thread is sent, encrypted raw data packets are sent.Wherein, above-mentioned Mutual cooperation and independent operating, can control the operating status of thread in data encryption process between three threads, i.e. control is each Thread starts or stops.
For example, can control encryption thread and send the stopping of thread, the stopping for sending thread also can control, it can also All started with controlling above three thread.
Wherein, when the operating status of thread is to stop, then the thread would not generate expense, what is extracted at this time is opened Expense caused by the thread that pin is as currently running.For example, when transmission thread is out of service, data encryption at this time The expense generated in journey is the expense for obtaining thread and encrypting thread;When encrypting thread and transmission thread is out of service, The expense generated in data encryption process at this time is to obtain the expense of thread;When above three thread is all run, count at this time It is whole expenses of above three thread according to the expense generated in ciphering process.Therefore, pass through the operation shape of each thread of control State can accurately determine data encryption expense.
Mutually indepedent, the fortune of these modules since entire data encryption process is split as 3 modules, and between each module It is controlled when row by thread.Therefore, when electronic equipment is when certain threads are out of service, it is currently running the expense of thread The expense of as entire data encryption process, the expense of thread is currently running by extracting, that is, can determine that data add Close expense.
S12 extracts opening for the acquisition thread in data encryption process when encrypting thread and transmission thread is out of service Pin, will acquire the expense of thread as the first expense.
When encrypting thread and transmission thread is out of service, the thread run in data encryption process at this time is only to obtain Thread, electronic equipment extract the expense of the acquisition thread in current data ciphering process by control instruction, wherein first opens Pin is the expense for obtaining thread.
S13 extracts the acquisition thread in data encryption process and encrypts opening for thread when transmission thread is out of service Pin will acquire thread and encrypt the expense of thread as the second expense.
When transmission thread is out of service, the thread run in data encryption process at this time is acquisition thread and encryption line Journey, electronic equipment extract the expense for obtaining thread and encrypting thread in current data ciphering process by control instruction, In, the second expense is the expense for obtaining thread and encrypting thread.
For example, be linux system for executing run on the electronic equipment of the data ciphering method in the present embodiment, In, the expense of the thread run in data encryption process is extracted by control instruction in linux system, it can be in the following way It realizes:
1. sending the control command (for example, top order) for being used for monitors system conditions to electronic equipment;
2. sending the control command (for example, digital " 1 ") for monitoring each logic cpu status to electronic equipment;
3. reading the third line field, i.e. the percentage R1 (for example, 6.7%us) of reading user's space occupancy CPU;
4. being successively read the corresponding CPU that occupies of corresponding process uses the field of percentage R2 and the word of memory usage amount Section;
5. using R1, R2 and R3 as the result for obtaining overhead data.
Wherein, the control command used on different operating system is not necessarily identical, but in different operating system On can using control command realize current system resource service condition extraction.
S14 determines encryption overhead using the first expense and the second expense.
When determining encryption overhead, it can use the first expense and the second expense directly calculated, it is specific as follows, due to Therefore first expense utilizes second as the expense for obtaining thread and encryption thread as the expense for obtaining thread, the second expense Expense, which subtracts the first expense, can be obtained the expense of encryption thread.Wherein, the expense of thread will be encrypted as encryption overhead;It can also Repeatedly to extract the first expense and the second expense respectively, and calculate the average value of the first expense and being averaged for the second expense Value, the first expense after being subtracted averagely using the second expense after being averaged, is obtained the expense of encryption thread, will encrypt opening for thread Pin is used as encryption overhead.
Data encryption expense provided by the invention determines method, by the way that data encryption process is divided into acquisition thread, adds Close thread and thread is sent, and the operating status at least one of controlling above-mentioned thread and data is determined according to the operating status Encryption overhead, this method are just capable of determining that data encryption expense merely with encryption meeting, without introduce non-encrypted meeting into Row comparison, so that fixed limit is scheduled on same target to data encryption expense really, to guarantee that all establish a capital really is under same benchmark It carries out, the accuracy for the data encryption expense determined is higher, and this method can be avoided caused by extraneous factor really Fixed number is different according to the benchmark of two objects of encryption overhead, influences the accuracy of determined data encryption expense.That is, Compared with prior art, method provided by the invention can fast quantification data encryption expense, realize encryption performance expense It is accurate to calculate, evade after calculating separately expense in different meetings the mode of comparison result again, considerably increases calculated result Reliability and preciseness.
In the present embodiment, other than it can determine encryption overhead, it can also determine in the same way and obtain thread Expense or send thread expense.Such as: when all threads are all run, extract the expense in current data ciphering process A1;When encrypting thread and transmission thread is out of service, the expense A2 in current data ciphering process is extracted, is subtracted using A2 The expense for obtaining thread can be obtained in A1.
The embodiment of the invention also provides a kind of data encryption expenses to determine method, as shown in figure 3, this method comprises:
S21 controls the operating status of thread in data encryption process.
Wherein, thread includes at least one of: for obtaining the acquisition thread of raw data packets, for encrypting the original Encryption thread, the transmission thread for sending the encrypted raw data packets of beginning data packet.
In the present embodiment, the operating status of controlled thread is respectively to stop encryption thread and send thread, and stop Send thread.Specifically includes the following steps:
S211 sends the first control command, to stop encryption thread and send thread.
Electronic equipment sends the first control command to the terminal encrypted to data, for stopping encryption thread and hair Line sending journey just stops subsequent encryption thread and sends the operation of thread that is, after receiving raw data packets.
S212 sends the second control command, to stop sending thread.
Electronic equipment sends the second control command to the terminal encrypted to data, sends thread for stopping, that is, exists To after raw data packets encryption and before sending encrypted raw data packets, just stop the subsequent operation for sending thread.
S22 extracts opening for the acquisition thread in data encryption process when encrypting thread and transmission thread is out of service Pin, will acquire the expense of thread as the first expense.The S12 of embodiment illustrated in fig. 2 is referred to, details are not described herein.
S23 extracts the acquisition thread in data encryption process and encrypts opening for thread when transmission thread is out of service Pin will acquire thread and encrypt the expense of thread as the second expense.The S13 of embodiment illustrated in fig. 2 is referred to, herein not It repeats again.
S24 determines encryption overhead using the first expense and the second expense.
In the present embodiment, subtracting the first expense using the second expense can be obtained the expense of encryption thread.Wherein, it will encrypt The expense of thread is as encryption overhead.
In the embodiment of the present invention, encrypt thread and send thread it is out of service when, opening in data encryption process at this time Pin is the expense for obtaining thread, and when transmission thread is out of service, the expense in data encryption process is to obtain line at this time The expense of journey and encryption thread, passes through the both the above expense extracted, so that it may utilize mutually only between thread in this method The characteristic of vertical operation, determines the expense of encryption thread.The data encryption expense that this method is determined can be accurate to processing number According to the encryption thread of encryption overhead, the encryption overhead result accuracy determined is high.
Compared with embodiment illustrated in fig. 2, data encryption expense provided in this embodiment determines method, entire data encryption Journey is after obtaining thread acquisition raw data packets, and encryption thread encrypts raw data packets, encrypted initial data Packet is sent by sending thread, mutual cooperation and independent operating between above three thread, due to only between three threads Vertical operation, can be realized as certain threads are out of service by control command, be the corresponding expense of the certain threads of subsequent determination Provide condition.
The embodiment of the invention also provides a kind of data deciphering expenses to determine method, can be used in above-mentioned electronic equipment, As shown in figure 4, this method comprises:
S31 controls the operating status of thread in data decrypting process.
Wherein, thread includes at least one of: for receiving the receiving thread of encrypted raw data packets, for pair The decryption thread that the encrypted raw data packets received are decrypted, and it is used for transmission the data packet obtained after decryption Transmit thread.
In the present embodiment, data decrypting process includes: (1) receiving thread, receives encrypted raw data packets;(2) it solves The encrypted raw data packets received are decrypted in close thread;(3) thread, the data obtained after transmission decryption are transmitted Packet.Wherein, mutual cooperation and independent operating between above three thread, can control the operation shape of thread in data decrypting process State controls starting or stoping for thread.
For example, can control decryption thread and transmit the stopping of thread, the stopping of transmission thread also can control, it can also All started with controlling above three thread.
Wherein, when the operating status of thread is to stop, then the thread would not generate expense, what is extracted at this time is opened Expense caused by the thread that pin is as currently running.For example, when transmit thread it is out of service when, data deciphering mistake at this time The expense generated in journey is receiving thread and the expense for decrypting thread;When decrypting thread and transmission thread is out of service, The expense generated in data decrypting process at this time is the expense of receiving thread;When above three thread is all run, count at this time It is whole expenses of above three thread according to the expense generated in decrypting process.Therefore, pass through the operation shape of each thread of control State can accurately determine data deciphering expense.
Mutually indepedent, the fortune of these modules since entire data decrypting process is split as 3 modules, and between each module It is controlled when row by thread.Therefore, when electronic equipment is when certain threads are out of service, it is currently running the expense of thread The expense of as entire data decrypting process, the expense of thread is currently running by extracting, that is, can determine that data solution Close expense.
S32 extracts opening for the receiving thread in data decrypting process when decrypting thread and transmission thread is out of service Pin, using the expense of receiving thread as third expense.
When decrypting thread and transmission thread is out of service, the thread run in data decrypting process at this time is only to transmit Thread, electronic equipment extract the expense of the receiving thread in current data decrypting process by control instruction, wherein third is opened Pin is the expense for transmitting thread.
S33 extracts the receiving thread in data decrypting process and decrypts opening for thread when transmission thread is out of service Pin, using the expense of receiving thread and decryption thread as the 4th expense.
When transmission thread is out of service, the thread run in data decrypting process at this time is receiving thread and decryption line Journey, electronic equipment extract the expense of the receiving thread and decryption thread in current data decrypting process by control instruction, In, the 4th expense is the expense of receiving thread and decryption thread.
Wherein, by way of the process that control instruction stops in data decrypting process, embodiment shown in Figure 3 Associated description, details are not described herein.
S34 determines decryption expense using third expense and the 4th expense.
When determining decryption expense, it can use third expense and the 4th expense directly calculated, it is specific as follows, due to Therefore expense of the third expense as receiving thread, the 4th expense utilize the 4th as the expense of receiving thread and decryption thread Expense, which subtracts third expense, can be obtained the expense of decryption thread.Wherein, the expense of thread will be decrypted as decryption expense;It can also Repeatedly to extract third expense and the 4th expense respectively, and calculate the average value of third expense and being averaged for the 4th expense Value, the third expense after being subtracted averagely using the 4th expense after being averaged, is obtained the expense of decryption thread, will decrypt opening for thread Pin is as decryption expense.
Data deciphering expense provided in this embodiment determines method, by the way that data decrypting process is divided into receiving thread, Thread and transmission thread are decrypted, and the operating status at least one of controlling above-mentioned thread and number is determined according to the operating status According to decryption expense, this method is just capable of determining that data deciphering expense merely with encryption meeting, without introducing non-encrypted meeting It compares, so that fixed limit is scheduled on same target to data deciphering expense really, to guarantee that all establish a capital really is in same benchmark Lower progress, the accuracy for the data deciphering expense determined is higher, and this method can be avoided caused by extraneous factor It determines that the benchmark of two objects of data deciphering expense is different, influences the accuracy of determined data deciphering expense.
The embodiment of the invention also provides a kind of data deciphering expenses to determine method, as shown in figure 5, this method comprises:
S41 controls the operating status of thread in data decrypting process.
Wherein, thread includes at least one of: for receiving the receiving thread of encrypted raw data packets, for pair The decryption thread that the encrypted raw data packets received are decrypted, and it is used for transmission the data packet obtained after decryption Transmit thread.
S411 sends third control command, to stop decryption thread and transmission thread.
Electronic equipment sends third control command to the terminal that data are decrypted, for stopping decryption thread and transmission Thread just stops subsequent decryption thread and transmits the operation of thread that is, after receiving encrypted raw data packets.
S412 sends the 4th control command, to stop transmitting thread.
Electronic equipment sends the 4th control command to the terminal that data are decrypted, and for stopping transmission thread, that is, exists Before the data packet after the packet decryption received and after transmission decryption, just stop the operation of subsequent transmission thread.
S42 extracts opening for the receiving thread in data decrypting process when decrypting thread and transmission thread is out of service Pin.The S32 of embodiment illustrated in fig. 4 is referred to, details are not described herein.
S43 extracts the receiving thread in data decrypting process and decrypts opening for thread when transmission thread is out of service Pin.The S33 of embodiment illustrated in fig. 4 is referred to, details are not described herein.
S44 determines decryption expense using third expense and the 4th expense.
In the present embodiment, subtracting third expense using the 4th expense can be obtained the expense of decryption thread.Wherein, it will decrypt The expense of thread is as decryption expense.
Wherein, when decrypting thread and transmission thread is out of service, the expense in data decrypting process is to receive at this time The expense of thread, when transmission thread is out of service, the expense in data decrypting process is receiving thread and decryption line at this time The expense of journey passes through the both the above expense extracted, so that it may utilize the spy run independently of each other between thread in this method Property, determine the expense of decryption thread.The data deciphering expense that this method is determined can be accurate to processing data deciphering expense Decryption thread, the decryption expense result accuracy determined is high.
Compared with embodiment illustrated in fig. 4, data deciphering expense provided in this embodiment determines method, wherein entire data Decrypting process is after receiving thread receives encrypted raw data packets, using decryption thread to received encryption number It is decrypted according to packet, and the data packet obtained after decryption is transferred out, cooperate between above three thread and independently transported Row, due to independent operating between three threads, can be realized as by control command certain threads are out of service, for it is subsequent really Determine the corresponding expense of certain threads and provides condition.
The embodiment of the invention also provides a kind of data encrypting and deciphering expenses to determine method, and detailed process is as follows:
Electronic equipment control data encryption equipment in, the running state of a process in data encryption process, and according into The operating status of journey can determine data encryption expense;Electronic equipment controls in data decryption apparatus, in data decrypting process Running state of a process can determine data deciphering expense and according to running state of a process;Therefore, data encrypting and deciphering is opened Pin is the sum of data encryption expense and data deciphering expense.Wherein, the determination method of data encryption expense refers to Fig. 2 or Fig. 3 Illustrated embodiment;The determination method of data deciphering expense refers to Fig. 4 or embodiment illustrated in fig. 5.
As a kind of optional embodiment of the present embodiment, data encrypting and deciphering expense is when determining, available several numbers According to encryption overhead and data deciphering expense, and calculate the average value of all data encryption expenses and all data decipherings are opened The average value of pin, wherein data encrypting and deciphering expense is that average data encryption overhead and average data decrypt the sum of expense.
A kind of data encryption expense determining device is additionally provided in the present embodiment, and the device is for realizing above-described embodiment And preferred embodiment, the descriptions that have already been made will not be repeated.As used below, term " thread " may be implemented to make a reservation for The combination of the software and/or hardware of function.It is hard although device described in following embodiment is preferably realized with software The realization of the combination of part or software and hardware is also that may and be contemplated.
The present embodiment provides a kind of data encryption expense determining devices, as shown in Figure 6, comprising:
First control module 51, for controlling the operating status of thread in data encryption process;Wherein, thread includes following At least one: for obtaining the acquisition threads of raw data packets, the encryption thread for encrypting raw data packets, for sending plus The transmission thread of raw data packets after close.
First extraction module 52, for extracting data encryption process when encrypting thread and transmission thread is out of service In acquisition thread expense, will acquire the expense of thread as the first expense.
Second extraction module 53, for extracting the acquisition thread in data encryption process when transmission thread is out of service With the expense of encryption thread, it will acquire thread and encrypt the expense of thread as the second expense.
Encryption overhead determining module 54 determines encryption overhead for utilizing the first expense and the second expense.
Data encryption expense determining device provided by the invention is added by the way that data encryption process is divided into acquisition thread Close thread and thread is sent, and the operating status at least one of controlling above-mentioned thread and data is determined according to the operating status Encryption overhead, the device are just capable of determining that data encryption expense merely with encryption meeting, without introduce non-encrypted meeting into Row comparison, so that fixed limit is scheduled on same target to data encryption expense really, to guarantee that all establish a capital really is under same benchmark It carries out, the accuracy for the data encryption expense determined is higher, which can be avoided caused by extraneous factor really Fixed number is different according to the benchmark of two objects of encryption overhead, influences the accuracy of determined data encryption expense.
In some optional embodiments of the present embodiment, as shown in Figure 7, wherein the first control module 51 includes:
First transmission unit 511, for sending the first control command, to stop encryption thread and send thread.
Second transmission unit 512, for sending the second control command, to stop sending thread.
The embodiment of the present invention also provides a kind of data deciphering expense determining device, as shown in figure 8, the device includes:
Second control module 61, for controlling the operating status of thread in data decrypting process;Wherein, thread includes following At least one: for receiving the receiving thread of encrypted raw data packets, for the encrypted initial data received The decryption thread being decrypted is wrapped, and is used for transmission the transmission thread of the data packet obtained after decryption.
Third extraction module 62, for extracting data decrypting process when decrypting thread and transmission thread is out of service In receiving thread expense, using the expense of receiving thread as third expense.
4th extraction module 63, for extracting the receiving thread in data decrypting process when transmission thread is out of service With decryption thread expense, using receiving thread and decryption thread expense as the 4th expense.
Expense determining module 64 is decrypted, for utilizing third expense and the 4th expense, determines decryption expense.
Data deciphering expense determining device provided by the invention is solved by the way that data decrypting process is divided into receiving thread Close thread and transmission thread, and the operating status that at least one of controls above-mentioned thread and data are determined according to the operating status Decrypt expense, which is just capable of determining that data deciphering expense merely with encryption meeting, without introduce non-encrypted meeting into Row comparison, so that fixed limit is scheduled on same target to data deciphering expense really, to guarantee that all establish a capital really is under same benchmark It carries out, the accuracy for the data deciphering expense determined is higher, which can be avoided caused by extraneous factor really The benchmark for determining two objects of data deciphering expense is different, influences the accuracy of determined data deciphering expense.
In some optional embodiments of the present embodiment, as shown in Figure 9, wherein the second control module 61 includes:
Third transmission unit 611, for sending third control command, to stop decryption thread and transmission thread.
4th transmission unit 612, for sending the 4th control command, to stop transmitting thread.
The embodiment of the present invention also provides a kind of electronic equipment, and there is data encryption expense shown in above-mentioned Fig. 6 or 7 to determine dress It sets, alternatively, data deciphering expense determining device shown in above-mentioned Fig. 8 or 9.
Referring to Fig. 10, Figure 10 is the structural schematic diagram for a kind of electronic equipment that alternative embodiment of the present invention provides, such as scheme Shown in 10, which may include: at least one processor 71, such as CPU (Central Processing Unit, centre Manage device), at least one communication interface 73, memory 74, at least one communication bus 72.Wherein, communication bus 72 for realizing Connection communication between these components.Wherein, communication interface 73 may include display screen (Display), keyboard (Keyboard), Optional communication interface 73 can also include standard wireline interface and wireless interface.Memory 74 can be high speed RAM memory (Random Access Memory, effumability random access memory), is also possible to non-labile memory (non- Volatile memory), a for example, at least magnetic disk storage.It is remote that memory 74 optionally can also be that at least one is located at Storage device from aforementioned processor 71.Wherein processor 71 can combine Fig. 6 or 7, alternatively, device described in Fig. 8 or 9, Application program is stored in memory 74, and processor 71 calls the program code stored in memory 74, with above-mentioned for executing Either method step.Wherein, processor 71 is for executing above-mentioned Fig. 2, the data encryption expense determination side of embodiment illustrated in fig. 3 Method, or for executing above-mentioned Fig. 4, the data deciphering expense of embodiment illustrated in fig. 5 determines method.
Wherein, communication bus 72 can be Peripheral Component Interconnect standard (peripheral component Interconnect, abbreviation PCI) bus or expanding the industrial standard structure (extended industry standard Architecture, abbreviation EISA) bus etc..Communication bus 72 can be divided into address bus, data/address bus, control bus etc.. Only to be indicated with a thick line in Figure 10, it is not intended that an only bus or a type of bus convenient for indicating.
Wherein, memory 74 may include volatile memory (English: volatile memory), such as arbitrary access Memory (English: random-access memory, abbreviation: RAM);Memory also may include nonvolatile memory (English Text: non-volatile memory), for example, flash memory (English: flash memory), hard disk (English: hard disk Drive, abbreviation: HDD) or solid state hard disk (English: solid-state drive, abbreviation: SSD);Memory 74 can also include The combination of the memory of mentioned kind.
Wherein, processor 71 can be central processing unit (English: central processing unit, abbreviation: CPU), The combination of network processing unit (English: network processor, abbreviation: NP) or CPU and NP.
Wherein, processor 71 can further include hardware chip.Above-mentioned hardware chip can be specific integrated circuit (English: application-specific integrated circuit, abbreviation: ASIC), programmable logic device (English: Programmable logic device, abbreviation: PLD) or combinations thereof.Above-mentioned PLD can be Complex Programmable Logic Devices (English: complex programmable logic device, abbreviation: CPLD), field programmable gate array (English: Field-programmable gate array, abbreviation: FPGA), Universal Array Logic (English: generic array Logic, abbreviation: GAL) or any combination thereof.
Optionally, memory 74 is also used to store program instruction.Processor 71 can be instructed with caller, realize such as this Shen Please Fig. 2, the data encryption expense of embodiment illustrated in fig. 3 determines method, or for executing above-mentioned Fig. 4, embodiment illustrated in fig. 5 Data deciphering expense determines method.
The embodiment of the invention also provides a kind of non-transient computer storage medium, the computer storage medium is stored with Computer executable instructions, the data encryption expense which can be performed in above-mentioned any means embodiment are true Determine method or data deciphering expense determines method.Wherein, the storage medium can be magnetic disk, CD, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (Flash Memory), hard disk (Hard Disk Drive, abbreviation: HDD) or solid state hard disk (Solid-State Drive, SSD) etc.;The storage medium can also include the combination of the memory of mentioned kind.
The embodiment of the invention also provides one kind in encrypted video meeting, and encryption and decryption expense determines method.Wherein, should Encrypted video conference system includes at least:
One transmitting terminal, for sending encrypted RTP (network transmission protocol) data;
Network transmission link can be dedicated network or general IP network, be used for transmission data;
One receiving end, for decrypting the RTP data packet received;
Video output device, for exporting the video and a video input device of conferenced parties;
Wherein, encryption and decryption expense determines that the reduction procedure of method comprises the steps of:
(1) encryption meeting overall performance calculates: simplified step mainly includes three modules: obtaining module, encryption mould Block and sending module.Overall performance calculating is easier, and mainly calculating sends and receives side CPU usage and delay time is obtained It takes, this result is used to assess the state of entire meeting.
(2) performance after stopping sending module calculating: in this step, data packet will be encrypted, but will not be true Positive is sent in physical network, and that removes the occupied consumption of sending module.
(3) performance after stopping encrypting module calculating: in this step, data can be real-time before incoming encrypting module It abandons.Step entire so just eliminates the consumption of encrypting module and sending module.
Embodiment one
The present embodiment completes entire meeting encryption process.Under video conference, encryption and decryption conference process is simplified as:
1. sender obtains raw data packets by tearing frame mode open, original data packet is then passed into encrypting module, Encrypting module selects different cipher modes according to different conference scenarios and informs receiving side, finally transmits encrypted data To sending module, encrypted data are sent to opposite end by physical network by sending module.
2. recipient receives the encrypted data packet of sender by receiving module, data packet is then passed into decryption mould Block, the encryption and decryption mode that deciphering module is negotiated before operate to be decrypted, finally will be after decryption using transmission module Data transmitting is got on.
3. the final encryption and decryption expense of video conference is that sending side expense adds receiving side expense, both sum=S_sum+R_ sum;Wherein, sum is encryption and decryption expense, and S_sum is encryption overhead, and R_sum is decryption expense.
Embodiment two
The present embodiment completes encryption overhead calculating process.Specific calculating process is as follows after simplifying:
1. obtaining the complete performance consumption S3 in sending side, this step is mainly to have a meter for entirety to the delay of entire sending side It calculates, observer is allowed to have complete understanding.
2. this step contains encrypting module and obtains module, and S2 will be used in the performance consumption S2 for abandoning encrypted data It is calculated in encryption overhead.
3. abandoning data S1 before data encryption, this step does not include encrypting module, and S1 is also used for calculating encryption overhead.
4. the result obtained before obtains the encryption overhead S_sum=S2-S1 of sending side.Optionally, final plus Close expense, which needs repeatedly to calculate, to be averaged.
Embodiment three
The present embodiment completes decryption overhead computational process.Specific calculating process is as follows after simplifying:
1. obtaining the complete performance consumption R3 of receiving side, this step is mainly to have a meter for entirety to the delay of entire receiving side It calculates, observer is allowed to have complete understanding.
2. calculating the performance consumption R2 of data after abandoning decryption, the performance consumption in the step contains decryption oprerations and accounts for Performance, for calculating subsequent decryption expense.
3. calculating receives the performance consumption R1 abandoned after encryption data, decryption oprerations are not included in the step.
4. calculating the decryption expense R_sum=R2-R1 of receiving side according to the result that former steps obtain.Final decryption expense It is also required to repeatedly calculate and be averaged.
Compared with prior art, the present invention can quickly determine data encrypting and deciphering expense, realize encryption and decryption performance cost Accurate calculating, evaded after calculating separately expense in different meetings the mode of comparison result again, considerably increased calculating knot The reliability and preciseness of fruit.
Although being described in conjunction with the accompanying the embodiment of the present invention, those skilled in the art can not depart from the present invention Spirit and scope in the case where various modifications and variations can be made, such modifications and variations are each fallen within by appended claims institute Within the scope of restriction.

Claims (10)

1. a kind of data encryption expense determines method characterized by comprising
Control the operating status of thread in data encryption process;Wherein, the thread includes at least one of: for obtaining original It is the acquisition thread of beginning data packet, the encryption thread for encrypting the raw data packets, encrypted described original for sending The transmission thread of data packet;
When the encryption thread and the transmission thread out of service, the acquisition in the data encryption process is extracted The expense of thread, using the expense for obtaining thread as the first expense;
When the transmission thread is out of service, the acquisition thread and the encryption line in the data encryption process are extracted The expense of journey, using the expense of the acquisition thread and the encryption thread as the second expense;
Using first expense and second expense, the encryption overhead is determined.
2. data encryption expense according to claim 1 determines method, which is characterized in that the control data encryption process The operating status of middle thread includes:
The first control command is sent, to stop the encryption thread and the transmission thread;
The second control command is sent, to stop the transmission thread.
3. data encryption expense according to claim 1 determines method, which is characterized in that described to utilize first expense And second expense, determine the encryption overhead, comprising:
First expense is subtracted using second expense, obtains the expense of the encryption thread;Wherein, by the encryption line The expense of journey is as the encryption overhead.
4. a kind of data deciphering expense determines method characterized by comprising
Control the operating status of thread in data decrypting process;Wherein, the thread includes at least one of: being added for receiving The receiving thread of raw data packets after close, the decryption for the encrypted raw data packets received to be decrypted Thread, and it is used for transmission the transmission thread of the data packet obtained after decryption;
When the decryption thread and the transmission thread out of service, the reception in the data decrypting process is extracted The expense of thread, using the expense of the receiving thread as third expense;
When the transmission thread is out of service, the receiving thread and the decryption line in the data decrypting process are extracted The expense of journey, using the expense of the receiving thread and the decryption thread as the 4th expense;
Using the third expense and the 4th expense, the decryption expense is determined.
5. data deciphering expense according to claim 4 determines method, which is characterized in that the control data decrypting process The operating status of middle thread, comprising:
Third control command is sent, to stop the decryption thread and the transmission thread;
The 4th control command is sent, to stop the transmission thread.
6. data deciphering expense according to claim 4 determines method, which is characterized in that described to utilize the third expense And the 4th expense, determine the decryption expense, comprising:
The third expense is subtracted using the 4th expense, obtains the expense of the decryption thread;Wherein, by the decryption line The expense of journey is as the decryption expense.
7. a kind of data encryption expense determining device characterized by comprising
First control module, for controlling the operating status of thread in data encryption process;Wherein, the thread include with down toward It is one of few: for obtaining the acquisition threads of raw data packets, the encryption thread for encrypting the raw data packets, for sending The transmission thread of the encrypted raw data packets;
First extraction module, for extracting the data and adding when the encryption thread and the transmission thread out of service The expense of the acquisition thread during close, using the expense for obtaining thread as the first expense;
Second extraction module, for when the transmissions thread is out of service, extract in the data encryption process described in obtain The expense of line taking journey and the encryption thread, using the expense of the acquisition thread and the encryption thread as the second expense;
Encryption overhead determining module determines the encryption overhead for utilizing first expense and second expense.
8. a kind of data deciphering expense determining device characterized by comprising
Second control module, for controlling the operating status of thread in data decrypting process;Wherein, the thread include with down toward It is one of few: for receiving the receiving thread of encrypted raw data packets, for the encrypted original number received According to the decryption thread that packet is decrypted, and it is used for transmission the transmission thread of the data packet obtained after decryption;
Third extraction module, for extracting the data solution when the decryption thread and the transmission thread out of service The expense of the receiving thread during close, using the expense of the receiving thread as third expense;
4th extraction module, for when the transmission thread is out of service, extract in the data decrypting process described in connect The expense of take-up journey and the decryption thread, using the expense of the receiving thread and the decryption thread as the 4th expense;
Expense determining module is decrypted, for utilizing the third expense and the 4th expense, determines the decryption expense.
9. a kind of electronic equipment characterized by comprising at least one processor;And it is logical at least one described processor Believe the memory of connection;Wherein, the memory is stored with the instruction that can be executed by one processor, and described instruction is by institute The execution of at least one processor is stated, so that at least one described processor executes any data of the claims 1-3 Encryption overhead determines that any data deciphering expense determines method in method or 4-6.
10. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor Realize that any data encryption expense of the claims 1-3 determines any data in method or 4-6 when execution Decryption expense determines method.
CN201810687105.7A 2018-06-28 2018-06-28 Data encryption and decryption overhead determining method and device and electronic equipment Active CN109040653B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810687105.7A CN109040653B (en) 2018-06-28 2018-06-28 Data encryption and decryption overhead determining method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810687105.7A CN109040653B (en) 2018-06-28 2018-06-28 Data encryption and decryption overhead determining method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109040653A true CN109040653A (en) 2018-12-18
CN109040653B CN109040653B (en) 2020-09-29

Family

ID=65520705

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810687105.7A Active CN109040653B (en) 2018-06-28 2018-06-28 Data encryption and decryption overhead determining method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109040653B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116193166A (en) * 2022-12-27 2023-05-30 北京锐马视讯科技有限公司 Video encryption method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156703A (en) * 2011-01-24 2011-08-17 南开大学 Low-power consumption high-performance repeating data deleting system
CN102301343A (en) * 2011-06-14 2011-12-28 华为技术有限公司 Method, device and system for monitoring software
CN104220989A (en) * 2011-12-21 2014-12-17 英特尔公司 Methods and systems to identify and reproduce concurrency violations in multi-threaded programs
US20140375894A1 (en) * 2013-06-24 2014-12-25 Broadcom Corporation Video channel change system
CN105554518A (en) * 2015-12-04 2016-05-04 浙江宇视科技有限公司 Method and device for controlling video stream transmission
CN105592314A (en) * 2015-12-17 2016-05-18 清华大学 Parallel decoding method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156703A (en) * 2011-01-24 2011-08-17 南开大学 Low-power consumption high-performance repeating data deleting system
CN102301343A (en) * 2011-06-14 2011-12-28 华为技术有限公司 Method, device and system for monitoring software
CN104220989A (en) * 2011-12-21 2014-12-17 英特尔公司 Methods and systems to identify and reproduce concurrency violations in multi-threaded programs
US20140375894A1 (en) * 2013-06-24 2014-12-25 Broadcom Corporation Video channel change system
CN105554518A (en) * 2015-12-04 2016-05-04 浙江宇视科技有限公司 Method and device for controlling video stream transmission
CN105592314A (en) * 2015-12-17 2016-05-18 清华大学 Parallel decoding method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116193166A (en) * 2022-12-27 2023-05-30 北京锐马视讯科技有限公司 Video encryption method and system

Also Published As

Publication number Publication date
CN109040653B (en) 2020-09-29

Similar Documents

Publication Publication Date Title
US11171936B2 (en) Method, device, and system for offloading algorithms
US10880732B2 (en) Authentication of phone caller identity
US20180212753A1 (en) End-To-End Secure Operations Using a Query Vector
WO2018223777A1 (en) Data exchange system, method, and device
CN109994115B (en) Communication method and device, data processing method and device
US8266422B2 (en) Network security processing method and system for selecting one of software and hardware cryptographic modules by means of multimedia session information
CN116743376B (en) Multiparty secret sharing data privacy comparison method based on efficient ciphertext confusion technology
CN108667820B (en) Shared electronic whiteboard encryption method, system, electronic equipment and storage medium
US20230254113A1 (en) Correlation coefficient acquisition method, electronic device and non-transitory computer readable storage medium
CN109040653A (en) Data encrypting and deciphering expense determines method, apparatus and electronic equipment
CN111163102B (en) Data processing method and device, network equipment and readable storage medium
CN110225293B (en) Conference cascading method and electronic equipment
US10231004B2 (en) Network recording service
CN113672954B (en) Feature extraction method and device and electronic equipment
CN114499893B (en) Bidding file encryption and evidence storage method and system based on block chain
CN108701195B (en) Data security protection method and device
KR20160123416A (en) Information security device, terminal, network having information security system and terminal
CN110784602B (en) Soft telephone communication method, device, terminal and storage medium
CN114255021A (en) Resource transfer method, device, medium and electronic equipment
WO2018082237A1 (en) Password input method and apparatus
WO2019136496A1 (en) System and method for secure communication
CN112492274B (en) National secret encryption transmission equipment based on common network camera
US11153361B2 (en) Addressing packet loss in a voice over internet protocol network using phonemic restoration
JP2017537580A (en) Dynamic data encryption method and related method for controlling decryption right
CN115396226A (en) Data transmission method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant