Home
last modified time | relevance | path

Searched refs:blockSize (Results 1 – 25 of 122) sorted by relevance

12345

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/
DCTSBlockCipher.java16 private int blockSize; field in CTSBlockCipher
33 blockSize = cipher.getBlockSize(); in CTSBlockCipher()
35 buf = new byte[blockSize * 2]; in CTSBlockCipher()
96 System.arraycopy(buf, blockSize, buf, 0, blockSize); in processByte()
98 bufOff = blockSize; in processByte()
131 int blockSize = getBlockSize(); in processBytes() local
150 System.arraycopy(buf, blockSize, buf, 0, blockSize); in processBytes()
152 bufOff = blockSize; in processBytes()
157 while (len > blockSize) in processBytes()
159 System.arraycopy(in, inOff, buf, bufOff, blockSize); in processBytes()
[all …]
DCFBBlockCipher.java21 private int blockSize; field in CFBBlockCipher
40 this.blockSize = bitBlockSize / 8; in CFBBlockCipher()
45 this.inBuf = new byte[blockSize]; in CFBBlockCipher()
113 return cipher.getAlgorithmName() + "/CFB" + (blockSize * 8); in getAlgorithmName()
132 if (byteCount == blockSize) in encryptByte()
136 System.arraycopy(cfbV, blockSize, cfbV, 0, cfbV.length - blockSize); in encryptByte()
137 System.arraycopy(inBuf, 0, cfbV, cfbV.length - blockSize, blockSize); in encryptByte()
153 if (byteCount == blockSize) in decryptByte()
157 System.arraycopy(cfbV, blockSize, cfbV, 0, cfbV.length - blockSize); in decryptByte()
158 System.arraycopy(inBuf, 0, cfbV, cfbV.length - blockSize, blockSize); in decryptByte()
[all …]
DSICBlockCipher.java21 private final int blockSize; field in SICBlockCipher
38 this.blockSize = cipher.getBlockSize(); in SICBlockCipher()
39 this.IV = new byte[blockSize]; in SICBlockCipher()
40 this.counter = new byte[blockSize]; in SICBlockCipher()
41 this.counterOut = new byte[blockSize]; in SICBlockCipher()
55 if (blockSize < IV.length) in init()
57 …new IllegalArgumentException("CTR/SIC mode requires IV no greater than: " + blockSize + " bytes."); in init()
60 int maxCounterSize = (8 > blockSize / 2) ? blockSize / 2 : 8; in init()
62 if (blockSize - IV.length > maxCounterSize) in init()
64 …ew IllegalArgumentException("CTR/SIC mode requires IV of at least: " + (blockSize - maxCounterSize… in init()
[all …]
DOFBBlockCipher.java20 private final int blockSize; field in OFBBlockCipher
32 int blockSize) in OFBBlockCipher() argument
37 this.blockSize = blockSize / 8; in OFBBlockCipher()
107 return cipher.getAlgorithmName() + "/OFB" + (blockSize * 8); in getAlgorithmName()
118 return blockSize; in getBlockSize()
141 processBytes(in, inOff, blockSize, out, outOff); in processBlock()
143 return blockSize; in processBlock()
168 if (byteCount == blockSize) in calculateByte()
172 System.arraycopy(ofbV, blockSize, ofbV, 0, ofbV.length - blockSize); in calculateByte()
173 System.arraycopy(ofbOutV, 0, ofbV, ofbV.length - blockSize, blockSize); in calculateByte()
DCBCBlockCipher.java19 private int blockSize; field in CBCBlockCipher
32 this.blockSize = cipher.getBlockSize(); in CBCBlockCipher()
34 this.IV = new byte[blockSize]; in CBCBlockCipher()
35 this.cbcV = new byte[blockSize]; in CBCBlockCipher()
36 this.cbcNextV = new byte[blockSize]; in CBCBlockCipher()
73 if (iv.length != blockSize) in init()
182 if ((inOff + blockSize) > in.length) in encryptBlock()
191 for (int i = 0; i < blockSize; i++) in encryptBlock()
225 if ((inOff + blockSize) > in.length) in decryptBlock()
230 System.arraycopy(in, inOff, cbcNextV, 0, blockSize); in decryptBlock()
[all …]
DCCMBlockCipher.java26 private int blockSize; field in CCMBlockCipher
44 this.blockSize = c.getBlockSize(); in CCMBlockCipher()
45 this.macBlock = new byte[blockSize]; in CCMBlockCipher()
47 if (blockSize != 16) in CCMBlockCipher()
259 byte[] iv = new byte[blockSize]; in processPacket()
280 byte[] encMac = new byte[blockSize]; in processPacket()
284 while (inIndex < (inOff + inLen - blockSize)) // S1... in processPacket()
287 outIndex += blockSize; in processPacket()
288 inIndex += blockSize; in processPacket()
291 byte[] block = new byte[blockSize]; in processPacket()
[all …]
/external/gptfdisk/
Ddiskio-windows.cc127 DWORD blockSize = 0, retBytes; in GetBlockSize() local
138 blockSize = geom.Geometry.BytesPerSector; in GetBlockSize()
140 blockSize = SECTOR_SIZE; in GetBlockSize()
144 return (blockSize); in GetBlockSize()
216 int blockSize = 512, i, numBlocks; in Read() local
227 blockSize = GetBlockSize(); in Read()
228 if (numBytes <= blockSize) { in Read()
230 tempSpace = new char [blockSize]; in Read()
232 numBlocks = numBytes / blockSize; in Read()
233 if ((numBytes % blockSize) != 0) in Read()
[all …]
Ddiskio-unix.cc138 int err = -1, blockSize = 0; in GetBlockSize() local
150 err = ioctl(fd, DKIOCGETBLOCKSIZE, &blockSize); in GetBlockSize()
155 blockSize = minfo.dki_lbsize; in GetBlockSize()
158 err = ioctl(fd, DIOCGSECTORSIZE, &blockSize); in GetBlockSize()
161 err = ioctl(fd, BLKSSZGET, &blockSize); in GetBlockSize()
165 blockSize = SECTOR_SIZE; in GetBlockSize()
178 return (blockSize); in GetBlockSize()
298 int blockSize, numBlocks, retval = 0; in Read() local
308 blockSize = GetBlockSize(); in Read()
309 if (numBytes <= blockSize) { in Read()
[all …]
/external/lz4/tests/
Dfuzzer.c302 int const blockSize = (FUZ_rand(&randState) % (FUZ_MAX_BLOCK_SIZE-1)) + 1; in FUZ_test() local
303 int const blockStart = FUZ_rand(&randState) % (COMPRESSIBLE_NOISE_LENGTH - blockSize); in FUZ_test()
311 U32 const crcOrig = XXH32(block, blockSize, 0); in FUZ_test()
321 { int srcSize = blockSize; in FUZ_test()
328 … FUZ_CHECKTEST(srcSize > blockSize, "LZ4_compress_destSize() fed more than src buffer !"); in FUZ_test()
329 … DISPLAYLEVEL(5, "destSize : %7i/%7i; content%7i/%7i ", ret, targetSize, srcSize, blockSize); in FUZ_test()
353 …ret = LZ4_compress_HC(block, compressedBuffer, blockSize, (int)compressedBufferSize, compressionLe… in FUZ_test()
359 …ret = LZ4_compress_HC_extStateHC(stateLZ4HC, block, compressedBuffer, blockSize, (int)compressedBu… in FUZ_test()
364 …ret = LZ4_compress_fast_extState(stateLZ4, block, compressedBuffer, blockSize, (int)compressedBuff… in FUZ_test()
369 ret = LZ4_compress_default(block, compressedBuffer, blockSize, (int)compressedBufferSize); in FUZ_test()
[all …]
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Darena.h44 size_t blockSize = 0; member
58 p->blockSize = size; in AllocateAligned()
66 SWR_ASSUME_ASSERT(pMem->blockSize < size_t(0xdddddddd)); in Free()
91 m_cachedSize -= pBlock->blockSize; in AllocateAligned()
104 m_oldCachedSize -= pBlock->blockSize; in AllocateAligned()
147 InsertCachedBlock(GetBucketId(pMem->blockSize), pMem); in Free()
166 m_oldCachedSize -= pBlock->blockSize; in FreeOldBlocks()
167 m_totalAllocated -= pBlock->blockSize; in FreeOldBlocks()
199 m_cachedSize -= pBlock->blockSize; in FreeOldBlocks()
246 static uint32_t GetBucketId(size_t blockSize) in GetBucketId()
[all …]
/external/r8/src/main/java/com/android/tools/r8/
DBSPatch.java97 int blockSize; in processControl() local
98 while ((blockSize = readNextControlEntry()) != Integer.MIN_VALUE) { in processControl()
101 executor.copyDiff(blockSize); in processControl()
102 executor.copyOld(blockSize); in processControl()
103 executor.submitBlock(blockSize); in processControl()
171 public abstract void copyDiff(int blockSize) throws IOException; in copyDiff() argument
173 public abstract void copyOld(int blockSize) throws IOException; in copyOld() argument
175 public abstract void submitBlock(int blockSize); in submitBlock() argument
195 public void copyDiff(int blockSize) throws IOException { in copyDiff() argument
197 mergeBuffer = new byte[blockSize]; in copyDiff()
[all …]
/external/deqp/modules/gles3/functional/
Des3fASTCDecompressionCases.cpp139 const IVec2& blockSize, in compareBlockImages() argument
150 const int numXBlocks = width / blockSize.x(); in compareBlockImages()
152 DE_ASSERT(width % blockSize.x() == 0 && height % blockSize.y() == 0); in compareBlockImages()
162 const IVec2 blockCoord = IVec2(x, y) / blockSize; in compareBlockImages()
418 const IVec2 blockSize = m_renderer->getBlockSize(); in iterate() local
420 …t numXBlocksPerImage = de::min(m_context.getRenderTarget().getWidth(), 512) / blockSize.x(); in iterate()
421 …t numYBlocksPerImage = de::min(m_context.getRenderTarget().getHeight(), 512) / blockSize.y(); in iterate()
423 const int imageWidth = numXBlocksPerImage * blockSize.x(); in iterate()
424 const int imageHeight = numYBlocksPerImage * blockSize.y(); in iterate()
437 << ", with block size " << blockSize.x() << "x" << blockSize.y() in iterate()
[all …]
/external/glide/third_party/gif_decoder/src/main/java/com/bumptech/glide/gifdecoder/
DGifHeaderParser.java30 private int blockSize = 0; field in GifHeaderParser
54 blockSize = 0; in reset()
224 } while ((blockSize > 0) && !err()); in readNetscapeExt()
316 int blockSize; in skip() local
318 blockSize = read(); in skip()
319 rawData.position(rawData.position() + blockSize); in skip()
320 } while (blockSize > 0); in skip()
329 blockSize = read(); in readBlock()
331 if (blockSize > 0) { in readBlock()
334 while (n < blockSize) { in readBlock()
[all …]
/external/lzma/Java/Tukaani/src/
DXZSeekEncDemo.java33 int blockSize = 1024 * 1024; in main() local
35 blockSize = Integer.parseInt(args[1]); in main()
39 blockSize))); in main()
45 System.err.println("Block size: " + blockSize + " B"); in main()
50 int left = blockSize; in main()
62 left = blockSize; in main()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/macs/
DCBCBlockCipherMac.java145 int blockSize = cipher.getBlockSize(); in update() local
146 int gapLen = blockSize - bufOff; in update()
158 while (len > blockSize) in update()
162 len -= blockSize; in update()
163 inOff += blockSize; in update()
176 int blockSize = cipher.getBlockSize(); in doFinal() local
183 while (bufOff < blockSize) in doFinal()
191 if (bufOff == blockSize) in doFinal()
/external/lzma/C/
DLzma2Enc.c181 p->blockSize = 0; in Lzma2EncProps_Init()
232 if (p->blockSize == 0) in Lzma2EncProps_Normalize()
235 UInt64 blockSize = (UInt64)dictSize << 2; in Lzma2EncProps_Normalize() local
238 if (blockSize < kMinSize) blockSize = kMinSize; in Lzma2EncProps_Normalize()
239 if (blockSize > kMaxSize) blockSize = kMaxSize; in Lzma2EncProps_Normalize()
240 if (blockSize < dictSize) blockSize = dictSize; in Lzma2EncProps_Normalize()
241 p->blockSize = (size_t)blockSize; in Lzma2EncProps_Normalize()
246 UInt64 temp = p->lzmaProps.reduceSize + p->blockSize - 1; in Lzma2EncProps_Normalize()
249 UInt64 numBlocks = temp / p->blockSize; in Lzma2EncProps_Normalize()
505 p->mtCoder.blockSize = p->props.blockSize; in Lzma2Enc_Encode()
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DCodedInputStreamTest.java73 private final int blockSize; field in CodedInputStreamTest.SmallBlockInputStream
75 public SmallBlockInputStream(byte[] data, int blockSize) { in SmallBlockInputStream() argument
76 this(new ByteArrayInputStream(data), blockSize); in SmallBlockInputStream()
79 public SmallBlockInputStream(InputStream in, int blockSize) { in SmallBlockInputStream() argument
81 this.blockSize = blockSize; in SmallBlockInputStream()
86 return super.read(b, 0, Math.min(b.length, blockSize)); in read()
91 return super.read(b, off, Math.min(len, blockSize)); in read()
123 for (int blockSize = 1; blockSize <= 16; blockSize *= 2) { in assertReadVarint()
125 new SmallBlockInputStream(data, blockSize)); in assertReadVarint()
130 new SmallBlockInputStream(data, blockSize)); in assertReadVarint()
[all …]
DCodedOutputStreamTest.java329 for (int blockSize = 1; blockSize < 256; blockSize *= 2) { in testWriteWholeMessage()
330 Coder coder = OutputType.STREAM.newCoder(blockSize); in testWriteWholeMessage()
622 for (int blockSize = 1; blockSize <= 16; blockSize *= 2) {
623 Coder coder = OutputType.STREAM.newCoder(blockSize);
643 for (int blockSize = 1; blockSize <= 16; blockSize *= 2) {
644 Coder coder = OutputType.STREAM.newCoder(blockSize);
729 for (int blockSize = 1; blockSize <= 16; blockSize *= 2) {
732 Coder coder = OutputType.STREAM.newCoder(blockSize);
738 CodedOutputStream output = CodedOutputStream.newInstance(rawOutput, blockSize);
745 Coder coder = OutputType.STREAM.newCoder(blockSize);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
DDESedeWrapEngine.java165 int blockSize = engine.getBlockSize(); in wrap() local
167 if (WKCKS.length % blockSize != 0) in wrap()
176 for (int currentBytePos = 0; currentBytePos != WKCKS.length; currentBytePos += blockSize) in wrap()
197 for (int currentBytePos = 0; currentBytePos != TEMP3.length; currentBytePos += blockSize) in wrap()
227 final int blockSize = engine.getBlockSize(); in unwrap() local
228 if (inLen % blockSize != 0) in unwrap()
230 throw new InvalidCipherTextException("Ciphertext not multiple of " + blockSize); in unwrap()
257 for (int currentBytePos = 0; currentBytePos != inLen; currentBytePos += blockSize) in unwrap()
281 for (int currentBytePos = 0; currentBytePos != WKCKS.length; currentBytePos += blockSize) in unwrap()
/external/deqp/framework/delibs/destream/
DdeRingbuffer.c34 deInt32 blockSize; member
52 deRingbuffer* deRingbuffer_create (deInt32 blockSize, deInt32 blockCount) in deRingbuffer_create() argument
58 DE_ASSERT(blockSize > 0); in deRingbuffer_create()
60 ringbuffer->blockSize = blockSize; in deRingbuffer_create()
62 ringbuffer->buffer = (deUint8*)deMalloc(sizeof(deUint8) * (size_t)blockSize * (size_t)blockCount); in deRingbuffer_create()
140 writeSize = deMin32(ringbuffer->blockSize - ringbuffer->inPos, bufSize - *written); in producerStream_write()
141 dst = ringbuffer->buffer + ringbuffer->blockSize * ringbuffer->inBlock + ringbuffer->inPos; in producerStream_write()
151 if (ringbuffer->inPos == ringbuffer->blockSize) in producerStream_write()
238 src = ringbuffer->buffer + ringbuffer->blockSize * ringbuffer->outBlock + ringbuffer->outPos; in consumerStream_read()
/external/skia/src/gpu/
DGrMemoryPool.cpp65 size_t blockSize = size + kHeaderSize; in allocate() local
66 blockSize = SkTMax<size_t>(blockSize, fMinAllocSize); in allocate()
67 BlockHeader* block = CreateBlock(blockSize); in allocate()
140 GrMemoryPool::BlockHeader* GrMemoryPool::CreateBlock(size_t blockSize) { in CreateBlock() argument
141 blockSize = SkTMax<size_t>(blockSize, kHeaderSize); in CreateBlock()
143 reinterpret_cast<BlockHeader*>(sk_malloc_throw(blockSize)); in CreateBlock()
148 block->fFreeSize = blockSize - kHeaderSize; in CreateBlock()
151 block->fSize = blockSize; in CreateBlock()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/paddings/
DPaddedBufferedBlockCipher.java188 int blockSize = getBlockSize(); in processBytes() local
216 len -= blockSize; in processBytes()
217 inOff += blockSize; in processBytes()
247 int blockSize = cipher.getBlockSize(); in doFinal() local
252 if (bufOff == blockSize) in doFinal()
254 if ((outOff + 2 * blockSize) > out.length) in doFinal()
273 if (bufOff == blockSize) in doFinal()
/external/sonivox/arm-wt-22k/lib_src/
Deas_imaadpcm.c133 if ((pState->blockSize != 0) && (pState->blockCount == 0) && (pState->bytesLeft != 0)) in IMADecoderSample()
167 pState->blockCount = pState->blockSize - 8; in IMADecoderSample()
172 pState->blockCount = pState->blockSize - 4; in IMADecoderSample()
296 if (pState->blockSize == 0) in IMADecoderLocate()
301 samplesPerBlock = pState->blockSize - 7; in IMADecoderLocate()
303 samplesPerBlock = (pState->blockSize << 1) - 7; in IMADecoderLocate()
327 numBlocks = (EAS_I32) (pState->loopStart / pState->blockSize); in IMADecoderLocate()
328 samplesInLastBlock = (EAS_I32) pState->loopStart - (numBlocks * pState->blockSize); in IMADecoderLocate()
345 temp = (temp / samplesPerBlock) * pState->blockSize; in IMADecoderLocate()
/external/protobuf/csharp/src/Google.Protobuf.Test/
DCodedInputStreamTest.cs160 for (int blockSize = 1; blockSize <= 16; blockSize *= 2) in AssertReadLittleEndian32()
163 new SmallBlockInputStream(data, blockSize)); in AssertReadLittleEndian32()
180 for (int blockSize = 1; blockSize <= 16; blockSize *= 2) in AssertReadLittleEndian64()
183 new SmallBlockInputStream(data, blockSize)); in AssertReadLittleEndian64()
240 for (int blockSize = 1; blockSize < 256; blockSize *= 2) in ReadWholeMessage_VaryingBlockSizes()
242 … message2 = TestAllTypes.Parser.ParseFrom(new SmallBlockInputStream(rawBytes, blockSize)); in ReadWholeMessage_VaryingBlockSizes()
369 private readonly int blockSize; field in Google.Protobuf.CodedInputStreamTest.SmallBlockInputStream
371 public SmallBlockInputStream(byte[] data, int blockSize) in SmallBlockInputStream() argument
374 this.blockSize = blockSize; in SmallBlockInputStream()
379 return base.Read(buffer, offset, Math.Min(count, blockSize)); in Read()
/external/protobuf/objectivec/Tests/
DGPBCodedOuputStreamTests.m94 for (int blockSize = 1; blockSize <= 16; blockSize *= 2) {
97 bufferSize:blockSize];
118 for (int blockSize = 1; blockSize <= 16; blockSize *= 2) {
121 bufferSize:blockSize];
164 for (int blockSize = 1; blockSize <= 16; blockSize *= 2) {
170 bufferSize:blockSize];
184 bufferSize:blockSize];
318 for (int blockSize = 1; blockSize < 256; blockSize *= 2) {
322 bufferSize:blockSize];

12345