Home
last modified time | relevance | path

Searched refs:ByteRange (Results 1 – 25 of 962) sorted by relevance

12345678910>>...39

/dports/devel/kiwix-lib/kiwix-lib-9.4.1/src/server/
H A Dbyte_range.cpp40 return ByteRange(-start); in parseByteRange()
46 return ByteRange(ByteRange::PARSED, start, end); in parseByteRange()
51 return ByteRange(ByteRange::INVALID, 0, INT64_MAX); in parseByteRange()
56 ByteRange::ByteRange() in ByteRange() function in kiwix::ByteRange
62 ByteRange::ByteRange(Kind kind, int64_t first, int64_t last) in ByteRange() function in kiwix::ByteRange
72 ByteRange::ByteRange(int64_t suffix_length) in ByteRange() function in kiwix::ByteRange
80 int64_t ByteRange::first() const in first()
86 int64_t ByteRange::last() const in last()
92 int64_t ByteRange::length() const in length()
98 ByteRange ByteRange::parse(const std::string& rangeStr) in parse()
[all …]
H A Dbyte_range.h29 class ByteRange
61 ByteRange();
64 ByteRange(Kind kind, int64_t first, int64_t last);
68 explicit ByteRange(int64_t suffix_length);
75 static ByteRange parse(const std::string& rangeStr);
76 ByteRange resolve(int64_t contentSize) const;
/dports/databases/hbase/hbase-1.2.1/hbase-common/src/main/java/org/apache/hadoop/hbase/util/
H A DByteRange.java64 public interface ByteRange extends Comparable<ByteRange> { interface
76 public ByteRange unset(); in unset()
84 public ByteRange set(int capacity); in set()
94 public ByteRange set(byte[] bytes); in set()
122 public ByteRange setOffset(int offset); in setOffset()
135 public ByteRange setLength(int length); in setLength()
183 public ByteRange get(int index, byte[] dst); in get()
202 public ByteRange put(int index, byte val); in put()
218 public ByteRange putInt(int index, int val); in putInt()
268 public ByteRange deepCopy(); in deepCopy()
[all …]
H A DAbstractByteRange.java99 public abstract ByteRange unset(); in unset()
102 public ByteRange set(int capacity) { in set()
107 public ByteRange set(byte[] bytes) { in set()
134 public ByteRange setOffset(int offset) { in setOffset()
146 public ByteRange setLength(int length) { in setLength()
160 public static boolean isEmpty(ByteRange range) { in isEmpty()
174 public ByteRange get(int index, byte[] dst) { in get()
247 public abstract ByteRange put(int index, byte val); in put()
250 public abstract ByteRange put(int index, byte[] val); in put()
256 public abstract ByteRange putInt(int index, int val); in putInt()
[all …]
H A DSimpleByteRange.java60 public ByteRange unset() { in unset()
65 public ByteRange set(int capacity) { in set()
73 public ByteRange set(byte[] bytes) { in set()
81 public ByteRange set(byte[] bytes, int offset, int length) { in set()
92 public ByteRange put(int index, byte val) { in put()
97 public ByteRange put(int index, byte[] val) { in put()
111 public ByteRange shallowCopy() { in shallowCopy()
148 public ByteRange deepCopy() { in deepCopy()
157 public ByteRange putInt(int index, int val) { in putInt()
162 public ByteRange putLong(int index, long val) { in putLong()
[all …]
H A DByteRangeUtils.java38 public static int numEqualPrefixBytes(ByteRange left, ByteRange right, int rightInnerOffset) { in numEqualPrefixBytes()
50 public static ArrayList<byte[]> copyToNewArrays(Collection<ByteRange> ranges) { in copyToNewArrays()
55 for (ByteRange range : ranges) { in copyToNewArrays()
61 public static ArrayList<ByteRange> fromArrays(Collection<byte[]> arrays) { in fromArrays()
63 return new ArrayList<ByteRange>(0); in fromArrays()
65 ArrayList<ByteRange> ranges = Lists.newArrayListWithCapacity(arrays.size()); in fromArrays()
72 public static void write(OutputStream os, ByteRange byteRange) throws IOException { in write()
76 public static void write(OutputStream os, ByteRange byteRange, int byteRangeInnerOffset) in write()
H A DSimpleMutableByteRange.java109 public ByteRange unset() { in unset()
118 public ByteRange put(int index, byte val) { in put()
125 public ByteRange put(int index, byte[] val) { in put()
132 public ByteRange put(int index, byte[] val, int offset, int length) { in put()
141 public ByteRange putShort(int index, short val) { in putShort()
153 public ByteRange putInt(int index, int val) { in putInt()
167 public ByteRange putLong(int index, long val) { in putLong()
200 public ByteRange deepCopy() { in deepCopy()
209 public ByteRange shallowCopy() { in shallowCopy()
218 public ByteRange shallowCopySubRange(int innerOffset, int copyLength) { in shallowCopySubRange()
/dports/security/fizz/fizz-2021.12.27.00/fizz/crypto/
H A DKeyDerivation.h31 folly::ByteRange secret,
37 folly::ByteRange secret,
48 folly::ByteRange salt,
49 folly::ByteRange ikm) = 0;
54 folly::ByteRange key,
97 folly::ByteRange key, in hmac()
108 folly::ByteRange secret,
114 folly::ByteRange secret,
121 std::vector<uint8_t> hkdfExtract(folly::ByteRange salt, folly::ByteRange ikm) in hkdfExtract()
142 folly::ByteRange blankHash);
[all …]
H A DHkdf.h27 folly::ByteRange salt,
28 folly::ByteRange ikm) const = 0;
31 folly::ByteRange extractedKey,
36 folly::ByteRange ikm,
37 folly::ByteRange salt,
58 std::vector<uint8_t> extract(folly::ByteRange salt, folly::ByteRange ikm)
62 folly::ByteRange extractedKey,
67 folly::ByteRange ikm,
68 folly::ByteRange salt,
78 void (*)(folly::ByteRange, const folly::IOBuf&, folly::MutableByteRange);
/dports/devel/folly/folly-2021.12.27.00/folly/ssl/
H A DOpenSSLHash.h71 void hash_update(ByteRange data) { in hash_update()
135 static void sha1(MutableByteRange out, ByteRange data) { in sha1()
191 void hash_init(const EVP_MD* md, ByteRange key) { in hash_init()
199 void hash_update(ByteRange data) { in hash_update()
263 MutableByteRange out, const EVP_MD* md, ByteRange key, ByteRange data) { in hmac()
272 ByteRange key, in hmac()
279 static void hmac_sha1(MutableByteRange out, ByteRange key, ByteRange data) { in hmac_sha1()
286 static void hmac_sha256(MutableByteRange out, ByteRange key, ByteRange data) { in hmac_sha256()
293 static void hmac_sha512(MutableByteRange out, ByteRange key, ByteRange data) { in hmac_sha512()
302 MutableByteRange out, ByteRange key, ByteRange data) { in hmac_blake2s256()
[all …]
/dports/devel/folly/folly-2021.12.27.00/folly/experimental/crypto/
H A DBlake2xb.h90 ByteRange key = {},
91 ByteRange salt = {},
92 ByteRange personalization = {})
107 ByteRange key = {},
108 ByteRange salt = {},
109 ByteRange personalization = {});
114 void update(ByteRange data);
136 ByteRange data,
137 ByteRange key = {},
138 ByteRange salt = {},
[all …]
/dports/security/fizz/fizz-2021.12.27.00/fizz/crypto/signature/
H A DSignature-inl.h18 folly::ByteRange data,
23 folly::ByteRange data,
24 folly::ByteRange signature,
30 folly::ByteRange data,
34 folly::ByteRange data,
35 folly::ByteRange signature,
40 folly::ByteRange data,
45 folly::ByteRange data,
117 folly::ByteRange data,
139 folly::ByteRange data,
[all …]
H A DSignature.h36 std::unique_ptr<folly::IOBuf> sign(folly::ByteRange data) const;
46 void verify(folly::ByteRange data, folly::ByteRange signature) const;
59 [[noreturn]] std::unique_ptr<folly::IOBuf> sign(folly::ByteRange) const;
62 [[noreturn]] void verify(folly::ByteRange, folly::ByteRange) const;
/dports/security/fizz/fizz-2021.12.27.00/fizz/crypto/test/
H A DMocks.h20 MOCK_CONST_METHOD0(blankHash, folly::ByteRange());
23 Buf(folly::ByteRange secret,
29 Buf(folly::ByteRange secret, Buf& info, uint16_t length));
31 folly::ByteRange secret, in expandLabel()
37 Buf hkdfExpand(folly::ByteRange secret, Buf info, uint16_t length) override { in hkdfExpand()
43 folly::ByteRange secret,
45 folly::ByteRange messageHash));
48 std::vector<uint8_t>(folly::ByteRange salt, folly::ByteRange ikm));
53 folly::ByteRange key,
/dports/devel/folly/folly-2021.12.27.00/folly/experimental/crypto/detail/
H A DLtHashInternal.h78 ByteRange b1,
79 ByteRange b2,
92 ByteRange b1,
93 ByteRange b2,
107 static bool checkPaddingBits(uint64_t dataMask, ByteRange buf);
123 ByteRange b1, \
124 ByteRange b2, \
130 ByteRange b1, \
131 ByteRange b2, \
137 bool MathOperation<E>::checkPaddingBits(uint64_t dataMask, ByteRange buf); \
/dports/www/proxygen/proxygen-2021.12.27.00/proxygen/lib/utils/test/
H A DCryptUtilTest.cpp16 using folly::ByteRange;
20 base64Encode(ByteRange(reinterpret_cast<const unsigned char*>(""), in TEST()
24 base64Encode(ByteRange(reinterpret_cast<const unsigned char*>("a"), 1))); in TEST()
27 base64Encode(ByteRange(reinterpret_cast<const unsigned char*>("aa"), 2))); in TEST()
30 base64Encode(ByteRange( in TEST()
36 md5Encode(ByteRange(reinterpret_cast<const unsigned char*>(""), in TEST()
40 md5Encode(ByteRange( in TEST()
/dports/devel/folly/folly-2021.12.27.00/folly/ssl/test/
H A DOpenSSLHashTest.cpp55 digest.hash_update(ByteRange(data)); in TEST_F()
75 digest.hash_update(ByteRange(data)); in TEST_F()
96 copy1.hash_update(ByteRange(data)); in TEST_F()
101 copy2.hash_update(ByteRange(data)); in TEST_F()
157 copy1.hash_update(ByteRange(data)); in TEST_F()
285 ByteRange{data}.data(), in TEST_F()
317 ByteRange{data}.data(), in TEST_F()
343 ByteRange{data}.data(), in TEST_F()
369 ByteRange{data}.data(), in TEST_F()
399 ByteRange{data}.data(), in TEST_F()
[all …]
/dports/net/mvfst/mvfst-248b2dc39bbd36863bbaa50385e8683428610009/quic/codec/
H A DPacketNumberCipher.h24 virtual void setKey(folly::ByteRange key) = 0;
26 virtual HeaderProtectionMask mask(folly::ByteRange sample) const = 0;
35 folly::ByteRange sample,
46 folly::ByteRange sample,
56 folly::ByteRange sample,
66 folly::ByteRange sample,
82 folly::ByteRange sample,
89 folly::ByteRange sample,
/dports/devel/folly/folly-2021.12.27.00/folly/io/
H A DRecordIO.h96 typedef std::pair<ByteRange, off_t> value_type;
158 ByteRange record;
161 ByteRange searchRange, ByteRange wholeRange, uint32_t fileId);
166 RecordInfo findRecord(ByteRange range, uint32_t fileId);
176 bool validateRecordHeader(ByteRange range, uint32_t fileId);
184 RecordInfo validateRecordData(ByteRange range);
191 RecordInfo validateRecord(ByteRange range, uint32_t fileId);
H A DRecordIO.cpp76 : range_(range), fileId_(fileId), recordAndPos_(ByteRange(), 0) { in Iterator()
89 ByteRange record = findRecord(range_, fileId_).record; in advanceToValid()
91 recordAndPos_ = std::make_pair(ByteRange(), off_t(-1)); in advanceToValid()
133 std::size_t dataHash(ByteRange range) { in dataHash()
170 bool validateRecordHeader(ByteRange range, uint32_t fileId) { in validateRecordHeader()
186 RecordInfo validateRecordData(ByteRange range) { in validateRecordData()
202 RecordInfo validateRecord(ByteRange range, uint32_t fileId) { in validateRecord()
210 ByteRange searchRange, ByteRange wholeRange, uint32_t fileId) { in findRecord()
212 static const ByteRange magicRange( in findRecord()
223 auto p = ByteRange(start, end + sizeof(magic)).find(magicRange); in findRecord()
[all …]
/dports/security/fizz/fizz-2021.12.27.00/fizz/protocol/
H A DKeyScheduler.h47 DerivedSecret(folly::ByteRange secretIn, SecretType typeIn) in DerivedSecret()
67 virtual void deriveEarlySecret(folly::ByteRange psk);
78 virtual void deriveHandshakeSecret(folly::ByteRange ecdhe);
89 virtual void deriveAppTrafficSecrets(folly::ByteRange transcript);
111 virtual DerivedSecret getSecret(EarlySecrets s, folly::ByteRange transcript)
115 folly::ByteRange transcript) const;
116 virtual DerivedSecret getSecret(MasterSecrets s, folly::ByteRange transcript)
124 folly::ByteRange trafficSecret,
132 folly::ByteRange trafficSecret,
143 folly::ByteRange resumptionMasterSecret,
[all …]
H A DCertificate-inl.h103 folly::ByteRange toBeSigned) const { in sign()
118 folly::ByteRange toBeSigned) const { in sign()
133 folly::ByteRange toBeSigned) const { in sign()
192 folly::ByteRange toBeSigned, in verify()
193 folly::ByteRange signature) const { in verify()
208 folly::ByteRange toBeSigned, in verify()
209 folly::ByteRange signature) const { in verify()
224 folly::ByteRange toBeSigned, in verify()
225 folly::ByteRange signature) const { in verify()
240 folly::ByteRange toBeSigned, in verify()
[all …]
/dports/databases/hbase/hbase-1.2.1/hbase-prefix-tree/src/test/java/org/apache/hadoop/hbase/codec/prefixtree/column/data/
H A DTestColumnDataRandom.java25 import org.apache.hadoop.hbase.util.ByteRange;
35 private List<ByteRange> inputs = Lists.newArrayList();
36 private List<ByteRange> outputs = Lists.newArrayList();
43 ByteRange colRange = new SimpleMutableByteRange(col.getQualifier()); in TestColumnDataRandom()
47 for (ByteRange col : sortedColumns.compile().getSortedRanges()) { in TestColumnDataRandom()
53 public List<ByteRange> getInputs() { in getInputs()
58 public List<ByteRange> getOutputs() { in getOutputs()
/dports/databases/hbase/hbase-1.2.1/hbase-prefix-tree/src/main/java/org/apache/hadoop/hbase/util/byterange/
H A DByteRangeSet.java27 import org.apache.hadoop.hbase.util.ByteRange;
49 protected Map<ByteRange, Integer> uniqueIndexByUniqueRange;
51 protected ArrayList<ByteRange> uniqueRanges;
59 protected ArrayList<ByteRange> sortedRanges;
94 public void add(ByteRange bytes) { in add()
106 protected int store(ByteRange bytes) { in store()
111 ByteRange storedRange = uniqueRanges.get(numUniqueRanges); in store()
158 for (ByteRange r : sortedRanges) { in toString()
173 public ArrayList<ByteRange> getSortedRanges() { in getSortedRanges()
/dports/security/fizz/fizz-2021.12.27.00/fizz/protocol/test/
H A DMocks.h36 MOCK_METHOD1(deriveEarlySecret, void(folly::ByteRange psk));
38 MOCK_METHOD1(deriveHandshakeSecret, void(folly::ByteRange ecdhe));
46 DerivedSecret(EarlySecrets s, folly::ByteRange transcript));
49 DerivedSecret(HandshakeSecrets s, folly::ByteRange transcript));
52 DerivedSecret(MasterSecrets s, folly::ByteRange transcript));
57 folly::ByteRange trafficSecret,
62 Buf(folly::ByteRange, folly::ByteRange));
97 MOCK_CONST_METHOD0(getBlankContext, folly::ByteRange());
139 folly::ByteRange toBeSigned));
151 folly::ByteRange toBeSigned,
[all …]

12345678910>>...39