Comments (1)
I changed your example a little (wrong password for owner hierarchy, length specification for nv read to avoid need of multiple reads, removed -L pcr.bin, add write operation before read) and it worked:
tpm2_changeauth -c o 246
tpm2_pcrread sha256:10 -o pcr.bin
tpm2_createpolicy --policy-pcr -l sha256:10 -f pcr.bin -L pcr.policy
tpm2_nvdefine -C o -p writepassword -a "authwrite|policyread" -L pcr.policy -P 246
echo -n 123 | tpm2_nvwrite 0x1000000 -i- -P writepassword
tpm2_startauthsession --policy-session -S session.ctx
tpm2_policypcr -S session.ctx -l sha256:10 -L policy.pcr
tpm2_nvread 0x1000000 -P session:session.ctx -s 3
from tpm2-tools.
Related Issues (20)
- I ran into a problem when compiling the latest version: pandoc: command not found HOT 2
- Problems using the tpm2_encodeobject command HOT 14
- when i import a key:ERROR: Could not derive shared secret ERROR: Failed Seed Encryption HOT 1
- Enable TPMA_NV_POLICY_DELETE when defining a new NV Index
- Duplicate/Migratable key with PCRs
- Duplicate/Migratable key with PCR policy HOT 1
- Key split combination procedures internal to TPM
- bootstrap fails with `configure.ac:40: error: possibly undefined macro: AC_MSG_ERROR` HOT 1
- passing argument 2 of ‘Fapi_SetAuthCB’ from incompatible pointer type [-Werror=incompatible-pointer-types] HOT 1
- tpm2_getcap -c 'handles-persistent' gives no output HOT 2
- BUG? Shouldn't passing a pcr value file as an auth policy argument raise an error? HOT 2
- How to execute tpm2_changeeps HOT 5
- DOC: tpm2_unseal manpage complaints (PCR Policy Un/Sealing)
- Add to tpm2_certify HOT 4
- ERROR:tcti:src/tss2-tcti/tcti-device.c:286:tcti_device_receive() Failed to read response from fd 3, got errno 62: Timer expired HOT 1
- tpm2_createek works with formats 'tss' and 'tpmt' but with not 'der' or 'pem' HOT 2
- Example code for tpm2_policynv use does not work as expected
- tpm2_tools error 0x70001 with fips-updates on 22.04 HOT 1
- Cannot Import AES 256 Key HOT 1
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 tpm2-tools.