/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/ |
D | CTSBlockCipher.java | 17 private int blockSize; field in CTSBlockCipher 34 blockSize = cipher.getBlockSize(); in CTSBlockCipher() 36 buf = new byte[blockSize * 2]; in CTSBlockCipher() 97 System.arraycopy(buf, blockSize, buf, 0, blockSize); in processByte() 99 bufOff = blockSize; in processByte() 132 int blockSize = getBlockSize(); in processBytes() local 151 System.arraycopy(buf, blockSize, buf, 0, blockSize); in processBytes() 153 bufOff = blockSize; in processBytes() 158 while (len > blockSize) in processBytes() 160 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 | SICBlockCipher.java | 21 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 …]
|
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 | 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() 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/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/modes/ |
D | CTSBlockCipher.java | 19 private int blockSize; field in CTSBlockCipher 36 blockSize = cipher.getBlockSize(); in CTSBlockCipher() 38 buf = new byte[blockSize * 2]; in CTSBlockCipher() 99 System.arraycopy(buf, blockSize, buf, 0, blockSize); in processByte() 101 bufOff = blockSize; in processByte() 134 int blockSize = getBlockSize(); in processBytes() local 153 System.arraycopy(buf, blockSize, buf, 0, blockSize); in processBytes() 155 bufOff = blockSize; in processBytes() 160 while (len > blockSize) in processBytes() 162 System.arraycopy(in, inOff, buf, bufOff, blockSize); in processBytes() [all …]
|
D | CFBBlockCipher.java | 23 private int blockSize; field in CFBBlockCipher 42 this.blockSize = bitBlockSize / 8; in CFBBlockCipher() 47 this.inBuf = new byte[blockSize]; in CFBBlockCipher() 115 return cipher.getAlgorithmName() + "/CFB" + (blockSize * 8); in getAlgorithmName() 134 if (byteCount == blockSize) in encryptByte() 138 System.arraycopy(cfbV, blockSize, cfbV, 0, cfbV.length - blockSize); in encryptByte() 139 System.arraycopy(inBuf, 0, cfbV, cfbV.length - blockSize, blockSize); in encryptByte() 155 if (byteCount == blockSize) in decryptByte() 159 System.arraycopy(cfbV, blockSize, cfbV, 0, cfbV.length - blockSize); in decryptByte() 160 System.arraycopy(inBuf, 0, cfbV, cfbV.length - blockSize, blockSize); in decryptByte() [all …]
|
D | SICBlockCipher.java | 23 private final int blockSize; field in SICBlockCipher 40 this.blockSize = cipher.getBlockSize(); in SICBlockCipher() 41 this.IV = new byte[blockSize]; in SICBlockCipher() 42 this.counter = new byte[blockSize]; in SICBlockCipher() 43 this.counterOut = new byte[blockSize]; in SICBlockCipher() 57 if (blockSize < IV.length) in init() 59 …new IllegalArgumentException("CTR/SIC mode requires IV no greater than: " + blockSize + " bytes."); in init() 62 int maxCounterSize = (8 > blockSize / 2) ? blockSize / 2 : 8; in init() 64 if (blockSize - IV.length > maxCounterSize) in init() 66 …ew IllegalArgumentException("CTR/SIC mode requires IV of at least: " + (blockSize - maxCounterSize… in init() [all …]
|
D | OFBBlockCipher.java | 22 private final int blockSize; field in OFBBlockCipher 34 int blockSize) in OFBBlockCipher() argument 39 this.blockSize = blockSize / 8; in OFBBlockCipher() 109 return cipher.getAlgorithmName() + "/OFB" + (blockSize * 8); in getAlgorithmName() 120 return blockSize; in getBlockSize() 143 processBytes(in, inOff, blockSize, out, outOff); in processBlock() 145 return blockSize; in processBlock() 170 if (byteCount == blockSize) in calculateByte() 174 System.arraycopy(ofbV, blockSize, ofbV, 0, ofbV.length - blockSize); in calculateByte() 175 System.arraycopy(ofbOutV, 0, ofbV, ofbV.length - blockSize, blockSize); in calculateByte()
|
D | CBCBlockCipher.java | 21 private int blockSize; field in CBCBlockCipher 34 this.blockSize = cipher.getBlockSize(); in CBCBlockCipher() 36 this.IV = new byte[blockSize]; in CBCBlockCipher() 37 this.cbcV = new byte[blockSize]; in CBCBlockCipher() 38 this.cbcNextV = new byte[blockSize]; in CBCBlockCipher() 75 if (iv.length != blockSize) in init() 184 if ((inOff + blockSize) > in.length) in encryptBlock() 193 for (int i = 0; i < blockSize; i++) in encryptBlock() 227 if ((inOff + blockSize) > in.length) in decryptBlock() 232 System.arraycopy(in, inOff, cbcNextV, 0, blockSize); in decryptBlock() [all …]
|
D | CCMBlockCipher.java | 28 private int blockSize; field in CCMBlockCipher 46 this.blockSize = c.getBlockSize(); in CCMBlockCipher() 47 this.macBlock = new byte[blockSize]; in CCMBlockCipher() 49 if (blockSize != 16) in CCMBlockCipher() 261 byte[] iv = new byte[blockSize]; in processPacket() 282 byte[] encMac = new byte[blockSize]; in processPacket() 286 while (inIndex < (inOff + inLen - blockSize)) // S1... in processPacket() 289 outIndex += blockSize; in processPacket() 290 inIndex += blockSize; in processPacket() 293 byte[] block = new byte[blockSize]; in processPacket() [all …]
|
/external/lz4/tests/ |
D | fuzzer.c | 363 int const blockSize = (FUZ_rand(&randState) % (FUZ_MAX_BLOCK_SIZE-1)) + 1; in FUZ_test() local 364 … int const blockStart = (FUZ_rand(&randState) % (COMPRESSIBLE_NOISE_LENGTH - blockSize - 1)) + 1; in FUZ_test() 372 U32 const crcOrig = XXH32(block, blockSize, 0); in FUZ_test() 379 && ((size_t)blockSize < labSize) ) { in FUZ_test() 380 memcpy(lowAddrBuffer, block, blockSize); in FUZ_test() 386 { int srcSize = blockSize; in FUZ_test() 393 … FUZ_CHECKTEST(srcSize > blockSize, "LZ4_compress_destSize() fed more than src buffer !"); in FUZ_test() 394 … DISPLAYLEVEL(5, "destSize : %7i/%7i; content%7i/%7i ", ret, targetSize, srcSize, blockSize); in FUZ_test() 417 { int srcSize = blockSize; in FUZ_test() 425 compressionLevel, ret, targetSize, srcSize, blockSize); in FUZ_test() [all …]
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/ |
D | FixedLengthBlockOutputStreamTest.java | 64 int blockSize = 4; in testWriteSingleBytes() local 65 MockWritableByteChannel mock = new MockWritableByteChannel(blockSize, false); in testWriteSingleBytes() 70 try (FixedLengthBlockOutputStream out = new FixedLengthBlockOutputStream(mock, blockSize)) { in testWriteSingleBytes() argument 77 validate(blockSize, msg, output); in testWriteSingleBytes() 92 int blockSize = 13; in testMultiWriteBuf() local 93 MockWritableByteChannel mock = new MockWritableByteChannel(blockSize, false); in testMultiWriteBuf() 98 try (FixedLengthBlockOutputStream out = new FixedLengthBlockOutputStream(mock, blockSize)) { in testMultiWriteBuf() argument 105 double v = Math.ceil((reps * msg.length) / (double) blockSize) * blockSize; in testMultiWriteBuf() 164 int blockSize = 512; in getClosedFLBOS() local 166 new MockOutputStream(blockSize, false), blockSize); in getClosedFLBOS() [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 | 138 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/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/dump/ |
D | TapeInputStream.java | 40 private int blockSize = DumpArchiveConstants.TP_SIZE; field in TapeInputStream 71 blockSize = RECORD_SIZE * recsPerBlock; in resetBlockSize() 77 blockBuffer = new byte[blockSize]; in resetBlockSize() 79 readFully(blockBuffer, RECORD_SIZE, blockSize - RECORD_SIZE); in resetBlockSize() 90 if (readOffset < blockSize) { in available() 91 return blockSize - readOffset; in available() 129 if (readOffset == blockSize) { in read() 139 if ((readOffset + (len - bytes)) <= blockSize) { in read() 144 n = blockSize - readOffset; in read() 180 if (readOffset == blockSize) { in skip() [all …]
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/ |
D | arena.h | 44 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/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/ |
D | FixedLengthBlockOutputStream.java | 53 private final int blockSize; field in FixedLengthBlockOutputStream 62 public FixedLengthBlockOutputStream(OutputStream os, int blockSize) { in FixedLengthBlockOutputStream() argument 66 buffer = ByteBuffer.allocateDirect(blockSize); in FixedLengthBlockOutputStream() 69 buffer = ByteBuffer.allocate(blockSize); in FixedLengthBlockOutputStream() 71 this.blockSize = blockSize; in FixedLengthBlockOutputStream() 78 public FixedLengthBlockOutputStream(WritableByteChannel out, int blockSize) { in FixedLengthBlockOutputStream() argument 80 this.blockSize = blockSize; in FixedLengthBlockOutputStream() 81 this.buffer = ByteBuffer.allocateDirect(blockSize); in FixedLengthBlockOutputStream() 94 if (i != blockSize || hasRemaining) { in writeBlock() 97 blockSize, i); in writeBlock() [all …]
|
/external/lzma/C/ |
D | Lzma2Enc.c | 234 p->blockSize = LZMA2_ENC_PROPS__BLOCK_SIZE__AUTO; in Lzma2EncProps_Init() 289 if ( p->blockSize != LZMA2_ENC_PROPS__BLOCK_SIZE__SOLID in Lzma2EncProps_Normalize() 290 && p->blockSize != LZMA2_ENC_PROPS__BLOCK_SIZE__AUTO in Lzma2EncProps_Normalize() 291 && (p->blockSize < fileSize || fileSize == (UInt64)(Int64)-1)) in Lzma2EncProps_Normalize() 292 p->lzmaProps.reduceSize = p->blockSize; in Lzma2EncProps_Normalize() 300 if (p->blockSize == LZMA2_ENC_PROPS__BLOCK_SIZE__SOLID) in Lzma2EncProps_Normalize() 305 else if (p->blockSize == LZMA2_ENC_PROPS__BLOCK_SIZE__AUTO && t2 <= 1) in Lzma2EncProps_Normalize() 308 p->blockSize = LZMA2_ENC_PROPS__BLOCK_SIZE__SOLID; in Lzma2EncProps_Normalize() 312 if (p->blockSize == LZMA2_ENC_PROPS__BLOCK_SIZE__AUTO) in Lzma2EncProps_Normalize() 317 UInt64 blockSize = (UInt64)dictSize << 2; in Lzma2EncProps_Normalize() local [all …]
|
D | XzEnc.c | 476 p->blockSize = XZ_PROPS__BLOCK_SIZE__AUTO; in XzProps_Init() 540 if ((p->blockSize < fileSize || fileSize == (UInt64)(Int64)-1)) in XzEncProps_Normalize_Fixed() 541 p->lzma2Props.lzmaProps.reduceSize = p->blockSize; in XzEncProps_Normalize_Fixed() 550 UInt64 numBlocks = fileSize / p->blockSize; in XzEncProps_Normalize_Fixed() 551 if (numBlocks * p->blockSize != fileSize) in XzEncProps_Normalize_Fixed() 574 if (p->blockSize == XZ_PROPS__BLOCK_SIZE__SOLID) in XzProps_Normalize() 586 if (p->blockSize == LZMA2_ENC_PROPS__BLOCK_SIZE__AUTO) in XzProps_Normalize() 591 if (lzma2->blockSize == LZMA2_ENC_PROPS__BLOCK_SIZE__SOLID) in XzProps_Normalize() 594 p->blockSize = XZ_PROPS__BLOCK_SIZE__SOLID; in XzProps_Normalize() 610 p->blockSize = tp.blockSize; // fixed or solid in XzProps_Normalize() [all …]
|
/external/deqp/modules/gles3/functional/ |
D | es3fASTCDecompressionCases.cpp | 139 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/lzma/CPP/7zip/Common/ |
D | MethodProps.h | 175 UInt64 blockSize = (UInt64)dictSize << 2; in Get_Xz_BlockSize() local 176 if (blockSize < kMinSize) blockSize = kMinSize; in Get_Xz_BlockSize() 177 if (blockSize > kMaxSize) blockSize = kMaxSize; in Get_Xz_BlockSize() 178 if (blockSize < dictSize) blockSize = dictSize; in Get_Xz_BlockSize() 179 blockSize += (kMinSize - 1); in Get_Xz_BlockSize() 180 blockSize &= ~(UInt64)(kMinSize - 1); in Get_Xz_BlockSize() 181 return blockSize; in Get_Xz_BlockSize() 206 UInt32 blockSize = Props[i].Value.ulVal; in Get_BZip2_BlockSize() local 209 if (blockSize < kDicSizeMin) blockSize = kDicSizeMin; in Get_BZip2_BlockSize() 210 if (blockSize > kDicSizeMax) blockSize = kDicSizeMax; in Get_BZip2_BlockSize() [all …]
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lz4/ |
D | FramedLZ4CompressorOutputStream.java | 89 private final BlockSize blockSize; field in FramedLZ4CompressorOutputStream.Parameters 107 public Parameters(BlockSize blockSize) { in Parameters() argument 108 this(blockSize, true, false, false); in Parameters() 119 public Parameters(BlockSize blockSize, in Parameters() argument 121 this(blockSize, true, false, false, lz77params); in Parameters() 135 … public Parameters(BlockSize blockSize, boolean withContentChecksum, boolean withBlockChecksum, in Parameters() argument 137 this(blockSize, withContentChecksum, withBlockChecksum, withBlockDependency, in Parameters() 156 … public Parameters(BlockSize blockSize, boolean withContentChecksum, boolean withBlockChecksum, in Parameters() argument 159 this.blockSize = blockSize; in Parameters() 168 …return "LZ4 Parameters with BlockSize " + blockSize + ", withContentChecksum " + withContentChecks… in toString() [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 …]
|