Giter Club home page Giter Club logo

ibmtss's People

Contributors

bluca avatar dgarske avatar hramrach avatar kgold2 avatar kgoldman avatar maurorodrigues avatar mimizohar avatar pevik avatar shoracek avatar studnitz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ibmtss's Issues

Fixing "Loaded objects (keys) disappear" by automatically doing ContextSave/ContextLoad

One thing that is really convenient about the tpm2-tools is that they generally can consume / produce saved contexts in places where normally one would expect other items like public areas and so on. This does mean that those utilities need to be able to execute more commands than their names imply, but this seems pretty normal. This use of saved contexts means that "loaded objects disappear" doesn't happen as much. Yes, "loaded objects disappear" could still happen when using a TPM directly while racing with other users of the same TPM because one has to keep flushing transient objects to make it all work, but racing like that should be rare.

examples to use duplicate and rewrite

Can you provide examples to use duplicate and rewrite, TCG's documentation is difficult to understand, or can you provide some website addresses where there are examples

TPM_ALG_KEYDHASH Template

While implementing a Trusted Computing protocol with the TPM(SW TPM ibmtpm1661) , we 've encountered an error upon creating a KEYEDHASH key(reserved bits shall be set to zero),when using your template found in the file ObjectTemplates.c .The issue was resolved by adding to the attributes of the public key template TPA_OBJECT_RESERVED.
Kind regards ,
Stefanos Vasileiadis,
Alexandros Sampanis,
Ubitech Athens DST GROUP

Thread-safety is not as crazy as it might sound

Suppose you're talking to multiple TPMs -- remote ones, probably. Then reentrance and thread-safety seem useful.

The use-case I've in mind is doing something like password validation using remote TPMs -- remote because they could be a software TPM running on fast general-purpose hardware on a system built like an HSM.

/usr/bin/ld: ../utils/cryptoutils.o:/opt/ibmtss2.1.1/utils/cryptoutils.c:118: multiple definition of `tssUtilsVerbose'

My building system and software details are listed below.

Build command:

# Set Env Var
export TPM_INTERFACE_TYPE=socsim
export TPM_COMMAND_PORT=2321
# Clear Previous Build
cd "${ibmtss_path}/utils/"
make -f makefiletpmc clean
cd "${ibmtss_path}/utils12/"
make -f makefiletpmc clean
# Build
cd "${ibmtss_path}/utils/"
make -f makefiletpmc
cd "${ibmtss_path}/utils12/"
make -f makefiletpmc

The following issue appears when using 2023-05-03-raspios-bullseye-arm64.img.xz, but not in Ubuntu 18.04.6 VM.

/usr/bin/ld: ../utils/cryptoutils.o:/opt/ibmtss2.1.1/utils/cryptoutils.c:118: multiple definition of `tssUtilsVerbose'; nvreadvalueauth.o:/opt/ibmtss2.1.1/utils12/nvreadvalueauth.c:56: first defined here
collect2: error: ld returned 1 exit status
make: *** [makefiletpmc:175: nvreadvalueauth] Error 1

Currently, trying to downgrade to version 1.6.0 which this problem doesn't exist according to my research colleague's test on the same platform. Hope this issue can help solving this issue.

Questions about Remote Attestation, looking forward to a reply

Hello,

I am conducting an experiment based on "AttestProv.doc" from your other repository "acs".
I have read the EK certificate(sm2_ek_cert.pem) using "nvread" and generate an attestation public attestation key(sm2_ak.pub) on the client and sent them to the server.
I would like to know how to complete the "The server extracts the EK public key from the EK certificate" in section 3.2 "Server Challenge", and how to load the public attestation key using "loadexternal" correctly. I have tried many times, but all have failed.

Can you help me solve these problems , thank you!

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.