Giter Club home page Giter Club logo

p1735_decryptor's Introduction

IEEE P1735 decryptor

Preface

IEEE P1735 is a draft standard that defines methods of encryption of IP cores. Both VHDL and Verilog files can be encrypted, while syntax is a bit different for those file types. Although still a draft, it is widely supported by various vendors including Xilinx, Mentor Graphics, Aldec, Synopsys and others. Unfortunately, at this time no public documentation on this standard is available.

Why encryption is a BAD idea

The most frustrating thing aboud encrypting IP cores is that a piece of software (say, modelsim) sooner or later decrypts it. Decryption is done at source level, i.e. it is possible to recover full source code of encryped module (provided you have an extracted private key from the software you're using). Usually software vendors do not care much about hiding their private keys. The decryption is done in two stages. First, using the private key, a session key is decrypted using RSA decryption procedure. Second, data block is decoded using this session key and AES-128-CBC decryption procedure.

Usage

First, set up PYTHONPATH to point to P1735Parser.py location and PATH -- to decrypt.py (or simply run decrypt.py from local directory).

Example usage:

decrypt.py -keyname ALDEC08_001 -key keys/ALDEC08_001.pem -in encrypted_file.vhdp -out decrypted_file.vhd

It will decrypt file encrypted_file.vhdp and place it to decrypted_file.vhd using private key keys/ALDEC08_001.pem named ALDEC08_001.

Restrictions and limitations

  1. Currently, only encryped VHDL files are supported.
  2. There is only one private key leaked (for Aldec, key ALDEC08_001.pem can be found on electronix forum

p1735_decryptor's People

Contributors

dmitrodem avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.