Lines Matching refs:end
85 output->assign(content.begin(), content.end()); in Export()
110 output->assign(content.begin(), content.end()); in ExportPublicKeyInfo()
126 output->assign(content.begin(), content.end()); in ExportPublicKey()
139 uint8_t* end = src + input.size(); in Import() local
140 if (!ReadSequence(&src, end) || in Import()
141 !ReadVersion(&src, end) || in Import()
142 !ReadAlgorithmIdentifier(&src, end) || in Import()
143 !ReadTypeHeaderAndLength(&src, end, kOctetStringTag, NULL) || in Import()
144 !ReadSequence(&src, end) || in Import()
145 !ReadVersion(&src, end) || in Import()
146 !ReadInteger(&src, end, &modulus_)) in Import()
153 if (!ReadIntegerWithExpectedSize(&src, end, 4, &public_exponent_) || in Import()
154 !ReadIntegerWithExpectedSize(&src, end, mod_size, &private_exponent_) || in Import()
155 !ReadIntegerWithExpectedSize(&src, end, primes_size, &prime1_) || in Import()
156 !ReadIntegerWithExpectedSize(&src, end, primes_size, &prime2_) || in Import()
157 !ReadIntegerWithExpectedSize(&src, end, primes_size, &exponent1_) || in Import()
158 !ReadIntegerWithExpectedSize(&src, end, primes_size, &exponent2_) || in Import()
159 !ReadIntegerWithExpectedSize(&src, end, primes_size, &coefficient_)) in Import()
162 READ_ASSERT(src == end); in Import()
189 std::reverse(tmp.begin(), tmp.end()); in PrependIntegerImpl()
216 uint8_t* end, in ReadInteger() argument
218 return ReadIntegerImpl(pos, end, out, big_endian_); in ReadInteger()
223 uint8_t* end, in ReadIntegerWithExpectedSize() argument
227 if (!ReadIntegerImpl(pos, end, &temp, true)) // Big-Endian in ReadIntegerWithExpectedSize()
240 out->insert(out->end(), pad, 0x00); in ReadIntegerWithExpectedSize()
241 out->insert(out->end(), temp.begin(), temp.end()); in ReadIntegerWithExpectedSize()
245 std::reverse(out->begin(), out->end()); in ReadIntegerWithExpectedSize()
250 uint8_t* end, in ReadIntegerImpl() argument
254 if (!ReadTypeHeaderAndLength(pos, end, kIntegerTag, &length) || !length) in ReadIntegerImpl()
264 out->insert(out->end(), *pos, (*pos) + length); in ReadIntegerImpl()
270 std::reverse(out->begin(), out->end()); in ReadIntegerImpl()
323 uint8_t* end, in ReadLength() argument
325 READ_ASSERT(*pos < end); in ReadLength()
337 READ_ASSERT(*pos + length_of_length < end); in ReadLength()
347 READ_ASSERT(*pos + length <= end); in ReadLength()
353 uint8_t* end, in ReadTypeHeaderAndLength() argument
356 READ_ASSERT(*pos < end); in ReadTypeHeaderAndLength()
360 return ReadLength(pos, end, length); in ReadTypeHeaderAndLength()
363 bool PrivateKeyInfoCodec::ReadSequence(uint8_t** pos, uint8_t* end) { in ReadSequence() argument
364 return ReadTypeHeaderAndLength(pos, end, kSequenceTag, NULL); in ReadSequence()
367 bool PrivateKeyInfoCodec::ReadAlgorithmIdentifier(uint8_t** pos, uint8_t* end) { in ReadAlgorithmIdentifier() argument
368 READ_ASSERT(*pos + sizeof(kRsaAlgorithmIdentifier) < end); in ReadAlgorithmIdentifier()
375 bool PrivateKeyInfoCodec::ReadVersion(uint8_t** pos, uint8_t* end) { in ReadVersion() argument
377 if (!ReadTypeHeaderAndLength(pos, end, kIntegerTag, &length)) in ReadVersion()