/external/tpm2/ |
D | CpriSym.c | 97 pAssert(dOut != NULL && key != NULL && iv != NULL && dIn != NULL); in _cpri__AESEncryptCBC() 100 pAssert(dInSize <= INT32_MAX); in _cpri__AESEncryptCBC() 154 pAssert(dOut != NULL && key != NULL && iv != NULL && dIn != NULL); in _cpri__AESDecryptCBC() 157 pAssert(dInSize <= INT32_MAX); in _cpri__AESDecryptCBC() 212 pAssert(dOut != NULL && key != NULL && iv != NULL && dIn != NULL); in _cpri__AESEncryptCFB() 215 pAssert(dInSize <= INT32_MAX); in _cpri__AESEncryptCFB() 268 pAssert(dOut != NULL && key != NULL && iv != NULL && dIn != NULL); in _cpri__AESDecryptCFB() 271 pAssert(dInSize <= INT32_MAX); in _cpri__AESDecryptCFB() 323 pAssert(dOut != NULL && key != NULL && iv != NULL && dIn != NULL); in _cpri__AESEncryptCTR() 326 pAssert(dInSize <= INT32_MAX); in _cpri__AESEncryptCTR() [all …]
|
D | Session.c | 132 pAssert( HandleGetType(handle) == TPM_HT_POLICY_SESSION in SessionIsLoaded() 166 pAssert( HandleGetType(handle) == TPM_HT_POLICY_SESSION in SessionIsSaved() 197 pAssert(SessionIsLoaded(handle)); in SessionPCRValueIsCurrent() 219 pAssert( HandleGetType(handle) == TPM_HT_POLICY_SESSION in SessionGet() 222 pAssert((handle & HR_HANDLE_MASK) < MAX_ACTIVE_SESSIONS); in SessionGet() 226 pAssert(sessionIndex < MAX_LOADED_SESSIONS); in SessionGet() 258 pAssert(sessionIndex < MAX_LOADED_SESSIONS); in ContextIdSessionCreate() 317 pAssert( sessionType == TPM_SE_HMAC in SessionCreate() 334 pAssert (slotIndex < MAX_LOADED_SESSIONS); in SessionCreate() 387 pAssert(entityAuth.t.size + seed->t.size <= sizeof(key.t.buffer)); in SessionCreate() [all …]
|
D | Entity.c | 70 pAssert(FALSE); in EntityGetLoadStatus() 129 pAssert(FALSE); in EntityGetLoadStatus() 186 pAssert(FALSE); in EntityGetAuthValue() 207 pAssert(object->attributes.publicOnly == CLEAR); in EntityGetAuthValue() 227 pAssert(FALSE); in EntityGetAuthValue() 231 pAssert(authValue.t.size <= sizeof(authValue.t.buffer)); in EntityGetAuthValue() 282 pAssert(FALSE); in EntityGetAuthPolicy() 309 pAssert(FALSE); in EntityGetAuthPolicy() 418 pAssert(0); in EntityGetHierarchy()
|
D | CryptUtil.c | 114 pAssert(randomSize <= MAX_RSA_KEY_BYTES || randomSize <= PRIMARY_SEED_SIZE); in CryptGenerateRandom() 160 pAssert(hashState != NULL); in CryptStartHash() 189 pAssert(hashState != NULL); in CryptStartHashSequence() 226 pAssert(hashState != NULL); in CryptStartHMAC() 332 pAssert(digestState != NULL); in CryptUpdateDigest() 377 pAssert( intValue != NULL && (intSize == 1 || intSize == 2 in CryptUpdateDigestInt() 386 pAssert(intValue != NULL); in CryptUpdateDigestInt() 437 pAssert(hashState->type == HASH_STATE_HASH); in CryptCompleteHash() 512 pAssert(hmacState != NULL); in CryptCompleteHMAC() 514 pAssert(hashState->type == HASH_STATE_HMAC); in CryptCompleteHMAC() [all …]
|
D | CpriRSA.c | 47 pAssert(key != NULL && key->privateKey != NULL && key->publicKey != NULL); in RsaPrivateExponent() 62 pAssert(key->publicKey->size <= MAX_RSA_KEY_BYTES); in RsaPrivateExponent() 152 pAssert(publicKey != NULL && prime1 != NULL); in _cpri__TestKeyRSA() 154 pAssert( prime1->size <= MAX_RSA_KEY_BYTES/2 in _cpri__TestKeyRSA() 156 pAssert( prime2 == NULL || prime2->size < MAX_RSA_KEY_BYTES/2); in _cpri__TestKeyRSA() 276 pAssert(retVal != CRYPT_UNDERFLOW); in RSAEP() 306 pAssert(key != NULL && dInOut != NULL && in RSADP() 320 pAssert(retVal != CRYPT_UNDERFLOW); in RSADP() 360 pAssert(padded != NULL && message != NULL); in OaepEncode() 450 pAssert(hLen > 0 && dataOutSize != NULL && dataOut != NULL && padded != NULL); in OaepDecode() [all …]
|
D | Bits.c | 29 pAssert(arraySize > (bitNum >> 3)); in BitIsSet() 45 pAssert(arraySize > bitNum/8); in BitSet() 61 pAssert(arraySize > bitNum/8); in BitClear()
|
D | CpriECC.c | 160 pAssert(groupContext != NULL && curveData != NULL); in EccCurveInit() 299 pAssert(pIn != NULL && dOut != NULL && pIn->size <= MAX_ECC_KEY_BYTES); in GetRandomPrivate() 359 pAssert((dIn != NULL || uIn != NULL) && (Qin != NULL || dIn != NULL)); in _cpri__EccPointMultiply() 371 pAssert(group != NULL); in _cpri__EccPointMultiply() 483 pAssert((r && (K || !B) && (L || !B)) || (E || (!M && B))); in _cpri__EccCommitCompute() 504 pAssert((int) r->t.size > 0); in _cpri__EccCommitCompute() 511 pAssert((int) d->t.size > 0); in _cpri__EccCommitCompute() 604 pAssert(Q != NULL && curveData != NULL); in _cpri__EccIsPointOnCurve() 692 pAssert( seed != NULL && dOut != NULL && Qout != NULL && curveData != NULL); in _cpri__GenerateKeyEcc() 705 pAssert((int) curveData->n->size <= MAX_ECC_KEY_BYTES); in _cpri__GenerateKeyEcc() [all …]
|
D | NV.c | 411 pAssert(currAddr < s_ramIndexSize); in NvGetRAMIndexOffset() 434 pAssert(s_ramIndexSize <= RAM_INDEX_SPACE); in NvAddRAM() 585 pAssert(type >= 0 && type < NV_RESERVE_LAST); in NvReadReserved() 603 pAssert(type >= 0 && type < NV_RESERVE_LAST); in NvWriteReserved() 730 pAssert(addr == 0); in NvNextIndex() 754 pAssert(addr == 0); in NvNextEvict() 780 pAssert(addr == 0); in NvFindHandle() 999 pAssert(HandleGetType(handle) == TPM_HT_NV_INDEX); in NvIsUndefinedIndex() 1033 pAssert(HandleGetType(handle) == TPM_HT_NV_INDEX); in NvIndexIsAccessible() 1095 pAssert(HandleGetType(handle) == TPM_HT_PERSISTENT); in NvIsUndefinedEvictHandle() [all …]
|
D | Object.c | 77 pAssert(HandleGetType(handle) == TPM_HT_TRANSIENT); in ObjectIsPresent() 104 pAssert (object != NULL); in ObjectIsSequence() 124 pAssert( handle >= TRANSIENT_FIRST in ObjectGet() 126 pAssert(s_objects[handle - TRANSIENT_FIRST].occupied == TRUE); in ObjectGet() 391 pAssert(FALSE); in ObjectLoad() 420 pAssert(&((*object)->auth) == &objectHash->publicArea.authPolicy); in AllocateSequenceSlot() 606 pAssert(ObjectIsPresent(handle)); in ObjectFlush() 647 pAssert(FALSE); in ObjectFlushHierarchy() 844 pAssert(HandleGetType(handle) == TPM_HT_TRANSIENT); in ObjectCapGetLoaded() 855 pAssert(s_objects[i].object.entity.attributes.evict == CLEAR); in ObjectCapGetLoaded()
|
D | _TPM_Hash_Start.c | 53 pAssert(handle < TRANSIENT_LAST); in _TPM_Hash_Start() 61 pAssert(result == TPM_RC_SUCCESS); in _TPM_Hash_Start()
|
D | CpriHash.c | 90 pAssert(ctxt->digest->ctx_size <= OSSL_HASH_STATE_DATA_SIZE); in MarshalHashState() 111 pAssert(ctxt != NULL); in GetHashState() 119 pAssert(ctxt->digest->ctx_size < sizeof(ALIGNED_HASH_STATE)); in GetHashState() 168 pAssert(cpriStateSize >= osslStateSize); in _cpri__HashStartup() 277 pAssert(sizeof(i) <= sizeof(in->state)); in _cpri__CopyHashState() 771 pAssert(key != NULL && keyStream != NULL); in _cpri__KDFa() 772 pAssert(once == FALSE || (sizeInBits & 7) == 0); in _cpri__KDFa() 789 pAssert(((sizeInBits + 7)/ 8) <= INT16_MAX); in _cpri__KDFa() 866 pAssert( keyStream != NULL in _cpri__KDFe()
|
D | Object_spt.c | 311 pAssert(parentObject->attributes.publicOnly == CLEAR); in AreAttributesForParent() 397 pAssert(curveScheme != NULL); in SchemeChecks() 877 pAssert(name != NULL && name->t.size != 0); in SensitiveToPrivate() 960 pAssert(name != NULL && name->t.size != 0); in PrivateToSensitive() 998 pAssert( (parent == NULL) in PrivateToSensitive() 1054 pAssert(name != NULL && name->t.size != 0); in SensitiveToDuplicate() 1056 pAssert(symDef != NULL && innerSymKey != NULL); in SensitiveToDuplicate() 1110 pAssert(innerSymKey->t.size == (symDef->keyBits.sym + 7) / 8); in SensitiveToDuplicate() 1175 pAssert(name != NULL && name->t.size != 0); in DuplicateToSensitive() 1177 pAssert(symDef != NULL && innerSymKey != NULL); in DuplicateToSensitive() [all …]
|
D | stubs_hash.c | 104 pAssert(key != NULL && keyStream != NULL); in _cpri__KDFa() 105 pAssert(once == FALSE || (sizeInBits & 7) == 0); in _cpri__KDFa() 122 pAssert(((sizeInBits + 7)/ 8) <= INT16_MAX); in _cpri__KDFa() 183 pAssert( keyStream != NULL in _cpri__KDFe()
|
D | ContextSave.c | 79 pAssert(out->context.contextBlob.t.size in TPM2_ContextSave() 129 pAssert(out->context.contextBlob.t.size in TPM2_ContextSave() 161 pAssert(FALSE); in TPM2_ContextSave()
|
D | HierarchyControl.c | 62 pAssert(FALSE); in TPM2_HierarchyControl() 92 pAssert(FALSE); in TPM2_HierarchyControl()
|
D | Hierarchy.c | 133 pAssert(FALSE); in HierarchyGetProof() 164 pAssert(FALSE); in HierarchyGetPrimarySeed() 204 pAssert(FALSE); in HierarchyIsEnabled()
|
D | PP.c | 51 pAssert(CommandIsImplemented(commandCode)); in PhysicalPresenceCommandSet() 74 pAssert(CommandIsImplemented(commandCode)); in PhysicalPresenceCommandClear()
|
D | RSAKeySieve.c | 247 pAssert(BN_is_bit_set(bnW, 0)); in MillerRabin() 265 pAssert((wLen & 7) == 0); in MillerRabin() 473 pAssert(field != NULL && bnN != NULL); in PrimeSieve() 475 pAssert(BitsInArray((BYTE *)&fieldSize, 2) == 2); in PrimeSieve() 609 pAssert(BN_is_bit_set(bnP, 0)); in PrimeSelectWithSieve() 613 pAssert(ones == BitsInArray(field, defaultFieldSize)); in PrimeSelectWithSieve() 730 pAssert(ktx != NULL && outer != NULL && digestSize != 0); in KDFaContextStart() 808 pAssert(n != NULL && p != NULL); in _cpri__GenerateKeyRSA()
|
D | PCR.c | 365 pAssert(FALSE); in GetPcrPointer() 742 pAssert(digest->t.size > 0 && digest->t.size < UINT16_MAX); in PCRComputeCurrentDigest() 758 pAssert(pcrData != NULL); in PCRComputeCurrentDigest() 819 pAssert(pcrData != NULL); in PCRRead() 918 pAssert(j < newAllocate.count); in PCRAllocate() 1222 pAssert(TPM_PT_PCR_FIRST == 0); in PCRCapGetProperties() 1265 pAssert(HandleGetType(handle) == TPM_HT_PCR); in PCRCapGetHandles()
|
D | MemoryLib.c | 39 pAssert(size <= dSize); in MemoryMove() 203 pAssert(size < sizeof(s_actionInputBuffer)); in MemoryGetActionInputBuffer()
|
D | SessionProcess.c | 114 pAssert(gp.lockOutAuthEnabled); in IncrementLockout() 269 pAssert(!IsPolicySessionRequired(commandCode, sessionIndex)); in IsAuthValueAvailable() 628 pAssert((sizeof(AUTH_VALUE) + key.t.size) <= sizeof(key.t.buffer)); in ComputeCommandHMAC() 1112 pAssert(sessionHandle != TPM_RH_UNASSIGNED); in CheckAuthSession() 1115 pAssert(sessionHandleType != TPM_HT_POLICY_SESSION || session != NULL); in CheckAuthSession() 1278 pAssert(handleNum <= MAX_SESSION_NUM); in ParseSessionBuffer() 1706 pAssert((sizeof(AUTH_VALUE) + key.t.size) <= sizeof(key.t.buffer)); in ComputeResponseHMAC() 1790 pAssert(noncesSize >= s_sessionNum); in UpdateTPMNonce() 1924 pAssert(s_sessionNum > 0); in BuildResponseSession()
|
D | ExecCommand.c | 194 pAssert(handleNum <= MAX_HANDLE_NUM); in ExecuteCommand() 345 pAssert(*responseSize <= MAX_RESPONSE_SIZE); in ExecuteCommand()
|
D | Locality.c | 42 pAssert(locality > 31); in LocalityGetAttributes()
|
D | FlushContext.c | 50 pAssert(FALSE); in TPM2_FlushContext()
|
/external/tpm2/include/tpm2/ |
D | TpmError.h | 33 # define pAssert(a) ((void)0) macro 35 # define pAssert(a) {if (!(a)) { FAIL(FATAL_ERROR_PARAMETER);}} macro
|