Lines Matching +full:case +full:- +full:sensitive

63 //     implementation-dependent allowed in range for loaded transient objects.
82 slotIndex = handle - TRANSIENT_FIRST; in ObjectIsPresent()
105 if( object->attributes.hmacSeq == SET in ObjectIsSequence()
106 || object->attributes.hashSeq == SET in ObjectIsSequence()
107 || object->attributes.eventSeq == SET) in ObjectIsSequence()
125 && handle - TRANSIENT_FIRST < MAX_LOADED_OBJECTS); in ObjectGet()
126 pAssert(s_objects[handle - TRANSIENT_FIRST].occupied == TRUE); in ObjectGet()
129 return &s_objects[handle - TRANSIENT_FIRST].object.entity; in ObjectGet()
147 if(object->publicArea.nameAlg == TPM_ALG_NULL) in ObjectGetName()
150 MemoryCopy(name, object->name.t.name, object->name.t.size, sizeof(NAME)); in ObjectGetName()
151 return object->name.t.size; in ObjectGetName()
166 return object->publicArea.nameAlg; in ObjectGetNameAlg()
186 if(object->publicArea.nameAlg == TPM_ALG_NULL) in ObjectGetQualifiedName()
187 qualifiedName->t.size = 0; in ObjectGetQualifiedName()
190 *qualifiedName = object->qualifiedName; in ObjectGetQualifiedName()
204 if(object->attributes.spsHierarchy) in ObjectDataGetHierarchy()
208 else if(object->attributes.epsHierarchy) in ObjectDataGetHierarchy()
212 else if(object->attributes.ppsHierarchy) in ObjectDataGetHierarchy()
272 MemorySet(&((*object)->attributes), 0, sizeof(OBJECT_ATTRIBUTES)); in ObjectAllocateSlot()
287 // TPM_RC_BINDING if the public and sensitive parts of the object are not m…
296 TPMT_SENSITIVE *sensitive, // IN: sensitive area (may be null) in ObjectLoad() argument
312 object->publicArea = *publicArea; in ObjectLoad()
313 if(sensitive != NULL) in ObjectLoad()
314 object->sensitive = *sensitive; in ObjectLoad()
319 if(!CryptObjectIsPublicConsistent(&object->publicArea)) in ObjectLoad()
324 if(sensitive != NULL) in ObjectLoad()
326 // Check if public type matches sensitive type in ObjectLoad()
332 object->attributes.publicOnly = (sensitive == NULL); in ObjectLoad()
336 if(name == NULL || name->t.size == 0) in ObjectLoad()
338 object->qualifiedName.t.size = 0; in ObjectLoad()
339 object->name.t.size = 0; in ObjectLoad()
340 object->attributes.temporary = SET; in ObjectLoad()
358 if( publicArea->objectAttributes.stClear == SET in ObjectLoad()
359 || parent->attributes.stClear == SET) in ObjectLoad()
360 object->attributes.stClear = SET; in ObjectLoad()
362 object->name = *name; in ObjectLoad()
364 ObjectComputeQualifiedName(&parentQN, publicArea->nameAlg, in ObjectLoad()
365 name, &object->qualifiedName); in ObjectLoad()
369 object->attributes.temporary = SET; in ObjectLoad()
375 object->attributes.primary = SET; in ObjectLoad()
379 case TPM_RH_PLATFORM: in ObjectLoad()
380 object->attributes.ppsHierarchy = SET; in ObjectLoad()
382 case TPM_RH_OWNER: in ObjectLoad()
383 object->attributes.spsHierarchy = SET; in ObjectLoad()
385 case TPM_RH_ENDORSEMENT: in ObjectLoad()
386 object->attributes.epsHierarchy = SET; in ObjectLoad()
388 case TPM_RH_NULL: in ObjectLoad()
420 pAssert(&((*object)->auth) == &objectHash->publicArea.authPolicy); in AllocateSequenceSlot()
423 (*object)->type = TPM_ALG_NULL; in AllocateSequenceSlot()
425 (*object)->nameAlg = TPM_ALG_NULL; in AllocateSequenceSlot()
427 MemorySet(&((*object)->objectAttributes), 0, sizeof(TPMA_OBJECT)); in AllocateSequenceSlot()
430 (*object)->attributes.temporary = SET; in AllocateSequenceSlot()
432 (*object)->objectAttributes.noDA = SET; in AllocateSequenceSlot()
436 (*object)->auth = *auth; in AllocateSequenceSlot()
439 (*object)->auth.t.size = 0; in AllocateSequenceSlot()
467 hmacObject->attributes.hmacSeq = SET; in ObjectCreateHMACSequence()
470 CryptStartHMACSequence2B(hashAlg, &keyObject->sensitive.sensitive.bits.b, in ObjectCreateHMACSequence()
471 &hmacObject->state.hmacState); in ObjectCreateHMACSequence()
496 hashObject->attributes.hashSeq = SET; in ObjectCreateHashSequence()
498 CryptStartHashSequence(hashAlg, &hashObject->state.hashState[0]); in ObjectCreateHashSequence()
524 hashObject->attributes.eventSeq = SET; in ObjectCreateEventSequence()
531 CryptStartHash(hash, &hashObject->state.hashState[count]); in ObjectCreateEventSequence()
533 CryptStartHashSequence(hash, &hashObject->state.hashState[count]); in ObjectCreateEventSequence()
553 if(hashObject->attributes.eventSeq) in ObjectTerminateEvent()
555 // If it is, close any open hash contexts. This is done in case in ObjectTerminateEvent()
561 CryptCompleteHash(&hashObject->state.hashState[count], 0, buffer); in ObjectTerminateEvent()
605 UINT32 index = handle - TRANSIENT_FIRST; in ObjectFlush()
634 case TPM_RH_PLATFORM: in ObjectFlushHierarchy()
638 case TPM_RH_OWNER: in ObjectFlushHierarchy()
642 case TPM_RH_ENDORSEMENT: in ObjectFlushHierarchy()
728 if(publicArea->nameAlg == TPM_ALG_NULL) in ObjectComputeName()
730 name->t.size = 0; in ObjectComputeName()
734 name->t.size = CryptStartHash(publicArea->nameAlg, &hashState); in ObjectComputeName()
742 CryptCompleteHash(&hashState, name->t.size, &name->t.name[2]); in ObjectComputeName()
744 UINT16_TO_BYTE_ARRAY(publicArea->nameAlg, name->t.name); in ObjectComputeName()
746 name->t.size += 2; in ObjectComputeName()
766 qualifiedName->t.size = CryptStartHash(nameAlg, &hashState); in ObjectComputeQualifiedName()
768 CryptUpdateDigest2B(&hashState, &parentQN->b); in ObjectComputeQualifiedName()
770 CryptUpdateDigest2B(&hashState, &name->b); in ObjectComputeQualifiedName()
772 CryptCompleteHash(&hashState, qualifiedName->t.size, in ObjectComputeQualifiedName()
773 &qualifiedName->t.name[2]); in ObjectComputeQualifiedName()
774 UINT16_TO_BYTE_ARRAY(nameAlg, qualifiedName->t.name); in ObjectComputeQualifiedName()
775 qualifiedName->t.size += 2; in ObjectComputeQualifiedName()
795 if( CryptIsAsymAlgorithm(publicArea->type) // must be asymmetric, in ObjectDataIsStorage()
796 && publicArea->objectAttributes.restricted == SET // restricted, in ObjectDataIsStorage()
797 && publicArea->objectAttributes.decrypt == SET // decryption key in ObjectDataIsStorage()
798 && publicArea->objectAttributes.sign == CLEAR // can not be sign key in ObjectDataIsStorage()
821 return ObjectDataIsStorage(&object->publicArea); in ObjectIsStorage()
846 handleList->count = 0; in ObjectCapGetLoaded()
850 for(i = handle - TRANSIENT_FIRST; i < MAX_LOADED_OBJECTS; i++) in ObjectCapGetLoaded()
856 if(handleList->count < count) in ObjectCapGetLoaded()
860 handleList->handle[handleList->count] = i + TRANSIENT_FIRST; in ObjectCapGetLoaded()
861 handleList->count++; in ObjectCapGetLoaded()