Lines Matching defs:Scratch

65     /** Scratch space for decoding the key. */
72 /** Scratch area where we assemble the signature. */
74 } Scratch;
157 rc = RTCrRsaPublicKey_DecodeAsn1(&PrimaryCursor.Cursor, 0, &pThis->Scratch.PublicKey, "PublicKey");
160 rc = RTAsn1Integer_ToBigNum(&pThis->Scratch.PublicKey.Modulus, &pThis->Modulus, 0);
163 rc = RTAsn1Integer_ToBigNum(&pThis->Scratch.PublicKey.PublicExponent, &pThis->Exponent, 0);
166 RTAsn1VtDelete(&pThis->Scratch.PublicKey.SeqCore.Asn1Core);
171 RTAsn1VtDelete(&pThis->Scratch.PublicKey.SeqCore.Asn1Core);
176 rc = RTCrRsaPrivateKey_DecodeAsn1(&PrimaryCursor.Cursor, 0, &pThis->Scratch.PrivateKey, "PrivateKey");
179 rc = RTAsn1Integer_ToBigNum(&pThis->Scratch.PrivateKey.Modulus, &pThis->Modulus, RTBIGNUMINIT_F_SENSITIVE);
182 rc = RTAsn1Integer_ToBigNum(&pThis->Scratch.PrivateKey.PublicExponent, &pThis->Exponent, RTBIGNUMINIT_F_SENSITIVE);
185 RTAsn1VtDelete(&pThis->Scratch.PrivateKey.SeqCore.Asn1Core);
190 RTAsn1VtDelete(&pThis->Scratch.PrivateKey.SeqCore.Asn1Core);
239 AssertReturn(cbEncodedMsg * 2 <= sizeof(pThis->Scratch), VERR_CR_PKIX_INTERNAL_ERROR);
275 uint8_t *pbDst = &pThis->Scratch.abSignature[0];
288 Assert((size_t)(pbDst - &pThis->Scratch.abSignature[0]) == cbEncodedMsg);
300 if (cbSignature > sizeof(pThis->Scratch) / 2)
331 if (cbDecrypted <= sizeof(pThis->Scratch) / 2)
333 uint8_t *pbDecrypted = &pThis->Scratch.abSignature[sizeof(pThis->Scratch) / 2];
346 if (memcmp(&pThis->Scratch.abSignature[0], pbDecrypted, cbDecrypted) == 0)
358 if (memcmp(&pThis->Scratch.abSignature[0], pbDecrypted, cbDecrypted) == 0)