Home
last modified time | relevance | path

Searched refs:blockSize (Results 1 – 25 of 119) 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/lz4/programs/
Dfuzzer.c317 int dictSize, blockSize, blockStart; in FUZ_test() local
322 blockSize = FUZ_rand(&randState) % FUZ_MAX_BLOCK_SIZE; in FUZ_test()
323 blockStart = FUZ_rand(&randState) % (COMPRESSIBLE_NOISE_LENGTH - blockSize); in FUZ_test()
329 LZ4_compress_continue(&LZ4dict, block, compressedBuffer, blockSize); in FUZ_test()
331 LZ4_compress_continue(&LZ4dict, block, compressedBuffer, blockSize); in FUZ_test()
333 LZ4_compress_continue(&LZ4dict, block, compressedBuffer, blockSize); in FUZ_test()
343 int dictSize, blockSize, blockStart, compressedSize, HCcompressedSize; in FUZ_test() local
351 blockSize = FUZ_rand(&randState) % FUZ_MAX_BLOCK_SIZE; in FUZ_test()
352 blockStart = FUZ_rand(&randState) % (COMPRESSIBLE_NOISE_LENGTH - blockSize); in FUZ_test()
362 ret = LZ4_compressHC(block, compressedBuffer, blockSize); in FUZ_test()
[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.cc136 int err = -1, blockSize = 0; in GetBlockSize() local
148 err = ioctl(fd, DKIOCGETBLOCKSIZE, &blockSize); in GetBlockSize()
153 blockSize = minfo.dki_lbsize; in GetBlockSize()
156 err = ioctl(fd, DIOCGSECTORSIZE, &blockSize); in GetBlockSize()
159 err = ioctl(fd, BLKSSZGET, &blockSize); in GetBlockSize()
163 blockSize = SECTOR_SIZE; in GetBlockSize()
176 return (blockSize); in GetBlockSize()
296 int blockSize, numBlocks, retval = 0; in Read() local
306 blockSize = GetBlockSize(); in Read()
307 if (numBytes <= blockSize) { in Read()
[all …]
/external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/Box2D/Common/
Db2BlockAllocator.cpp48 int32 blockSize; member
137 int32 blockSize = s_blockSizes[index]; in Allocate() local
138 chunk->blockSize = blockSize; in Allocate()
139 int32 blockCount = b2_chunkSize / blockSize; in Allocate()
140 b2Assert(blockCount * blockSize <= b2_chunkSize); in Allocate()
143 b2Block* block = (b2Block*)((int8*)chunk->blocks + blockSize * i); in Allocate()
144 b2Block* next = (b2Block*)((int8*)chunk->blocks + blockSize * (i + 1)); in Allocate()
147 b2Block* last = (b2Block*)((int8*)chunk->blocks + blockSize * (blockCount - 1)); in Allocate()
177 int32 blockSize = s_blockSizes[index]; in Free() local
182 if (chunk->blockSize != blockSize) in Free()
[all …]
/external/opencv/cv/src/
Dcvoptflowbm.cpp106 CvSize blockSize, CvSize shiftSize, in icvCalcOpticalFlowBM_8u32fR() argument
118 int stand_accept_level = blockSize.height * blockSize.width * SMALL_DIFF; in icvCalcOpticalFlowBM_8u32fR()
119 int stand_escape_level = blockSize.height * blockSize.width * BIG_DIFF; in icvCalcOpticalFlowBM_8u32fR()
142 int DownStep = blockSize.height * imgStep; in icvCalcOpticalFlowBM_8u32fR()
147 int blSize = blockSize.width * blockSize.height; in icvCalcOpticalFlowBM_8u32fR()
311 NumberBlocksX = (int) imgSize.width / blockSize.width; in icvCalcOpticalFlowBM_8u32fR()
312 NumberBlocksY = (int) imgSize.height / blockSize.height; in icvCalcOpticalFlowBM_8u32fR()
315 BorderWidth = imgSize.width % blockSize.width; in icvCalcOpticalFlowBM_8u32fR()
319 BorderWidth = blockSize.width; in icvCalcOpticalFlowBM_8u32fR()
321 BorderHeight = imgSize.height % blockSize.height; in icvCalcOpticalFlowBM_8u32fR()
[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/protobuf/java/src/test/java/com/google/protobuf/
DCodedOutputStreamTest.java108 for (int blockSize = 1; blockSize <= 16; blockSize *= 2) { in assertWriteVarint()
113 CodedOutputStream.newInstance(rawOutput, blockSize); in assertWriteVarint()
122 CodedOutputStream.newInstance(rawOutput, blockSize); in assertWriteVarint()
173 for (int blockSize = 1; blockSize <= 16; blockSize *= 2) { in assertWriteLittleEndian32()
175 output = CodedOutputStream.newInstance(rawOutput, blockSize); in assertWriteLittleEndian32()
195 for (int blockSize = 1; blockSize <= 16; blockSize *= 2) { in assertWriteLittleEndian64()
197 output = CodedOutputStream.newInstance(rawOutput, blockSize); in assertWriteLittleEndian64()
287 for (int blockSize = 1; blockSize < 256; blockSize *= 2) { in testWriteWholeMessage()
290 CodedOutputStream.newInstance(rawOutput, blockSize); in testWriteWholeMessage()
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()
85 return super.read(b, 0, Math.min(b.length, blockSize)); in read()
89 return super.read(b, off, Math.min(len, blockSize)); in read()
121 for (int blockSize = 1; blockSize <= 16; blockSize *= 2) { in assertReadVarint()
123 new SmallBlockInputStream(data, blockSize)); in assertReadVarint()
128 new SmallBlockInputStream(data, blockSize)); in assertReadVarint()
[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/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
DDESedeWrapEngine.java162 int blockSize = engine.getBlockSize(); in wrap() local
164 if (WKCKS.length % blockSize != 0) in wrap()
173 for (int currentBytePos = 0; currentBytePos != WKCKS.length; currentBytePos += blockSize) in wrap()
194 for (int currentBytePos = 0; currentBytePos != TEMP3.length; currentBytePos += blockSize) in wrap()
224 final int blockSize = engine.getBlockSize(); in unwrap() local
225 if (inLen % blockSize != 0) in unwrap()
227 throw new InvalidCipherTextException("Ciphertext not multiple of " + blockSize); in unwrap()
254 for (int currentBytePos = 0; currentBytePos != inLen; currentBytePos += blockSize) in unwrap()
278 for (int currentBytePos = 0; currentBytePos != WKCKS.length; currentBytePos += blockSize) in unwrap()
/external/lzma/C/
DLzma2Enc.c175 p->blockSize = 0; in Lzma2EncProps_Init()
224 if (p->blockSize == 0) in Lzma2EncProps_Normalize()
227 UInt64 blockSize = (UInt64)dictSize << 2; in Lzma2EncProps_Normalize() local
230 if (blockSize < kMinSize) blockSize = kMinSize; in Lzma2EncProps_Normalize()
231 if (blockSize > kMaxSize) blockSize = kMaxSize; in Lzma2EncProps_Normalize()
232 if (blockSize < dictSize) blockSize = dictSize; in Lzma2EncProps_Normalize()
233 p->blockSize = (size_t)blockSize; in Lzma2EncProps_Normalize()
237 UInt64 temp = p->lzmaProps.reduceSize + p->blockSize - 1; in Lzma2EncProps_Normalize()
240 UInt64 numBlocks = temp / p->blockSize; in Lzma2EncProps_Normalize()
486 p->mtCoder.blockSize = p->props.blockSize; in Lzma2Enc_Encode()
[all …]
/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/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/lzma/CPP/7zip/Common/
DMethodProps.h135 UInt32 blockSize = Props[i].Value.ulVal; in Get_BZip2_BlockSize() local
138 if (blockSize < kDicSizeMin) blockSize = kDicSizeMin; in Get_BZip2_BlockSize()
139 if (blockSize > kDicSizeMax) blockSize = kDicSizeMax; in Get_BZip2_BlockSize()
140 return blockSize; in Get_BZip2_BlockSize()
/external/deqp/modules/gles31/functional/
Des31fBasicComputeShaderTests.cpp194 …const int blockSize = getProgramResourceInt(gl, program.getProgram(), GL_SHADER_STORAGE_BLOCK, … in iterate() local
197 gl.bufferData(GL_SHADER_STORAGE_BUFFER, blockSize, DE_NULL, GL_STREAM_READ); in iterate()
209 …const int blockSize = getProgramResourceInt(gl, program.getProgram(), GL_SHADER_STORAGE_BLOCK,… in iterate() local
212 const BufferMemMap bufMap (gl, GL_SHADER_STORAGE_BUFFER, 0, blockSize, GL_MAP_READ_BIT); in iterate()
330 …const int blockSize = getProgramResourceInt(gl, program.getProgram(), GL_SHADER_STORAGE_BLOCK,… in iterate() local
333 const BufferMemMap bufMap (gl, GL_SHADER_STORAGE_BUFFER, 0, blockSize, GL_MAP_READ_BIT); in iterate()
397 const deUint32 blockSize = valueInfo.arrayStride*(deUint32)m_numValues; in iterate() local
416 gl.bufferData(GL_SHADER_STORAGE_BUFFER, blockSize, DE_NULL, GL_STREAM_DRAW); in iterate()
419 const BufferMemMap bufMap(gl, GL_SHADER_STORAGE_BUFFER, 0, (int)blockSize, GL_MAP_WRITE_BIT); in iterate()
435 const BufferMemMap bufMap(gl, GL_SHADER_STORAGE_BUFFER, 0, blockSize, GL_MAP_READ_BIT); in iterate()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
DQRDecompositionImpl.java374 final int blockSize = BlockRealMatrix.BLOCK_SIZE; in solve() local
375 final int cBlocks = (columns + blockSize - 1) / blockSize; in solve()
377 final double[][] y = new double[b.getRowDimension()][blockSize]; in solve()
378 final double[] alpha = new double[blockSize]; in solve()
381 final int kStart = kBlock * blockSize; in solve()
382 final int kEnd = FastMath.min(kStart + blockSize, columns); in solve()
417 final int jBlock = j / blockSize; in solve()
418 final int jStart = jBlock * blockSize; in solve()

12345