Encryption method for an instructions stream and execution of an instructions stream thus encrypted

US10305682B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-10305682-B2
Application numberUS-201715412252-A
CountryUS
Kind codeB2
Filing dateJan 23, 2017
Priority dateJan 26, 2016
Publication dateMay 28, 2019
Grant dateMay 28, 2019

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A method of encrypting a program instructions stream and a method of executing an instructions stream thus encrypted. Instructions are translated into binary code before being encrypted by a stream cipher method. When the program contains a conditional or unconditional branch instruction, an instruction is inserted in the program to initialize the pseudo-random sequence generator using an initialization vector, the initialization vector being used to generate the pseudo-random sequence for encryption and decryption of instructions at the branch address. Instructions can be decrypted and executed on-the-fly without needing to know their physical addresses, even in the presence of a branch.

First claim

Opening claim text (preview).

The invention claimed is: 1. A method of encryption of a program instructions stream using a stream cipher with a pseudo-random sequence generator configured by a secret key and initialised by an initialisation vector, comprising: translating the instructions stream into binary code by a compiler, said binary code being summated bit by bit with a pseudo-random sequence generated by the pseudo-random generator to provide an encrypted instructions stream; inserting, when the program comprises a branch instruction to a branch address, a corresponding initialisation instruction in the program to initialise the pseudo-random generator with a specific initialisation vector specific to the branch address, the instructions from the branch address being encrypted using a pseudo-random sequence generated by the pseudo-random generator initialised by said specific initialisation vector. 2. The method of encryption of an instructions stream according to claim 1 , wherein the initialisation instruction is inserted just before the branch instruction. 3. The method of encryption of an instructions stream according to claim 2 , wherein the initialisation instruction is inserted unencrypted in the encrypted instructions stream. 4. The method of encryption of an instructions stream according to claim 2 , wherein the initialisation instruction is encrypted with said pseudo-random sequence before being inserted. 5. The method of encryption of an instructions stream according to claim 1 , wherein the initialisation instruction is inserted unencrypted at the branch address in the encrypted instructions stream. 6. A method of encryption of a program instructions stream using a stream cipher with a pseudo-random sequence generator configured by a secret key and initialised by an initialisation vector, comprising: translating the instructions stream into binary code by a compiler, said binary code being summated bit by bit with a pseudo-random sequence generated by the pseudo-random generator to provide an encrypted instructions stream; inserting, when the program comprises a branch instruction to a branch address, a corresponding initialisation instruction in the program to initialise the pseudo-random generator with a specific initialisation vector specific to the branch address, the instructions from the branch address being encrypted using a pseudo-random sequence generated by the pseudo-random generator initialised by said specific initialisation vector, wherein: the pseudo-random sequence is generated using the pseudo-random sequence generator configured by said secret key and initialised by said initialisation vector; the encrypted instructions stream is summated bit by bit with the pseudo random sequence, each encrypted instruction being decrypted and executed before going onto the next instruction; each initialisation instruction is detected in the encrypted instructions stream and, when one initialisation instruction is detected, an extracted initialisation vector contained in the one initialization instruction is extracted and the pseudo-random sequence generator is initialised with the extracted initialisation vector in the case of a branch to the branch address. 7. The method of executing an instructions stream according to claim 6 , wherein an initialisation instruction is detected by means of a specific prefix. 8. The method of executing an instructions stream according to claim 6 , wherein, if an initialisation instruction is inserted before a branch instruction to a branch address, the initialisation vector extracted from the inserted initialisation instruction is stored in an intermediate register when it is detected and the pseudo-random generator is initialised with the content of said register when jumping to the branch address. 9. The method of execution of a instructions stream according to claim 6 , wherein the program comprises at least one conditional branch instruction. 10. The method of execution of a instructions stream according to claim 6 , wherein the program comprises at least one unconditional branch instruction. 11. The method of executing an instructions stream according to claim 7 , wherein detecting each initialisation instruction comprises detecting after decryption.

Assignees

Inventors

Classifications

  • producing a non-linear pseudorandom sequence · CPC title

  • the encryption apparatus using shift registers or memories for block-wise {or stream} coding, e.g. DES systems {or RC4; Hash functions; Pseudorandom sequence generators} · CPC title

  • Protecting data · CPC title

  • H04L9/0662Primary

    with particular pseudorandom sequence generator · CPC title

  • Protecting distributed programs or content, e.g. vending or licensing of copyrighted material (protection in video systems or pay television H04N7/16) {; Digital rights management [DRM]} · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US10305682B2 cover?
A method of encrypting a program instructions stream and a method of executing an instructions stream thus encrypted. Instructions are translated into binary code before being encrypted by a stream cipher method. When the program contains a conditional or unconditional branch instruction, an instruction is inserted in the program to initialize the pseudo-random sequence generator using an initi…
Who is the assignee on this patent?
Commissariat Energie Atomique
What technology area does this patent fall under?
Primary CPC classification H04L9/0662. Mapped technology areas include Electricity.
When was this patent published?
Publication date Tue May 28 2019 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).