A data encryption or decryption method, wherein the method comprises: obtaining a data processing request, wherein the data processing request carries 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, wherein in the first processing manner, processing is performed by an encryption/decryption chip, and in the second processing manner, processing is performed by a software program running on a central processing unit; and performing an encryption or decryption operation on the to-be-processed data in the selected processing manner, wherein the selecting comprises: selecting the processing manner of the to-be-processed data based on a size of the to-be-processed data and a first parameter, wherein the first parameter comprises an encryption or decryption delay generated when a data block of a unit length is processed, characterised in that the selecting specifically comprises: obtaining, through prediction, 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 comprises a processing delay generated when the data block of a unit length is processed in the first processing manner and a processing delay generated when the data block of a unit length is processed in the second processing manner, the first processing delay is a processing delay generated when the to-be-processed data is processed in the first processing manner, and the second processing delay is a processing delay generated when the to-be-processed data is processed in the second processing manner; and selecting the processing manner based on a result of comparison between the first processing delay and the second processing delay. obtaining a data processing request, wherein the data processing request carries 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, wherein in the first processing manner, processing is performed by an encryption/decryption chip, and in the second processing manner, processing is performed by a software program running on a central processing unit; and performing an encryption or decryption operation on the to-be-processed data in the selected processing manner, wherein the selecting comprises: selecting the processing manner of the to-be-processed data based on a size of the to-be-processed data and a first parameter, wherein the first parameter comprises an encryption or decryption delay generated when a data block of a unit length is processed, characterised in that the selecting specifically comprises: obtaining, through prediction, 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 comprises a processing delay generated when the data block of a unit length is processed in the first processing manner and a processing delay generated when the data block of a unit length is processed in the second processing manner, the first processing delay is a processing delay generated when the to-be-processed data is processed in the first processing manner, and the second processing delay is a processing delay generated when the to-be-processed data is processed in the second processing manner; and selecting the processing manner based on a result of comparison between the first processing delay and the second processing delay. selecting the processing manner of the to-be-processed data based on a size of the to-be-processed data and a first parameter, wherein the first parameter comprises an encryption or decryption delay generated when a data block of a unit length is processed, characterised in that the selecting specifically comprises: obtaining, through prediction, 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 comprises a processing delay generated when the data block of a unit length is processed in the first processing manner and a processing delay generated when the data block of a unit length is processed in the second processing manner, the first processing delay is a processing delay generated when the to-be-processed data is processed in the first processing manner, and the second processing delay is a processing delay generated when the to-be-processed data is processed in the second processing manner; and selecting the processing manner based on a result of comparison between the first processing delay and the second processing delay. obtaining, through prediction, 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 comprises a processing delay generated when the data block of a unit length is processed in the first processing manner and a processing delay generated when the data block of a unit length is processed in the second processing manner, the first processing delay is a processing delay generated when the to-be-processed data is processed in the first processing manner, and the second processing delay is a processing delay generated when the to-be-processed data is processed in the second processing manner; and selecting the processing manner based on a result of comparison between the first processing delay and the second processing delay.