Lines Matching refs:Asn1Core
65 uint32_t offLast = pThis->Asn1Core.cb - 1;
66 switch (pThis->Asn1Core.cb)
69 case 8: pThis->uValue.u |= (uint64_t)pThis->Asn1Core.uData.pu8[offLast - 7] << 56;
70 case 7: pThis->uValue.u |= (uint64_t)pThis->Asn1Core.uData.pu8[offLast - 6] << 48;
71 case 6: pThis->uValue.u |= (uint64_t)pThis->Asn1Core.uData.pu8[offLast - 5] << 40;
72 case 5: pThis->uValue.u |= (uint64_t)pThis->Asn1Core.uData.pu8[offLast - 4] << 32;
73 case 4: pThis->uValue.u |= (uint32_t)pThis->Asn1Core.uData.pu8[offLast - 3] << 24;
74 case 3: pThis->uValue.u |= (uint32_t)pThis->Asn1Core.uData.pu8[offLast - 2] << 16;
75 case 2: pThis->uValue.u |= (uint16_t)pThis->Asn1Core.uData.pu8[offLast - 1] << 8;
76 case 1: pThis->uValue.u |= pThis->Asn1Core.uData.pu8[offLast];
86 RTAsn1Core_InitEx(&pThis->Asn1Core,
98 pThis->Asn1Core.cb = 1;
99 pThis->Asn1Core.uData.pv = (void *)&g_abSmall[0];
145 int rc = RTAsn1ContentAllocZ(&pThis->Asn1Core, cb, pAllocator);
153 uint8_t *pb = (uint8_t *)pThis->Asn1Core.uData.pu8;
170 pThis->Asn1Core.fFlags &= ~RTASN1CORE_F_PRESENT;
171 pThis->Asn1Core.fFlags |= RTASN1CORE_F_DEFAULT;
179 AssertReturn(pThis->Asn1Core.fFlags, -1);
180 uint8_t const *pb = pThis->Asn1Core.uData.pu8;
182 uint32_t cb = pThis->Asn1Core.cb;
183 AssertReturn(pThis->Asn1Core.cb < (uint32_t)INT32_MAX / 8, -1);
208 Assert(pLeft && (!RTAsn1Integer_IsPresent(pLeft) || pLeft->Asn1Core.pOps == &g_RTAsn1Integer_Vtable));
209 Assert(pRight && (!RTAsn1Integer_IsPresent(pRight) || pRight->Asn1Core.pOps == &g_RTAsn1Integer_Vtable));
216 if ( pLeft->Asn1Core.cb > 8
217 || pRight->Asn1Core.cb > 8)
227 uint8_t const *pbLeft = &pLeft->Asn1Core.uData.pu8[pLeft->Asn1Core.cb - i - 1];
228 uint8_t const *pbRight = &pRight->Asn1Core.uData.pu8[pRight->Asn1Core.cb - i - 1];
260 if (pThis->Asn1Core.cb > 8)
283 if (pThis->Asn1Core.cb > 8)
314 return RTBigNumInit(pBigNum, fBigNumInit, pThis->Asn1Core.uData.pv, pThis->Asn1Core.cb);
327 int rc = RTAsn1ContentReallocZ(&pThis->Asn1Core, cb, pAllocator);
330 Assert(cb == pThis->Asn1Core.cb);
331 rc = RTBigNumToBytesBigEndian(pBigNum, (void *)pThis->Asn1Core.uData.pv, cb);
363 RTAsn1Core_InitEx(&pThis->Asn1Core,
369 pThis->Asn1Core.cb = 1;
370 pThis->Asn1Core.uData.pv = (void *)&g_abSmall[0];
381 AssertReturn(pSrc->Asn1Core.pOps == &g_RTAsn1Integer_Vtable, VERR_INTERNAL_ERROR_3);
384 if ( pSrc->Asn1Core.cb != 1
388 rc = RTAsn1Core_CloneContent(&pThis->Asn1Core, &pSrc->Asn1Core, pAllocator);
395 rc = RTAsn1Core_CloneNoContent(&pThis->Asn1Core, &pSrc->Asn1Core);
399 pThis->Asn1Core.uData.pv = (void *)&g_abSmall[pSrc->uValue.u];
412 Assert(pThis->Asn1Core.pOps == &g_RTAsn1Integer_Vtable);
414 RTAsn1ContentFree(&pThis->Asn1Core);
422 Assert(pThis && (!RTAsn1Integer_IsPresent(pThis) || pThis->Asn1Core.pOps == &g_RTAsn1Integer_Vtable));