Home
last modified time | relevance | path

Searched refs:pAssert (Results 1 – 25 of 57) sorted by relevance

123

/external/ms-tpm-20-ref/TPMCmd/tpm/src/subsystem/
DSession.c247 pAssert(HandleGetType(handle) == TPM_HT_POLICY_SESSION in SessionIsLoaded()
279 pAssert(HandleGetType(handle) == TPM_HT_POLICY_SESSION in SessionIsSaved()
357 pAssert(HandleGetType(handle) == TPM_HT_POLICY_SESSION in SessionGet()
363 pAssert(slotIndex < MAX_ACTIVE_SESSIONS); in SessionGet()
369 pAssert(sessionIndex < MAX_LOADED_SESSIONS); in SessionGet()
403 pAssert(sessionIndex < MAX_LOADED_SESSIONS); in ContextIdSessionCreate()
465 pAssert(sessionType == TPM_SE_HMAC in SessionCreate()
551 pAssert(key.t.size + seed->t.size <= sizeof(key.t.buffer)); in SessionCreate()
603 pAssert(SessionIsLoaded(handle)); in SessionContextSave()
618 pAssert(contextIndex < MAX_ACTIVE_SESSIONS); in SessionContextSave()
[all …]
DNvReserved.c200 pAssert(nvOffset + size < NV_MEMORY_SIZE); in NvRead()
235 pAssert(offset + size <= sizeof(gp)); in NvUpdatePersistent()
249 pAssert(offset + size <= sizeof(gp)); in NvClearPersistent()
DNvDynamic.c268 pAssert(end + sizeof(NV_LIST_TERMINATOR) <= s_evictNvEnd); in NvWriteNvListEnd()
360 pAssert(nextAddr > entryRef); in NvDelete()
523 pAssert(ORDERLY_RAM_ADDRESS_OK(end, header.size)); in NvAddRAM()
565 pAssert(nodeAddress != 0); in NvDeleteRAM()
596 pAssert(nvIndex != NULL); in NvReadNvIndexInfo()
886 pAssert(nvIndex != NULL); in NvGetIndexData()
890 pAssert(IS_ATTRIBUTE(nvAttributes, TPMA_NV, WRITTEN)); in NvGetIndexData()
896 pAssert(ramAddr != 0 && (size <= in NvGetIndexData()
903 pAssert(offset <= nvIndex->publicArea.dataSize in NvGetIndexData()
1082 pAssert(nvIndex != NULL); in NvWriteIndexData()
[all …]
DObject.c147 pAssert(object != NULL); in ObjectIsSequence()
172 pAssert(index < MAX_LOADED_OBJECTS); in HandleToObject()
173 pAssert(s_objects[index].attributes.occupied); in HandleToObject()
406 pAssert(publicArea != NULL); in ObjectLoad()
685 pAssert(index < MAX_LOADED_OBJECTS); in FlushObject()
917 pAssert(HandleGetType(handle) == TPM_HT_TRANSIENT); in ObjectCapGetLoaded()
931 pAssert(s_objects[i].attributes.evict == CLEAR); in ObjectCapGetLoaded()
/external/ms-tpm-20-ref/Samples/ARM32-FirmwareTPM/optee_ta/fTPM/platform/
DNVMem.c503 pAssert((startOffset + size) <= NV_CHIP_MEMORY_SIZE); in _plat__NvMemoryRead()
504 pAssert(s_NV != NULL); in _plat__NvMemoryRead()
566 pAssert(startOffset + size <= NV_CHIP_MEMORY_SIZE); in _plat__NvMemoryWrite()
567 pAssert(s_NV != NULL); in _plat__NvMemoryWrite()
582 pAssert(start + size <= NV_MEMORY_SIZE); in _plat__NvMemoryClear()
599 pAssert(sourceOffset + size <= NV_CHIP_MEMORY_SIZE); in _plat__NvMemoryMove()
600 pAssert(destOffset + size <= NV_CHIP_MEMORY_SIZE); in _plat__NvMemoryMove()
601 pAssert(s_NV != NULL); in _plat__NvMemoryMove()
DNvAdmin.c86 pAssert(stateAddr <= (NV_MEMORY_SIZE + NV_TPM_STATE_SIZE)); in _admin__NvInitState()
132 pAssert(type >= 0 && type < NV_TPM_STATE_LAST); in _admin__NvReadState()
147 pAssert(type >= 0 && type < NV_TPM_STATE_LAST); in _admin__NvWriteState()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/support/
DBits.c63 pAssert(bytesInArray > (bitNum >> 3)); in TestBit()
76 pAssert(bytesInArray > (bitNum >> 3)); in SetBit()
89 pAssert(bytesInArray > (bitNum >> 3)); in ClearBit()
DIoBuffers.c83 pAssert(size <= sizeof(s_actionIoBuffer)); in MemoryGetInBuffer()
105 pAssert((size + s_actionIoAllocation) < (sizeof(s_actionIoBuffer))); in MemoryGetOutBuffer()
DMemory.c102 pAssert(dest != NULL); in MemoryCopy2B()
107 pAssert(source->size <= dSize); in MemoryCopy2B()
126 pAssert(bIn->size <= aMaxSize - aInOut->size); in MemoryConcat2B()
DEntity.c272 pAssert(object->attributes.publicOnly == CLEAR); in EntityGetAuthValue()
281 pAssert(nvIndex != NULL); in EntityGetAuthValue()
369 pAssert(nvIndex != 0); in EntityGetAuthPolicy()
455 pAssert(nvIndex != NULL); in EntityGetHierarchy()
DHandle.c116 pAssert(HandleGetType(handle) == TPM_HT_PERMANENT); in PermanentCapGetHandles()
162 pAssert(HandleGetType(handle) == TPM_HT_PERMANENT); in PermanentHandleGetPolicy()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/crypt/
DBnMath.c130 pAssert((unsigned)stop < result->allocated); in CarryResolve()
156 pAssert(result->allocated >= n1->size); in BnAdd()
240 pAssert(op1->size >= op2->size); in BnSub()
245 pAssert(!borrow); in BnSub()
262 pAssert(op->size > 1 || word <= op->d[0]); in BnSubWord()
266 pAssert(!borrow); in BnSubWord()
289 pAssert((op1 != NULL) && (op2 != NULL)); in BnUnsignedCmp()
413 pAssert(n->allocated > 1); in BnSetWord()
430 pAssert(bn->allocated * RADIX_BITS >= bitNum); in BnSetBit()
515 pAssert(finalSize <= result->allocated); in BnShiftRight()
DBnConvert.c69 pAssert(BnGetAllocated(bn) >= size); in BnFromBytes()
129 pAssert(bn && hex); in BnFromHex()
183 pAssert(bn && buffer && size); in BnToBytes()
205 pAssert(requiredSize <= *size); in BnToBytes()
286 pAssert(p && ecP && E); in BnPointTo2B()
287 pAssert(BnEqualWord(ecP->z, 1)); in BnPointTo2B()
DCryptPrime.c80 pAssert(next != 0); in Root2()
81 pAssert(((n / next) <= (unsigned)next) && (n / (next + 1) < (unsigned)next)); in Root2()
188 pAssert(bnW->size > 1); in MillerRabin()
191 pAssert(bnWm1->size != 0); in MillerRabin()
366 pAssert(prime->allocated >= BITS_TO_CRYPT_WORDS(bits)); in BnGeneratePrimeForRSA()
368 pAssert((bits % 32) == 0); in BnGeneratePrimeForRSA()
DCryptEccSignature.c134 pAssert(digest != NULL); in BnSignEcdsa()
443 pAssert(BnHexEqual(bnR, "40F1EC59F793D9F49E09DCEF49130D41" in BnSignEcSm2()
458 pAssert(BnHexEqual(bnT, "79BFCF3052C80DA7B939E0C6914A18CB" in BnSignEcSm2()
468 pAssert(BnHexEqual(bnS, "6FC6DAC32C5D5CF10C77DFB20F7C2EB6" in BnSignEcSm2()
479 pAssert(BnHexEqual(bnR, "40F1EC59F793D9F49E09DCEF49130D41" in BnSignEcSm2()
481 pAssert(BnHexEqual(bnS, "6FC6DAC32C5D5CF10C77DFB20F7C2EB6" in BnSignEcSm2()
656 pAssert(BnHexEqual(bnR, in BnValidateSignatureEcSm2()
659 pAssert(BnHexEqual(bnS, in BnValidateSignatureEcSm2()
667 pAssert(BnHexEqual(bnT, in BnValidateSignatureEcSm2()
680 pAssert(OK && BnHexEqual(P->x, in BnValidateSignatureEcSm2()
[all …]
DCryptHash.c213 pAssert(out->type == in->type); in CryptHashCopyState()
424 pAssert(hashState->type == HASH_STATE_HASH); in CryptHashEnd()
466 pAssert(bIn != NULL); in CryptDigestUpdate2B()
598 pAssert(hState->type == HASH_STATE_HMAC); in CryptHmacEnd()
749 pAssert(key != NULL && keyStream != NULL); in CryptKDFa()
761 pAssert(((sizeInBits + 7) / 8) <= INT16_MAX); in CryptKDFa()
845 pAssert(keyStream != NULL && Z != NULL && ((sizeInBits + 7) / 8) < INT16_MAX); in CryptKDFe()
DCryptEccKeyExchange.c110 pAssert(outZ != NULL && pQeB != NULL && pQsB != NULL && deA != NULL in C_2_2_MQV()
194 pAssert(outZs != NULL && dsA != NULL && deA != NULL && QsB != NULL in C_2_2_ECDH()
230 pAssert(outZ1 != NULL in CryptEcc2PhaseKeyExchange()
341 pAssert(outZ != NULL && dsA != NULL && deA != NULL && QsB != NULL in SM2KeyExchange()
DBnMemory.c56 pAssert(top <= bn->allocated); in BnSetTop()
143 pAssert(BnGetAllocated(out) >= BnGetSize(in)); in BnCopy()
DCryptRand.c198 pAssert(dfState->contents <= DRBG_IV_SIZE_BYTES); in DfUpdate()
279 pAssert(requiredEntropy == sizeof(DRBG_NistTestVector_Entropy)); in DRBG_GetEntropy()
415 pAssert(drbgState->magic == DRBG_MAGIC); in DRBG_Update()
460 pAssert((drbgState != NULL) && (drbgState->magic == DRBG_MAGIC)); in DRBG_Reseed()
500 pAssert(!IsSelfTest()); in DRBG_SelfTest()
920 pAssert((pSize == 0) || (pSize <= sizeof(seed)) || (personalization != NULL)); in DRBG_Instantiate()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/crypt/wolf/
DTpmToWolfMath.c78 pAssert((unsigned)wolfBn->used <= 2 * BnGetAllocated(bn)); in BnFromWolf()
80 pAssert((unsigned)wolfBn->used <= BnGetAllocated(bn)); in BnFromWolf()
193 pAssert(BnGetAllocated(result) >= BnGetSize(modulus)); in BnModMult()
221 pAssert(result->allocated >= in BnMult()
252 pAssert(!BnEqualZero(divisor)); in BnDiv()
263 pAssert((quotient == NULL) in BnDiv()
266 pAssert((remainder == NULL) in BnDiv()
295 pAssert(gcd != NULL); in BnGcd()
396 pAssert(P != NULL); in EcPointInitialized()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Context/
DContextSave.c122 pAssert(out->context.contextBlob.t.size in TPM2_ContextSave()
165 pAssert(out->context.contextBlob.t.size in TPM2_ContextSave()
172 pAssert(sizeof(*session) <= sizeof(out->context.contextBlob.t.buffer) in TPM2_ContextSave()
201 pAssert(sizeof(out->context.sequence) <= in TPM2_ContextSave()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/crypt/ltc/
DTpmToLtcMath.c68 pAssert(BnGetAllocated(result) >= BnGetSize(modulus)); in BnModMult()
106 pAssert(!BnEqualZero(divisor)); in BnDiv()
116 pAssert((quotient == NULL) in BnDiv()
119 pAssert((remainder == NULL) in BnDiv()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/main/
DCommandDispatcher.c161 pAssert(command->index in ParseHandleBuffer()
166 pAssert(desc != NULL); in ParseHandleBuffer()
292 pAssert(command->index in CommandDispatcher()
297 pAssert(desc != NULL); in CommandDispatcher()
/external/ms-tpm-20-ref/Samples/ARM32-FirmwareTPM/optee_ta/fTPM/platform/include/
DAdmin.h60 #define pAssert(a) ((void)0) macro
62 #define pAssert(a) \ macro
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Object/
DObject_spt.c554 pAssert(curveScheme != NULL); in SchemeChecks()
1034 pAssert(name != NULL && name->t.size != 0); in SensitiveToPrivate()
1112 pAssert(name != NULL && name->size != 0); in PrivateToSensitive()
1192 pAssert(name != NULL && name->size != 0); in SensitiveToDuplicate()
1195 pAssert(symDef != NULL && innerSymKey != NULL); in SensitiveToDuplicate()
1249 pAssert(innerSymKey->t.size == (symDef->keyBits.sym + 7) / 8); in SensitiveToDuplicate()
1314 pAssert(name != NULL && name->size != 0); in DuplicateToSensitive()
1317 pAssert(symDef != NULL && innerSymKey != NULL); in DuplicateToSensitive()
1341 pAssert(innerSymKey->size == (symDef->keyBits.sym + 7) / 8); in DuplicateToSensitive()
1397 pAssert(secret != NULL && outIDObject != NULL); in SecretToCredential()

123