Coder Social home page Coder Social logo

Comments (4)

hug-dev avatar hug-dev commented on August 17, 2024 2

Also I think we need to refactor the responsde code handling to make it less clunky:

let ret = Error::from_tss_rc(ret);
if ret.success() {
    ...
} else {
    ...
}

We should convert ret to a Result<(), Error>

from rust-tss-esapi.

Superhepper avatar Superhepper commented on August 17, 2024 1

I am not sure. I was just unable check if I got the error that I was interested in and I did some minor digging in the specifications but did not really come up with any answers.

From reading the specification we can say for a fact that we are not reporting the layer in software stack from where the error originated. That could be information that is worth providing.

from rust-tss-esapi.

hug-dev avatar hug-dev commented on August 17, 2024

As in we cover the TSS2_RC values but not the TSS2_ESYS_RC ones? Going through the spec there are also the TSS2_TCTI_RC values 😨

from rust-tss-esapi.

Superhepper avatar Superhepper commented on August 17, 2024

I have started to work on this and it is 'not to bad'. It seems as we are just missing a lot of information and in some cases when the error is originating from the software stack it self and in that case we might be doing something wrong. But the errors originating from the TPM are handled correct from what I can see.

But I will refactor the response code and add support for errors originating from the software stack. But this will probably require breaking the API.

from rust-tss-esapi.

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.