Home
last modified time | relevance | path

Searched full:blocklength (Results 1 – 25 of 71) sorted by relevance

123

/external/okio/okio/src/hashFunctions/kotlin/okio/internal/
DHmac.kt43 create(key, hashFunction = Sha1(), blockLength = 64) in sha1()
46 create(key, hashFunction = Sha256(), blockLength = 64) in sha1()
49 create(key, hashFunction = Sha512(), blockLength = 128) in sha1()
54 blockLength: Int in sha1()
59 keySize == blockLength -> key.data in sha1()
60 keySize < blockLength -> key.data.copyOf(blockLength) in sha1()
61 else -> hashFunction.apply { update(key.data) }.digest().copyOf(blockLength) in sha1()
64 val innerKey = ByteArray(blockLength) { paddedKey[it] xor IPAD } in sha1()
65 val outerKey = ByteArray(blockLength) { paddedKey[it] xor OPAD } in sha1()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/crypto/macs/
DHMac.java28 private int blockLength; field in HMac
102 this.blockLength = byteLength; in HMac()
103 this.inputPad = new byte[blockLength]; in HMac()
104 this.outputBuf = new byte[blockLength + digestSize]; in HMac()
125 if (keyLength > blockLength) in init()
142 System.arraycopy(inputPad, 0, outputBuf, 0, blockLength); in init()
144 xorPad(inputPad, blockLength, IPAD); in init()
145 xorPad(outputBuf, blockLength, OPAD); in init()
151 ((Digest)opadState).update(outputBuf, 0, blockLength); in init()
185 digest.doFinal(outputBuf, blockLength); in doFinal()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/macs/
DHMac.java28 private int blockLength; field in HMac
102 this.blockLength = byteLength; in HMac()
103 this.inputPad = new byte[blockLength]; in HMac()
104 this.outputBuf = new byte[blockLength + digestSize]; in HMac()
125 if (keyLength > blockLength) in init()
142 System.arraycopy(inputPad, 0, outputBuf, 0, blockLength); in init()
144 xorPad(inputPad, blockLength, IPAD); in init()
145 xorPad(outputBuf, blockLength, OPAD); in init()
151 ((Digest)opadState).update(outputBuf, 0, blockLength); in init()
185 digest.doFinal(outputBuf, blockLength); in doFinal()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/macs/
DHMac.java26 private int blockLength; field in HMac
100 this.blockLength = byteLength; in HMac()
101 this.inputPad = new byte[blockLength]; in HMac()
102 this.outputBuf = new byte[blockLength + digestSize]; in HMac()
123 if (keyLength > blockLength) in init()
140 System.arraycopy(inputPad, 0, outputBuf, 0, blockLength); in init()
142 xorPad(inputPad, blockLength, IPAD); in init()
143 xorPad(outputBuf, blockLength, OPAD); in init()
149 ((Digest)opadState).update(outputBuf, 0, blockLength); in init()
183 digest.doFinal(outputBuf, blockLength); in doFinal()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/cache/
DCacheUtil.java87 long blockLength = in getCached() local
90 if (blockLength > 0) { in getCached()
91 bytesAlreadyCached += blockLength; in getCached()
93 blockLength = -blockLength; in getCached()
94 if (blockLength == Long.MAX_VALUE) { in getCached()
98 position += blockLength; in getCached()
99 bytesLeft -= bytesLeft == C.LENGTH_UNSET ? 0 : blockLength; in getCached()
185 long blockLength = in cache() local
187 if (blockLength > 0) { in cache()
190 // There is a hole in the cache which is at least "-blockLength" long. in cache()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DMutableCodePointTrie.java426 private int allocDataBlock(int blockLength) { in allocDataBlock() argument
428 int newTop = newBlock + blockLength; in allocDataBlock()
531 char[] q, int qStart, int blockLength) { in findSameBlock() argument
533 length -= blockLength; in findSameBlock()
536 if (equalBlocks(p, pStart, q, qStart, blockLength)) { in findSameBlock()
545 int value, int blockLength) { in findAllSameBlock() argument
547 limit -= blockLength; in findAllSameBlock()
552 if (i == blockLength) { in findAllSameBlock()
569 private static int getOverlap(int[] p, int length, int[] q, int qStart, int blockLength) { in getOverlap() argument
570 int overlap = blockLength - 1; in getOverlap()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DMutableCodePointTrie.java434 private int allocDataBlock(int blockLength) { in allocDataBlock() argument
436 int newTop = newBlock + blockLength; in allocDataBlock()
539 char[] q, int qStart, int blockLength) { in findSameBlock() argument
541 length -= blockLength; in findSameBlock()
544 if (equalBlocks(p, pStart, q, qStart, blockLength)) { in findSameBlock()
553 int value, int blockLength) { in findAllSameBlock() argument
555 limit -= blockLength; in findAllSameBlock()
560 if (i == blockLength) { in findAllSameBlock()
577 private static int getOverlap(int[] p, int length, int[] q, int qStart, int blockLength) { in getOverlap() argument
578 int overlap = blockLength - 1; in getOverlap()
[all …]
/external/icu/icu4c/source/common/
Dumutablecptrie.cpp95 int32_t allocDataBlock(int32_t blockLength);
406 int32_t MutableCodePointTrie::allocDataBlock(int32_t blockLength) { in allocDataBlock() argument
408 int32_t newTop = newBlock + blockLength; in allocDataBlock()
592 const uint16_t *q, int32_t qStart, int32_t blockLength) { in findSameBlock() argument
594 length -= blockLength; in findSameBlock()
598 if (equalBlocks(p + pStart, q, blockLength)) { in findSameBlock()
607 uint32_t value, int32_t blockLength) { in findAllSameBlock() argument
609 limit -= blockLength; in findAllSameBlock()
614 if (i == blockLength) { in findAllSameBlock()
633 const UIntB *q, int32_t qStart, int32_t blockLength) { in getOverlap() argument
[all …]
/external/webrtc/modules/rtp_rtcp/source/rtcp_packet/
Dextended_reports.cc123 size_t ExtendedReports::BlockLength() const { in BlockLength() function in webrtc::rtcp::ExtendedReports
132 while (*index + BlockLength() > max_length) { in Create()
136 size_t index_end = *index + BlockLength(); in Create()
147 *index += dlrr_block_.BlockLength(); in Create()
151 *index += target_bitrate_->BlockLength(); in Create()
159 return target_bitrate_->BlockLength(); in TargetBitrateLength()
Ddlrr_unittest.cc32 EXPECT_EQ(0u, dlrr.BlockLength()); in TEST()
39 ASSERT_EQ(kBlockSizeBytes, dlrr.BlockLength()); in TEST()
81 size_t used_buffer_size = dlrr.BlockLength(); in TEST()
Dextended_jitter_report.cc75 size_t ExtendedJitterReport::BlockLength() const { in BlockLength() function in webrtc::rtcp::ExtendedJitterReport
83 while (*index + BlockLength() > max_length) { in Create()
87 const size_t index_end = *index + BlockLength(); in Create()
Dcompound_packet.cc38 size_t CompoundPacket::BlockLength() const { in BlockLength() function in webrtc::rtcp::CompoundPacket
41 block_length += appended->BlockLength(); in BlockLength()
Dapp.cc77 size_t App::BlockLength() const { in BlockLength() function in webrtc::rtcp::App
85 while (*index + BlockLength() > max_length) { in Create()
89 const size_t index_end = *index + BlockLength(); in Create()
Ddlrr.h50 size_t BlockLength() const;
52 // Consumes BlockLength() bytes.
Dtmmbn.cc81 size_t Tmmbn::BlockLength() const { in BlockLength() function in webrtc::rtcp::Tmmbn
90 while (*index + BlockLength() > max_length) { in Create()
94 const size_t index_end = *index + BlockLength(); in Create()
Dloss_notification.cc51 size_t LossNotification::BlockLength() const { in BlockLength() function in webrtc::rtcp::LossNotification
59 while (*index + BlockLength() > max_length) { in Create()
64 const size_t index_end = *index + BlockLength(); in Create()
Dtmmbr.cc82 size_t Tmmbr::BlockLength() const { in BlockLength() function in webrtc::rtcp::Tmmbr
92 while (*index + BlockLength() > max_length) { in Create()
96 const size_t index_end = *index + BlockLength(); in Create()
Dextended_reports.h49 size_t BlockLength() const override;
60 size_t DlrrLength() const { return dlrr_block_.BlockLength(); } in DlrrLength()
Dsdes_unittest.cc228 EXPECT_EQ(source.BlockLength(), middle.BlockLength()); in TEST()
236 EXPECT_EQ(middle.BlockLength(), destination.BlockLength()); in TEST()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/deflate64/
DHuffmanDecoder.java203 private final long blockLength; field in HuffmanDecoder.UncompressedState
206 private UncompressedState(long blockLength) { in UncompressedState() argument
207 this.blockLength = blockLength; in UncompressedState()
212 return read < blockLength ? STORED : INITIAL; in state()
217 … // as len is an int and (blockLength - read) is >= 0 the min must fit into an int as well in read()
218 int max = (int) Math.min(blockLength - read, len); in read()
241 return read < blockLength; in hasData()
246 return (int) Math.min(blockLength - read, reader.bitsAvailable() / Byte.SIZE); in available()
/external/aac/libAACenc/src/
Dmetadata_compressor.cpp168 INT blockLength; /*!< Block length in samples. */ member
307 * \param blockLength Length of processing block.
351 * \param blockLength Length of processing block in samples per channel.
356 const INT blockLength) { in tc2Coeff() argument
363 /* f = sampleRate/blockLength */ in tc2Coeff()
367 (FIXP_DBL)(blockLength << (DFRACT_BITS - 1 - METADATA_LINT_BITS)); in tc2Coeff()
404 for (i = 0; i < drcComp->blockLength; i++) { in findPeakLevels()
416 for (i = 0; i < drcComp->blockLength; i++) { in findPeakLevels()
520 } /* for (blocklength) */ in findPeakLevels()
530 for (i = 0; i < drcComp->blockLength; i++) { in findPeakLevels()
[all …]
/external/webrtc/modules/rtp_rtcp/source/
Drtcp_packet.cc21 rtc::Buffer packet(BlockLength()); in Build()
27 << "BlockLength mispredicted size used by Create"; in Build()
53 size_t length_in_bytes = BlockLength(); in HeaderLength()
/external/aac/libSBRenc/src/
Dton_corr.cpp191 int blockLength; in FDKsbrEnc_CalculateTonalityQuotas() local
215 blockLength = pBlockLength[0]; in FDKsbrEnc_CalculateTonalityQuotas()
217 while (k <= buffLen - blockLength) { in FDKsbrEnc_CalculateTonalityQuotas()
219 getScalefactor(&realBuf[k - LPC_ORDER], LPC_ORDER + blockLength), in FDKsbrEnc_CalculateTonalityQuotas()
220 getScalefactor(&imagBuf[k - LPC_ORDER], LPC_ORDER + blockLength)); in FDKsbrEnc_CalculateTonalityQuotas()
223 scaleValues(&realBuf[k - LPC_ORDER], LPC_ORDER + blockLength, in FDKsbrEnc_CalculateTonalityQuotas()
225 scaleValues(&imagBuf[k - LPC_ORDER], LPC_ORDER + blockLength, in FDKsbrEnc_CalculateTonalityQuotas()
230 autoCorr2nd_cplx(ac, realBuf + k, imagBuf + k, blockLength); in FDKsbrEnc_CalculateTonalityQuotas()
333 blockLength = pBlockLength[1]; in FDKsbrEnc_CalculateTonalityQuotas()
742 hTonCorr->lpcLength[0] = 16 - LPC_ORDER; /* blockLength[0] */ in FDKsbrEnc_InitTonCorrParamExtr()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DTrie2Writable.java644 private int findSameDataBlock(int dataLength, int otherBlock, int blockLength) { in findSameDataBlock() argument
648 dataLength-=blockLength; in findSameDataBlock()
651 if(equal_int(data, block, otherBlock, blockLength)) { in findSameDataBlock()
743 int blockLength, overlap; in compactData() local
756 blockLength=64; in compactData()
757 blockCount=blockLength>>UTRIE2_SHIFT_2; in compactData()
765 blockLength=UTRIE2_DATA_BLOCK_LENGTH; in compactData()
772 start+=blockLength; in compactData()
779 movedStart=findSameDataBlock(newStart, start, blockLength); in compactData()
788 start+=blockLength; in compactData()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DTrie2Writable.java642 private int findSameDataBlock(int dataLength, int otherBlock, int blockLength) { in findSameDataBlock() argument
646 dataLength-=blockLength; in findSameDataBlock()
649 if(equal_int(data, block, otherBlock, blockLength)) { in findSameDataBlock()
741 int blockLength, overlap; in compactData() local
754 blockLength=64; in compactData()
755 blockCount=blockLength>>UTRIE2_SHIFT_2; in compactData()
763 blockLength=UTRIE2_DATA_BLOCK_LENGTH; in compactData()
770 start+=blockLength; in compactData()
777 movedStart=findSameDataBlock(newStart, start, blockLength); in compactData()
786 start+=blockLength; in compactData()
[all …]

123