Home
last modified time | relevance | path

Searched refs:blockbytes (Results 1 – 17 of 17) sorted by relevance

/dports/www/trafficserver/trafficserver-9.1.1/plugins/experimental/slice/
H A DConfig.cc58 blockbytes *= (kib * kib); in bytesFrom()
61 blockbytes *= kib; in bytesFrom()
69 if (blockbytes < 0) { in bytesFrom()
70 blockbytes = 0; in bytesFrom()
73 return blockbytes; in bytesFrom()
85 int64_t blockbytes = 0; in fromArgs() local
102 blockbytes = bytesread; in fromArgs()
136 blockbytes = bytesread; in fromArgs()
197 if (0 == blockbytes) { in fromArgs()
214 if (0 < blockbytes) { in fromArgs()
[all …]
H A DREADME.md29 map https://ats-cache/ http://parent/ @plugin=slice.so @pparam=--blockbytes=2M @plugin=cache_range_…
34 --blockbytes=<number bytes> (optional)
40 For backwards compatibility blockbytes:<num bytes> is also supported.
42 --blockbytes-test=<number bytes> (optional)
47 Ignored if --blockbytes is provided.
83 map http://ats/ http://parent/ @plugin=slice.so @pparam=--blockbytes=512k @pparam=--remap-host=loop…
84 map https://ats/ https://parent/ @plugin=slice.so @pparam=--blockbytes=512k @pparam=--remap-host=lo…
94 **Note**: blockbytes is defined in bytes. Postfix for 'K', 'M' and 'G'
97 For testing purposes an unchecked value of "blockbytes-test" is also available.
H A DRange.h57 int64_t firstBlockFor(int64_t const blockbytes) const;
61 int64_t lastBlockFor(int64_t const blockbytes) const;
H A Dutil.cc148 int64_t const blockbytes = TSIOBufferBlockReadAvail(block, reader); in reader_avail_more_than() local
149 if (bytes < blockbytes) { in reader_avail_more_than()
152 bytes -= blockbytes; in reader_avail_more_than()
H A DHttpHeader.cc346 int64_t blockbytes = 0; in populateFrom() local
347 char const *const bstart = TSIOBufferBlockReadStart(block, reader, &blockbytes); in populateFrom()
350 char const *endptr = ptr + blockbytes; in populateFrom()
H A Dserver.cc560 int64_t const blockbytes = data->m_config->m_blockbytes; in handle_server_resp() local
561 int64_t const firstblock = data->m_req_range.firstBlockFor(blockbytes); in handle_server_resp()
562 int64_t const blockpos = firstblock * blockbytes; in handle_server_resp()
563 int64_t const firstblockbytes = std::min(blockbytes, data->m_contentlen - blockpos); in handle_server_resp()
/dports/security/beecrypt/beecrypt-4.2.1/
H A Dblockpad.c34 memchunk* pkcs5Pad(size_t blockbytes, memchunk* tmp) in pkcs5Pad() argument
38 byte padvalue = blockbytes - (tmp->size % blockbytes); in pkcs5Pad()
49 memchunk* pkcs5Unpad(size_t blockbytes, memchunk* tmp) in pkcs5Unpad() argument
57 if (padvalue > blockbytes) in pkcs5Unpad()
73 memchunk* pkcs5PadCopy(size_t blockbytes, const memchunk* src) in pkcs5PadCopy() argument
76 byte padvalue = blockbytes - (src->size % blockbytes); in pkcs5PadCopy()
92 memchunk* pkcs5UnpadCopy(size_t blockbytes, const memchunk* src) in pkcs5UnpadCopy() argument
/dports/www/trafficserver/trafficserver-9.1.1/tests/gold_tests/pluginTest/slice/
H A Dslice_error.test.py61 blockbytes = 9 variable
63 range0 = "{}-{}".format(0, blockbytes - 1)
64 range1 = "{}-{}".format(blockbytes, (2 * blockbytes) - 1)
66 body0 = body[0:blockbytes]
67 body1 = body[blockbytes:2 * blockbytes]
290 ' @plugin=slice.so @pparam=--blockbytes-test={}'.format(blockbytes)
/dports/www/trafficserver/trafficserver-9.1.1/plugins/experimental/slice/unit-tests/
H A Dtest_config.cc137 int64_t const blockbytes = config->bytesFrom(test.first.c_str()); variable
138 CHECK(test.second == (config->m_blockbytes == blockbytes));
141 if (test.second != (config->m_blockbytes == blockbytes)) {
142 INFO(blockbytes);
/dports/security/beecrypt/beecrypt-4.2.1/c++/provider/
H A DKeyProtector.cxx55 void pkcs5_pad(int blockbytes, bytearray& b) in pkcs5_pad() argument
59 byte padvalue = blockbytes - (unpadded_size % blockbytes); in pkcs5_pad()
66 void pkcs5_unpad(int blockbytes, bytearray& b) throw (BadPaddingException) in pkcs5_unpad() argument
70 if (padvalue > blockbytes) in pkcs5_unpad()
/dports/security/john/john-1.9.0-jumbo-1/src/unused/
H A DSHA512_qnx.pm133 my $blockbytes = $self->{blocksize} >> 3;
135 &{$self->{sha}}($self, substr($bitstr, $offset, $blockbytes));
136 $self->{priorblock} = substr($bitstr, $offset, $blockbytes);
137 $offset += $blockbytes;
/dports/security/py-msoffcrypto-tool/msoffcrypto-tool-4.11.0/msoffcrypto/method/
H A Drc4_cryptoapi.py19 blockbytes = pack("<I", block)
20 hfinal = sha1(h0 + blockbytes).digest()
H A Drc4.py30 blockbytes = pack("<I", block)
31 hfinal = md5(truncatedHash + blockbytes).digest()
H A Decma376_standard.py84 blockbytes = pack("<I", block)
85 hfinal = sha1(h + blockbytes).digest()
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/sodiumoxide-0.2.7/src/crypto/hash/
H A Dhash_macros.rs7 $blockbytes:expr) => (
16 pub const BLOCKBYTES: usize = $blockbytes as usize;
/dports/www/trafficserver/trafficserver-9.1.1/doc/admin-guide/plugins/
H A Dslice.en.rst66 --blockbytes=<bytes> (optional)
72 --blockbytes-test=<bytes> (optional)
76 Ignored if --blockbytes provided.
127 @plugin=slice.so @pparam=--blockbytes=1000000 @plugin=cache_range_requests.so
135 slice.so --blockbytes=5m
137 slice.so --blockbytes=32m
139 For testing and extreme purposes the parameter ``blockbytes-test`` may
142 slice.so --blockbytes-test=1G
285 Slice *always* makes ``blockbytes`` sized requests which are handled
/dports/security/p5-Digest-SHA-PurePerl/Digest-SHA-PurePerl-5.96/lib/Digest/SHA/
H A DPurePerl.pm492 my $blockbytes = $self->{blocksize} >> 3;
494 &{$self->{sha}}($self, substr($bitstr, $offset, $blockbytes));
495 $offset += $blockbytes;