Comments (4)
Thank you very much
from ibmtss.
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.
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.
-
It is important to report what the rewrap error was. 'some errors' is insufficient.
-
Read Part 1 Rewrap to see why it uses three TPMs - the source, the recovery service, and the destination.
-
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)
- TPM_ALG_KEYDHASH Template HOT 3
- Thread-safety is not as crazy as it might sound HOT 5
- Fixing "Loaded objects (keys) disappear" by automatically doing ContextSave/ContextLoad HOT 7
- createprimary is hardcoded to use nistp256 for "ST" keys HOT 2
- /usr/bin/ld: ../utils/cryptoutils.o:/opt/ibmtss2.1.1/utils/cryptoutils.c:118: multiple definition of `tssUtilsVerbose' HOT 13
- Questions about Remote Attestation, looking forward to a reply HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ibmtss.