EP3534565A1

Data transmission method, apparatus and system

Abstract

Provided are a data transmission method, apparatus, and system. The method comprises: generating an asymmetrical key pair comprising a first public key and a first private key, sending a data request carrying the first public key to a server; receiving a ciphertext and a second public key sent by the server, wherein the second public key is a public key in an asymmetrical key pair obtained by the server, the asymmetrical key pair obtained by the server further comprises a second private key, and the ciphertext is information obtained by encrypting a seed parameter for generating an offline payment code using a shared key; the shared key is a key generated based on the second private key and the first public key using a preset key-agreement algorithm; and generating a shared key based on the first private key and the second public key using the key-agreement algorithm, and using the shared key to decrypt the ciphertext to obtain the seed parameter. The present application not only ensures data security throughout the entire transmission process, but also improves encryption and decryption efficiency.

EP3534565A1, drawing sheet 1
Sheet 1 of 8

Term

11.1 yearsto projected expiry

Projected expiry 18 October 2037, counted from filing; an application has no term until it is granted.

  1. Priority and filed
  2. Published
  3. Today
  4. Projected expiry

14 claims: 8 independent, 6 dependent

  1. 1
    A data transmission method, wherein the method is applicable in a client and comprises:generating an asymmetrical key pair comprising a first public key and a first private key, and sending a data request carrying the first public key to a server;receiving a ciphertext and a second public key sent by the server, wherein the second public key is a public key in an asymmetrical key pair obtained by the server, the asymmetrical key pair obtained by the server further comprises a second private key, and the ciphertext is information obtained by encrypting a seed parameter for generating an offline payment code using a shared key;the shared key is a key generated based on the second private key and the first public key using a preset key-agreement algorithm;generating a shared key based on the first private key and the second public key using the key-agreement algorithm, and using the shared key to decrypt the ciphertext to obtain the seed parameter;wherein the shared key generated based on the second private key and the first public key using the preset key-agreement algorithm is identical to the shared key generated based on the first private key and the second public key using the key-agreement algorithm.
  2. 5
    A data transmission method, wherein the method is applicable in a server and comprises:receiving a data request carrying a first public key and sent by a client, wherein the data request is for requesting the server to return a seed parameter for generating an offline payment code, the first public key is a public key in an asymmetrical key pair generated by the client, and the asymmetrical key pair generated by the client further comprises a first private key;obtaining an asymmetrical key pair comprising a second public key and a second private key, and generating a shared key based on the second private key and the first public key using a preset key-agreement algorithm;using the shared key to encrypt a seed parameter to which the data request corresponds, and sending a ciphertext obtained from encryption and the second public key to the client so that the client generates a shared key based on the first private key and the second public key using the key-agreement algorithm and uses the shared key to decrypt the ciphertext to obtain the seed parameter;wherein the shared key generated based on the second private key and the first public key using the preset key-agreement algorithm is identical to the shared key generated based on the first private key and the second public key using the key-agreement algorithm.
  3. 7
    A data transmission method, wherein the method comprises:a data requester terminal generating an asymmetrical key pair comprising a first public key and a first private key and sending a data request carrying the first public key to a data provider terminal;the data provider terminal obtaining an asymmetrical key pair comprising a second public key and a second private key and generating a shared key based on the second private key and the first public key using a preset key-agreement algorithm;the data provider terminal using the shared key to encrypt target data to which the data request corresponds and sending a ciphertext obtained from encryption and the second public key to the data requester terminal;the data requester terminal generating a shared key based on the first private key and the second public key using the key-agreement algorithm and using the shared key to decrypt the ciphertext to obtain the target data;wherein the shared key generated based on the second private key and the first public key using the preset key-agreement algorithm is identical to the shared key generated based on the first private key and the second public key using the key-agreement algorithm.
  4. 10
    A data transmission apparatus, wherein the apparatus comprises:a key generation module for generating an asymmetrical key pair comprising a first public key and a first private key;a request sending module for sending a data request carrying the first public key to a server;an information receiving module for receiving a ciphertext and a second public key sent by the server, wherein the second public key is a public key in an asymmetrical key pair obtained by the server, the asymmetrical key pair obtained by the server further comprises a second private key, and the ciphertext is information obtained by encrypting a seed parameter for generating an offline payment code using a shared key;the shared key is a key generated based on the second private key and the first public key using a preset key-agreement algorithm;a shared key generation module for generating a shared key based on the first private key and the second public key using the key-agreement algorithm;an information decryption module for using the shared key to decrypt the ciphertext to obtain the seed parameter;wherein the shared key generated based on the second private key and the first public key using the preset key-agreement algorithm is identical to the shared key generated based on the first private key and the second public key using the key-agreement algorithm.
  5. 11
    A data transmission apparatus, wherein the apparatus comprises:a request receiving module for receiving a data request carrying a first public key and sent by a client, wherein the data request is for requesting a server to return a seed parameter for generating an offline payment code, the first public key is a public key in an asymmetrical key pair generated by the client, and the asymmetrical key pair generated by the client further comprises a first private key;a key obtaining module for obtaining an asymmetrical key pair comprising a second public key and a second private key;a shared key generation module for generating a shared key based on the second private key and the first public key using a preset key-agreement algorithm;an information encryption module for using the shared key to encrypt a seed parameter to which the data request corresponds, an information sending module for sending a ciphertext obtained from encryption and the second public key to the client so that the client generates a shared key based on the first private key and the second public key using the key-agreement algorithm and uses the shared key to decrypt the ciphertext to obtain the seed parameter;wherein the shared key generated based on the second private key and the first public key using the preset key-agreement algorithm is identical to the shared key generated based on the first private key and the second public key using the key-agreement algorithm.
  6. 12
    A data transmission system, wherein the system comprises a data requester device and a data provider device;the data requester device generating an asymmetrical key pair comprising a first public key and a first private key and sending a data request carrying the first public key to a data provider device;the data provider device obtaining an asymmetrical key pair comprising a second public key and a second private key and generating a shared key based on the second private key and the first public key using a preset key-agreement algorithm;the data provider device using the shared key to encrypt target data to which the data request corresponds and sending a ciphertext obtained from encryption and the second public key to the data requester device;the data requester device generating a shared key based on the first private key and the second public key using the key-agreement algorithm and using the shared key to decrypt the ciphertext to obtain the seed parameter. wherein the shared key generated based on the second private key and the first public key using the preset key-agreement algorithm is identical to the shared key generated based on the first private key and the second public key using the key-agreement algorithm.
  7. 13
    A data transmission method, wherein the method comprises:a data requester terminal generating a first symmetric key and sending a data request carrying the first symmetric key to a data provider terminal;the data provider terminal obtaining a second symmetric key and generating a shared key based on the first symmetric key and the second symmetric key using a preset key-agreement algorithm, the second symmetric key being different from the first symmetric key;the data provider terminal using the shared key to encrypt target data to which the data request corresponds and sending a ciphertext obtained from encryption and the second symmetric key to the data requester terminal;and the data requester terminal generating a shared key based on the first symmetric key and the second symmetric key using the key-agreement algorithm and using the shared key to decrypt the ciphertext to obtain the target data.
  8. 14
    A data transmission system, wherein the system comprises a data requester device and a data provider device;the data requester device generating a first symmetric key and sending a data request carrying the first symmetric key to the data provider device;the data provider device obtaining a second symmetric key and generating a shared key based on the first symmetric key and the second symmetric key using a preset key-agreement algorithm, the second symmetric key being different from the first symmetric key. the data provider device using the shared key to encrypt target data to which the data request corresponds and sending a ciphertext obtained from encryption and the second symmetric key to the data requester device;the data requester device generating a shared key based on the first symmetric key and the second symmetric key using the key-agreement algorithm and using the shared key to decrypt the ciphertext to obtain the target data.