# US 2021/0344655 A1 · Message-based database replication

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0344655 A1
- Document ID: US20210344655A1
- Status: Published application
- Kind: A1
- Application number: 17/219,700
- Filed: 2021-03-31
- Published: 2021-11-04
- Earliest claimed: 2020-04-30
- Assignees: Snowflake Inc.
- Applicants: Snowflake Inc.
- Inventors: Damien Carru; Robert Bengt Benedikt Gernhardt; Martin Hentschel; Nithin Mahesh; Eric Robinson
- Web page: https://patentgrep.com/patent/US20210344655A1

## CPC

- H04L 9/16: the keys or algorithms being changed during operation
- H04L 63/0435: {wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption (cryptographic mechanisms or cryptographic arrangements for symmetric key encryption H04L9/06)}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- H04L 9/0891: {Revocation or update of secret information, e.g. encryption key update or rekeying}
- H04L 9/3073: {involving pairings, e.g. identity based encryption [IBE], bilinear mappings or bilinear pairings, e.g. Weil or Tate pairing}
- H04L 63/045: {wherein the sending and receiving network entities apply hybrid encryption, i.e. combination of symmetric and asymmetric encryption (cryptographic mechanisms or cryptographic arrangements using a plurality of keys or algorithms H04L9/14)}
- H04L 63/068: {using time-dependent keys, e.g. periodically changing keys (cryptographic mechanisms or cryptographic arrangements for controlling usage of secret information H04L9/088)}
- H04L 2463/062: applying encryption of the keys
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A networked device communication system can configure network devices (e.g., a primary and secondary database) to send and receive sequences of messages, such as replicated data, using one or more keypairs and wrapping keys. The sequences of messages can include an initial set of messages that are encrypted by a wrapping key, and further include another set of messages that are encrypted by a replaced staggered key. The sequence of messages can be configured to be decrypted without exporting keys of hardware security modules.

## Claims

### Claim 1

A method comprising:
identifying, by a networked device, an encryption key managed by a remote networked device;
transmitting a sequence of encrypted messages for transmission to the remote networked device, each encrypted message in the sequence of encrypted messages being encrypted by another encryption key managed by the networked device, each encrypted message in the sequence of encrypted messages comprising the another encryption key in encrypted format as encrypted by the encryption key of the remote networked device;
generating, by the networked device, a new encryption key to encrypt a subsequent sequence of encrypted messages for transmission to the remote networked device; and
transmitting the subsequent sequence of encrypted messages to the remote networked device, each encrypted message in the subsequent sequence of encrypted messages being encrypted by the new encryption key managed by the networked device, each encrypted message in the subsequent sequence of encrypted messages comprising the new encryption key in encrypted format as encrypted by the encryption key of the remote networked device.

### Claim 2 (depends on 1)

The method of claim 1, wherein file data in each encrypted message of the sequence of encrypted messages is decryptable using the another encryption key managed by the networked device.

### Claim 3 (depends on 1)

The method of claim 1, wherein file data in each encrypted message of the subsequent sequence of encrypted messages is decryptable using the new encryption key managed by the networked device.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
in response to expiration of a preconfigured time period, generating the new encryption key to replace the another encryption key.

### Claim 5 (depends on 1)

The method of claim 1, further comprising: in response to a preconfigured quantity of encrypted messages of the sequence of encrypted messages being encrypted by the another encryption key, generating the new encryption key to replace the another encryption key.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
in response to a randomized trigger event being generated by the networked device, generating the new encryption key to replace the another encryption key.

### Claim 7 (depends on 6)

The method of claim 6, wherein the randomized trigger event comprises a randomly generated message limit.

### Claim 8 (depends on 6)

The method of claim 6, wherein the randomized trigger event comprises a randomly generated time limit.

### Claim 9 (depends on 1)

The method of claim 1, wherein the networked device and the remote networked device are separate device networks.

### Claim 10 (depends on 9)

The method of claim 9, wherein the networked device and the remote networked device are located in different geographic locations.

### Claim 11 (depends on 1)

The method of claim 1, wherein the networked device is a primary database and the remote networked device is a replication database to replicate data of the primary database, and wherein the sequence of encrypted messages comprises replication data from the primary database.

### Claim 12

A system comprising:
one or more processors of a networked device;
at least one memory storing instructions that, when executed by the one or more processors, cause the networked device to perform operations comprising:
identifying, by a networked device, an encryption key managed by a remote networked device;
transmitting a sequence of encrypted messages for transmission to the remote networked device, each encrypted message in the sequence of encrypted messages being encrypted by another encryption key managed by the networked device, each encrypted message in the sequence of encrypted messages comprising the another encryption key in encrypted format as encrypted by the encryption key of the remote networked device;
generating, by the networked device, a new encryption key to encrypt a subsequent sequence of encrypted messages for transmission to the remote networked device; and
transmitting the subsequent sequence of encrypted messages to the remote networked device, each encrypted message in the subsequent sequence of encrypted messages being encrypted by the new encryption key managed by the networked device, each encrypted message in the subsequent sequence of encrypted messages comprising the new encryption key in encrypted format as encrypted by the encryption key of the remote networked device.

### Claim 13 (depends on 12)

The system of claim 12, wherein file data in each encrypted message of the sequence of encrypted messages is decryptable using the another encryption key managed by the networked device.

### Claim 14 (depends on 12)

The system of claim 12, wherein file data in each encrypted message of the subsequent sequence of encrypted messages is decryptable using the new encryption key managed by the networked device.

### Claim 15 (depends on 12)

The system of claim 12, the operations further comprising:
in response to expiration of a preconfigured time period, generating the new encryption key to replace the another encryption key.

### Claim 16 (depends on 12)

The system of claim 12, further comprising: in response to a preconfigured quantity of encrypted messages of the sequence of encrypted messages being encrypted by the another encryption key, generating the new encryption key to replace the another encryption key.

### Claim 17

A non-transitory machine-storage medium embodying instructions that, when executed by a machine, cause the machine to perform operations comprising:
identifying, by a networked device, an encryption key managed by a remote networked device;
transmitting a sequence of encrypted messages for transmission to the remote networked device, each encrypted message in the sequence of encrypted messages being encrypted by another encryption key managed by the networked device, each encrypted message in the sequence of encrypted messages comprising the another encryption key in encrypted format as encrypted by the encryption key of the remote networked device;
generating, by the networked device, a new encryption key to encrypt a subsequent sequence of encrypted messages for transmission to the remote networked device; and
transmitting the subsequent sequence of encrypted messages to the remote networked device, each encrypted message in the subsequent sequence of encrypted messages being encrypted by the new encryption key managed by the networked device, each encrypted message in the subsequent sequence of encrypted messages comprising the new encryption key in encrypted format as encrypted by the encryption key of the remote networked device.

### Claim 18 (depends on 17)

The non-transitory machine-storage medium of claim 17, wherein file data in each encrypted message of the sequence of encrypted messages is decryptable using the another encryption key managed by the networked device.

### Claim 19 (depends on 17)

The non-transitory machine-storage medium of claim 17, wherein file data in each encrypted message of the subsequent sequence of encrypted messages is decryptable using the new encryption key managed by the networked device.

### Claim 20 (depends on 17)

The non-transitory machine-storage medium of claim 17, the operations further comprising:
in response to expiration of a preconfigured time period, generating the new encryption key to replace the another encryption key.
