Patent ID: 11888827
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Digital communication (Electrical engineering)
Classification: CPC G  H | IPC H

Claim 16:
17. A secure data transfer method comprising:
running a driver software to generate cryptography information, wherein the cryptography information comprises a key index table comprising a plurality of storage addresses and a first key index corresponding to each of the storage addresses;
storing the key index table in a second memory located outside the secure data transfer apparatus;
obtaining, by a cryptography device, a current cryptography parameter based on the cryptography information;
performing, by the cryptography device using the current cryptography parameter, a cryptography operation comprising at least one of the following:
encrypting plaintext data to obtain ciphertext data; or
decrypting the ciphertext data to obtain the plaintext data;

performing, by a first interface, a ciphertext data exchange with a first memory controller in an external first memory, wherein the ciphertext data exchange comprises at least one of the following:
sending the ciphertext data from the cryptography device to the first memory controller when a write operation is performed on the external first memory; or
sending the ciphertext data from the first memory controller to the cryptography device when a read operation is performed on the external first memory;

storing, by a storage of the cryptography device, a key lookup table comprising a plurality of second key indexes and a key corresponding to each of the second key indexes;
obtaining, by a control circuit of the cryptography device, a current storage address corresponding to either writing of the first memory or reading of the first memory;
searching, by the control circuit, the key index table in the second memory to obtain a current key index corresponding to the current storage address; and
searching, by the control circuit, the key lookup table to obtain a current key corresponding to the current key index.