Giter Site home page Giter Site logo

Comments (5)

neusdan avatar neusdan commented on May 27, 2024

Thats not possible at the moment. TrustedGRUB2 can only use sealed LUKS keyfiles when using the cryptomount command.

So if i understand you correctly you wan't to read out a TPM key and pass this to LUKS to decrypt the volume?

from trustedgrub2.

mtahmed avatar mtahmed commented on May 27, 2024

Correct. I want to be able to read out a TPM key, pass it to maybe the cryptomount command, which unlocks the LUKS-encrypted volume for me.

from trustedgrub2.

mtahmed avatar mtahmed commented on May 27, 2024

Do you know how feasible/easy it would be to add that functionality? I am willing to do the work and send a pull request if I could get some pointers.

from trustedgrub2.

neusdan avatar neusdan commented on May 27, 2024

To answer this question i need more information how tpm-luks works. Which key is used to encrypt the data? As far as i know it is not possible to read out TPM keys in the clear. You can only send a encrypted data blob to the TPM to either unseal or unbind the data. In the latter case the data is only bind to the TPM and not additionally to the plattform configuration.

So i assume tpm-luks generates a key and encrypts this key with a TPM key. But you have to look up this.

from trustedgrub2.

mtahmed avatar mtahmed commented on May 27, 2024

Well, tpm-luks is able to get the keys from the TPM NVRAM. It uses nv_readvalue to read the NVRAM at some given offset. I was able to achieve that using tpm-luks already and thanks for the help.

I do have a question about what values to pre-compute when I update the initrd and linux and I would appreciate any help with that. I will ask that in a different question.

from trustedgrub2.

Related Issues (20)

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.