/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/ |
D | CTSBlockCipher.java | 16 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 …]
|
D | CFBBlockCipher.java | 21 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 …]
|
D | OFBBlockCipher.java | 20 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()
|
D | CBCBlockCipher.java | 19 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 …]
|
D | SICBlockCipher.java | 20 private final int blockSize; field in SICBlockCipher 37 this.blockSize = cipher.getBlockSize(); in SICBlockCipher() 38 this.IV = new byte[blockSize]; in SICBlockCipher() 39 this.counter = new byte[blockSize]; in SICBlockCipher() 40 this.counterOut = new byte[blockSize]; in SICBlockCipher() 82 processBytes(in, inOff, blockSize, out, outOff); in processBlock() 84 return blockSize; in processBlock() 197 long numBlocks = (n + byteCount) / blockSize; in adjustCounter() 222 byteCount = (int)((n + byteCount) - (blockSize * numBlocks)); in adjustCounter() 226 long numBlocks = (-n - byteCount) / blockSize; in adjustCounter() [all …]
|
D | CCMBlockCipher.java | 26 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() 282 while (inIndex < (inOff + inLen - blockSize)) // S1... in processPacket() 285 outIndex += blockSize; in processPacket() 286 inIndex += blockSize; in processPacket() 289 byte[] block = new byte[blockSize]; in processPacket() 320 while (inIndex < (inOff + outputLen - blockSize)) in processPacket() [all …]
|
/external/lz4/programs/ |
D | fuzzer.c | 317 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/ |
D | diskio-windows.cc | 127 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 …]
|
D | diskio-unix.cc | 136 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/ |
D | cvoptflowbm.cpp | 106 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/protobuf/java/src/test/java/com/google/protobuf/ |
D | CodedOutputStreamTest.java | 108 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()
|
D | CodedInputStreamTest.java | 73 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/ |
D | GifHeaderParser.java | 30 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/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/macs/ |
D | CBCBlockCipherMac.java | 145 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/deqp/modules/gles3/functional/ |
D | es3fASTCDecompressionCases.cpp | 960 const IVec3 blockSize = getBlockPixelSize(format); in generateBlockCaseTestData() local 961 DE_ASSERT(blockSize.z() == 1); in generateBlockCaseTestData() 1031 if (isValidBlockParams(blockParams, blockSize.x(), blockSize.y())) in generateBlockCaseTestData() 1032 …generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), generateDefaultISEInputs(blockParam… in generateBlockCaseTestData() 1056 while (!isValidBlockParams(blockParams, blockSize.x(), blockSize.y())) in generateBlockCaseTestData() 1077 … generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), iseInputs).pushBytesToVector(dst); in generateBlockCaseTestData() 1100 … generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), iseInputs).pushBytesToVector(dst); in generateBlockCaseTestData() 1132 if (isValidBlockParams(blockParams, blockSize.x(), blockSize.y())) in generateBlockCaseTestData() 1134 …generateNormalBlock(blockParams, blockSize.x(), blockSize.y(), generateDefaultISEInputs(blockParam… in generateBlockCaseTestData() 1173 if (isValidBlockParams(blockParams, blockSize.x(), blockSize.y())) in generateBlockCaseTestData() [all …]
|
D | es3fCompressedTextureTests.cpp | 49 const IVec3 blockSize = tcu::getBlockPixelSize(format); in getASTCFormatShortName() local 50 DE_ASSERT(blockSize.z() == 1); in getASTCFormatShortName() 52 …return de::toString(blockSize.x()) + "x" + de::toString(blockSize.y()) + (tcu::isAstcSRGBFormat(fo… in getASTCFormatShortName()
|
/external/deqp/framework/delibs/destream/ |
D | deRingbuffer.c | 34 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) * blockSize * 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/engines/ |
D | DESedeWrapEngine.java | 163 int blockSize = engine.getBlockSize(); in wrap() local 165 if (WKCKS.length % blockSize != 0) in wrap() 174 for (int currentBytePos = 0; currentBytePos != WKCKS.length; currentBytePos += blockSize) in wrap() 195 for (int currentBytePos = 0; currentBytePos != TEMP3.length; currentBytePos += blockSize) in wrap() 225 final int blockSize = engine.getBlockSize(); in unwrap() local 226 if (inLen % blockSize != 0) in unwrap() 228 throw new InvalidCipherTextException("Ciphertext not multiple of " + blockSize); in unwrap() 255 for (int currentBytePos = 0; currentBytePos != inLen; currentBytePos += blockSize) in unwrap() 279 for (int currentBytePos = 0; currentBytePos != WKCKS.length; currentBytePos += blockSize) in unwrap()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/paddings/ |
D | PaddedBufferedBlockCipher.java | 188 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-hybrid-22k/lib_src/ |
D | eas_imaadpcm.c | 133 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/sonivox/arm-fm-22k/lib_src/ |
D | eas_imaadpcm.c | 133 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/sonivox/arm-wt-22k/lib_src/ |
D | eas_imaadpcm.c | 133 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/C/ |
D | Lzma2Enc.c | 173 p->blockSize = 0; in Lzma2EncProps_Init() 223 if (p->blockSize == 0) in Lzma2EncProps_Normalize() 226 UInt64 blockSize = (UInt64)dictSize << 2; in Lzma2EncProps_Normalize() local 229 if (blockSize < kMinSize) blockSize = kMinSize; in Lzma2EncProps_Normalize() 230 if (blockSize > kMaxSize) blockSize = kMaxSize; in Lzma2EncProps_Normalize() 231 if (blockSize < dictSize) blockSize = dictSize; in Lzma2EncProps_Normalize() 232 p->blockSize = (size_t)blockSize; in Lzma2EncProps_Normalize() 470 p->mtCoder.blockSize = p->props.blockSize; in Lzma2Enc_Encode() 471 p->mtCoder.destBlockSize = p->props.blockSize + (p->props.blockSize >> 10) + 16; in Lzma2Enc_Encode()
|
/external/deqp/modules/gles31/functional/ |
D | es31fBasicComputeShaderTests.cpp | 194 …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/ |
D | QRDecompositionImpl.java | 374 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()
|