Lines Matching refs:Prefix
50 // Prefix sets |*out| to the first |n| bytes of the StringPiece and advances
52 bool Prefix(size_t n, base::StringPiece *out) {
266 return reader->Prefix(length, out_contents);
277 return reader->Prefix(length, out_contents);
314 if (!reader->Prefix(first_chunk_length, &first_chunk))
327 if (!reader->Prefix(chunk_length, &chunk))
409 if (!reader->Prefix(8, &salt))
417 if (!reader->Prefix(8, &salt) ||
517 if (!reader->Prefix(AES_BLOCK_SIZE + 2, &prefix_sp))
519 uint8 prefix[AES_BLOCK_SIZE + 2];
520 memcpy(prefix, prefix_sp.data(), sizeof(prefix));
529 prefix_copy[i] = fre[i] ^ prefix[i];
530 PK11_CipherOp(decryption_context->get(), fre, &out_len, sizeof(fre), prefix,
532 prefix_copy[AES_BLOCK_SIZE] = prefix[AES_BLOCK_SIZE] ^ fre[0];
533 prefix_copy[AES_BLOCK_SIZE + 1] = prefix[AES_BLOCK_SIZE + 1] ^ fre[1];
540 fre[0] = prefix[AES_BLOCK_SIZE];
541 fre[1] = prefix[AES_BLOCK_SIZE + 1];
713 uint8 prefix[kBlockSize + 2], fre[kBlockSize], iv[kBlockSize];
723 prefix[i] = iv[i] ^ fre[i];
724 PK11_CipherOp(aes_context.get(), fre, &out_len, sizeof(fre), prefix,
726 prefix[kBlockSize] = iv[kBlockSize - 2] ^ fre[0];
727 prefix[kBlockSize + 1] = iv[kBlockSize - 1] ^ fre[1];
729 packet += ByteString(prefix, sizeof(prefix));
747 fre[0] = prefix[kBlockSize];
748 fre[1] = prefix[kBlockSize+1];