Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Infinion TMP (id:49465800) #189

Closed
redhook62 opened this issue Oct 12, 2020 · 3 comments
Closed

Error with Infinion TMP (id:49465800) #189

redhook62 opened this issue Oct 12, 2020 · 3 comments

Comments

@redhook62
Copy link

Hi @aseigler

I'll come back to you, it's not urgent.
I had a problem when using an Infinion TPM (id: 49465800).
In fact by reinstalling an HP laptop, the internal TPM has been activated, so the disks are BitLocked,
before the type of attestation was PACKED and now obviously it is TPM.
So I was forced to slightly modify the source of TPM.cs.

In the SANFromAttnCertExts procedure

generalName.CheckConstructed();
generalName.CheckNumSub (1);
                        
var exp = generalName.GetSub (0);
exp.CheckConstructed ();
// exp.CheckNumSub (1);                        // id: 49465800 'IFX' Infinion check number is wrong: 3
exp.CheckTag (AsnElt.SEQUENCE);

var directoryName = exp.GetSub (0);
directoryName.CheckConstructed ();
// directoryName.CheckNumSub (3);      // id: 49465800 'IFX' Infinion check number is wrong: 1
directoryName.CheckTag (AsnElt.SET);

in the Verify procedure

// Best I can figure to do for now ?  // id:49465800 'IFX' Infinion  Model and Version are empty
// if (string.Empty == tpmManufacturer || string.Empty == tpmModel ||string.Empty == tpmVersion)
if (string.Empty == tpmManufacturer)
{
     throw new VerificationException("SAN missing TPMManufacturer, TPMModel, or TPMVersion from TPM attestation certificate");
}

Do you have an opinion on this

Regards

redhook

@aseigler
Copy link
Collaborator

Check out this PR, I think it is directly related to what you're talking about: #187

@redhook62
Copy link
Author

@aseigler

Thank you, now it works fine !

Regards

@aseigler
Copy link
Collaborator

aseigler commented Oct 12, 2020

Glad to hear it, that one was...fun. It's going to be integrated soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants