×

Method and apparatus for watermarking binary computer code with modified compiler optimizations

  • US 7,617,396 B2
  • Filed: 08/16/2002
  • Issued: 11/10/2009
  • Est. Priority Date: 08/16/2002
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method for generating executable computer code that is encoded with a watermark, the method comprising:

  • receiving, by a processor, program code that is not compiled;

    receiving the watermark that includes a plurality of binary digits;

    compiling the program code to generate compiled code that includes a first optimized code segment that includes one or more instructions and is associated with a first binary digit included in the watermark and a second optimized code segment that includes one or more instructions and is associated with a second binary digit included in the watermark;

    determining that the first binary digit has a value equal to a first value and, based on the determination, replacing the first optimized code segment with a first non-optimized code segment that includes at least one additional instruction relative to the one or more instructions included in the first optimized code segment;

    determining that the second binary digit has a value equal to a second value and, based on the determination, not replacing the second optimized code segment with a second non-optimized code segment;

    searching the compiled code for the presence of either the first optimized code segment or the first non-optimized code segment;

    upon locating the first non-optimized code segment, setting a first decoded binary digit to have a value equal to the first value;

    searching the compiled code for the presence of either the second optimized code segment or the second non-optimized code segment; and

    upon locating the second optimized code segment, setting a second decoded binary digit to have a value equal to the second value.

View all claims
  • 5 Assignments
Timeline View
Assignment View
    ×
    ×