| CPC G06F 21/6218 (2013.01) [G06F 21/602 (2013.01)] | 20 Claims |

|
1. A method comprising:
obtaining a data processing request comprising to-be-processed data;
selecting one of a first processing manner and a second processing manner as a processing manner for the to-be-processed data based on a size of the to-be-processed data and a first parameter, wherein the first processing manner is to be performed by an encryption/decryption chip, wherein the second processing manner is to be performed by a software program running on a central processing unit, wherein the first parameter comprises an encryption delay or a decryption delay generated when a data block of a unit length is processed, and wherein selecting the processing manner comprises:
predicting a first processing delay and a second processing delay based on the size of the to-be-processed data and the first parameter, wherein the first parameter further comprises a third processing delay and a fourth processing delay, wherein the third processing delay is generated when the data block is processed using the first processing manner, wherein the fourth processing delay is generated when the data block is processed using the second processing manner, and wherein the first processing delay is generated when the to-be-processed data is processed using the first processing manner, and the second processing delay is generated when the to-be-processed data is processed using the second processing manner; and
selecting the processing manner based on a result of a comparison between the first processing delay and the second processing delay; and
performing an encryption operation or a decryption operation on the to-be-processed data based on the processing manner.
|