On 1/23/2017 5:16 PM, James Bottomley wrote: > > because the 0x9XX return codes don't have any parameter information > that needs stripping and (rc & TPM2_RC_REFERENCE_H0) == > TPM2_RC_REFERENCE_H0) will match any error code that has bits 11, 8 > and 5 set. > > I think the handle check was wrong too, it should have been > > if (rc & 0xff) == TPM2_RC_HANDLE) > > Because all you need to do is strip off the parameter information
This is just FYI ... The TPM feature that adds parameter or handle numbers to the return code is optional. So, masking them out is OK, but don't do anything that requires that 3 bit field to be accurate. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ tpmdd-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tpmdd-devel
