• Home
  • Raw
  • Download

Lines Matching refs:available_read

164     if (!data_.write(input.peek_read(), input.available_read())) {  in StoreData()
166 input.available_read() + data_.available_read(), EVP_PKEY_size(rsa_key_)); in StoreData()
170 *input_consumed = input.available_read(); in StoreData()
287 if (EVP_DigestSignUpdate(&digest_ctx_, input.peek_read(), input.available_read()) != 1) in Update()
289 *input_consumed = input.available_read(); in Update()
309 assert(padded_len > src.available_read()); in zero_pad_left()
315 size_t padding_len = padded_len - src.available_read(); in zero_pad_left()
317 if (!src.read(dest->get() + padding_len, src.available_read())) in zero_pad_left()
337 if (data_.available_read() > key_len) { in SignUndigested()
339 } else if (data_.available_read() < key_len) { in SignUndigested()
351 if (data_.available_read() + kPkcs1UndigestedSignaturePaddingOverhead > key_len) { in SignUndigested()
353 data_.available_read(), EVP_PKEY_size(rsa_key_) * 8); in SignUndigested()
356 bytes_encrypted = RSA_private_encrypt(data_.available_read(), data_.peek_read(), in SignUndigested()
410 if (EVP_DigestVerifyUpdate(&digest_ctx_, input.peek_read(), input.available_read()) != 1) in Update()
412 *input_consumed = input.available_read(); in Update()
439 if (data_.available_read() > key_len) in VerifyUndigested()
441 if (key_len != signature.available_read()) in VerifyUndigested()
446 if (data_.available_read() + kPkcs1UndigestedSignaturePaddingOverhead > key_len) { in VerifyUndigested()
448 data_.available_read(), key_len * 8); in VerifyUndigested()
460 int bytes_decrypted = RSA_public_decrypt(signature.available_read(), signature.peek_read(), in VerifyUndigested()
468 if (padding_ == KM_PAD_NONE && data_.available_read() < bytes_to_compare) { in VerifyUndigested()
472 const uint8_t* zero_end = compare_pos + bytes_to_compare - data_.available_read(); in VerifyUndigested()
475 bytes_to_compare = data_.available_read(); in VerifyUndigested()
483 if (!EVP_DigestVerifyFinal(&digest_ctx_, signature.peek_read(), signature.available_read())) in VerifyDigested()
549 data_.available_read()) <= 0) in Finish()
556 size_t to_encrypt_len = data_.available_read(); in Finish()
602 data_.available_read()) <= 0) in Finish()
609 size_t to_decrypt_len = data_.available_read(); in Finish()