Home
last modified time | relevance | path

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

12345678

/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/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/opencv3/modules/cudaimgproc/src/
Dcorners.cpp69 CornerBase(int srcType, int blockSize, int ksize, int borderType);
83 CornerBase::CornerBase(int srcType, int blockSize, int ksize, int borderType) : in CornerBase() argument
84 srcType_(srcType), blockSize_(blockSize), ksize_(ksize), borderType_(borderType) in CornerBase()
125 Harris(int srcType, int blockSize, int ksize, double k, int borderType) : in Harris() argument
126 CornerBase(srcType, blockSize, ksize, borderType), k_(static_cast<float>(k)) in Harris()
153 MinEigenVal(int srcType, int blockSize, int ksize, int borderType) : in MinEigenVal() argument
154 CornerBase(srcType, blockSize, ksize, borderType) in MinEigenVal()
179 Ptr<cuda::CornernessCriteria> cv::cuda::createHarrisCorner(int srcType, int blockSize, int ksize, d… in createHarrisCorner() argument
181 return makePtr<Harris>(srcType, blockSize, ksize, k, borderType); in createHarrisCorner()
184 Ptr<cuda::CornernessCriteria> cv::cuda::createMinEigenValCorner(int srcType, int blockSize, int ksi… in createMinEigenValCorner() argument
[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/opencv3/modules/features2d/src/
Dgftt.cpp54 blockSize(_blockSize), useHarrisDetector(_useHarrisDetector), k(_k) in GFTTDetector_Impl()
67 void setBlockSize(int blockSize_) { blockSize = blockSize_; } in setBlockSize()
68 int getBlockSize() const { return blockSize; } in getBlockSize()
89 blockSize, useHarrisDetector, k ); in detect()
98 blockSize, useHarrisDetector, k ); in detect()
105 *keypoint_it = KeyPoint( *corner_it, (float)blockSize ); in detect()
112 int blockSize; member in cv::GFTTDetector_Impl
/external/opencv3/modules/cudaimgproc/test/
Dtest_corners.cpp63 int blockSize; in PARAM_TEST_CASE() local
71 blockSize = GET_PARAM(3); in PARAM_TEST_CASE()
85 …::CornernessCriteria> harris = cv::cuda::createHarrisCorner(src.type(), blockSize, apertureSize, k… in CUDA_TEST_P()
91 cv::cornerHarris(src, dst_gold, blockSize, apertureSize, k, borderType); in CUDA_TEST_P()
111 int blockSize; in PARAM_TEST_CASE() local
119 blockSize = GET_PARAM(3); in PARAM_TEST_CASE()
131 …ssCriteria> minEigenVal = cv::cuda::createMinEigenValCorner(src.type(), blockSize, apertureSize, b… in CUDA_TEST_P()
137 cv::cornerMinEigenVal(src, dst_gold, blockSize, apertureSize, borderType); in CUDA_TEST_P()
/external/opencv3/modules/flann/include/opencv2/flann/
Dallocator.h95 PooledAllocator(int blockSize = BLOCKSIZE)
97 blocksize = blockSize;
125 int blockSize; in allocateMemory() local
141 blockSize = (size + sizeof(void*) + (WORDSIZE-1) > BLOCKSIZE) ? in allocateMemory()
145 void* m = ::malloc(blockSize); in allocateMemory()
158 remaining = blockSize - sizeof(void*) - shift; in allocateMemory()
/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/opencv3/modules/java/src/
Dcalib3d+StereoSGBM.java166 …public static StereoSGBM create(int minDisparity, int numDisparities, int blockSize, int P1, int P… in create() argument
169 …StereoSGBM retVal = new StereoSGBM(create_0(minDisparity, numDisparities, blockSize, P1, P2, disp1… in create()
175 public static StereoSGBM create(int minDisparity, int numDisparities, int blockSize) in create() argument
178 StereoSGBM retVal = new StereoSGBM(create_1(minDisparity, numDisparities, blockSize)); in create()
222 …private static native long create_0(int minDisparity, int numDisparities, int blockSize, int P1, i… in create_0() argument
223 private static native long create_1(int minDisparity, int numDisparities, int blockSize); in create_1() argument
/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/opencv3/modules/cudalegacy/src/
Dbm.cpp56 …void calc(PtrStepSzb prev, PtrStepSzb curr, PtrStepSzf velx, PtrStepSzf vely, int2 blockSize, int2…
60 void cv::cuda::calcOpticalFlowBM(const GpuMat& prev, const GpuMat& curr, Size blockSize, Size shift… in calcOpticalFlowBM() argument
65 const Size velSize((prev.cols - blockSize.width + shiftSize.width) / shiftSize.width, in calcOpticalFlowBM()
66 (prev.rows - blockSize.height + shiftSize.height) / shiftSize.height); in calcOpticalFlowBM()
189 const int maxX = prev.cols - blockSize.width; in calcOpticalFlowBM()
190 const int maxY = prev.rows - blockSize.height; in calcOpticalFlowBM()
195 const int blSize = blockSize.area(); in calcOpticalFlowBM()
200 …make_int2(blockSize.width, blockSize.height), make_int2(shiftSize.width, shiftSize.height), usePre… in calcOpticalFlowBM()
/external/opencv3/modules/cudalegacy/src/cuda/
Dbm.cu58 __device__ int cmpBlocks(int X1, int Y1, int X2, int Y2, int2 blockSize) in cmpBlocks() argument
62 for (int y = 0; y < blockSize.y; ++y) in cmpBlocks()
64 for (int x = 0; x < blockSize.x; ++x) in cmpBlocks()
71 …__global__ void calcOptFlowBM(PtrStepSzf velx, PtrStepf vely, const int2 blockSize, const int2 shi… in calcOptFlowBM() argument
93 dist = cmpBlocks(X1, Y1, X2, Y2, blockSize); in calcOptFlowBM()
114 const int tmpDist = cmpBlocks(X1, Y1, X2, Y2, blockSize); in calcOptFlowBM()
151 …void calc(PtrStepSzb prev, PtrStepSzb curr, PtrStepSzf velx, PtrStepSzf vely, int2 blockSize, int2… in calc() argument
160 calcOptFlowBM<<<grid, block, 0, stream>>>(velx, vely, blockSize, shiftSize, usePrevious, in calc()

12345678