internal ObjectContext GetContext(Tbs.TbsContext caller, TpmHandle callerHandle)
{
if (Tbs.SlotTypeFromHandle(callerHandle) == Tbs.SlotType.NoSlot)
{
// Indicates that this is a TPM resident object (NV-slot, primary-handle, PWAP-handle, etc.)
var temp = new ObjectContext {TheTpmHandle = callerHandle};
return temp;
}
ObjectContext x = ObjectContexts.Find(item => (item.Owner == caller) && item.OwnerHandle.handle == callerHandle.handle);
// Note that x may be null
return x;
}