Giter Club home page Giter Club logo

Comments (4)

PunyHunter avatar PunyHunter commented on July 23, 2024

Thank you very much

from ibmtss.

kgoldman avatar kgoldman commented on July 23, 2024

See regtests/testdup.sh for several examples of duplicate and rewrap. I assume you mean rewrap, not rewrite.

My development process is:

  • find a test script that's close to my use case
  • cut and paste from the script to replicate my use case
  • cut and paste C code from the command line programs into my program
    For a complicated program, you can replace the script a few lines at a time to help debug

Ask again if something isn't clear.

from ibmtss.

PunyHunter avatar PunyHunter commented on July 23, 2024

Thanks for your answer.I followed the example(Rewrap) and still couldn't run rewrap and reported some errors.I also don't understand why there are three TPMs. Doesn't "rewrap" only require two TPMs? My background is that there is a KEY under a primary key of TPM1. How to migrate it to a primary key of TPM2? Thank you!

from ibmtss.

kgoldman avatar kgoldman commented on July 23, 2024
  1. It is important to report what the rewrap error was. 'some errors' is insufficient.

  2. Read Part 1 Rewrap to see why it uses three TPMs - the source, the recovery service, and the destination.

  3. If you have a key K1 on TPM1 and a storage parent S2 on TPM2, duplicate K1 to S2 public key on TPM1, then import K1 to S2 private key on TPM2.
    It does not matter whether the storage parents are primary keys or not.

In the test scripts, see testdup.sh "Duplicate Child Key"

from ibmtss.

Related Issues (7)

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.