/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/crypto/cipher/ |
NullCipher.java | 15 private int blockSize = 8; 21 public NullCipher(int blockSize) 23 this.blockSize = blockSize; 32 return blockSize; 37 System.arraycopy(src, srcoff, dst, dstoff, blockSize);
|
CTRMode.java | 19 int blockSize; 31 blockSize = bc.getBlockSize(); 34 if (blockSize != iv.length) 35 throw new IllegalArgumentException("IV must be " + blockSize + " bytes long! (currently " + iv.length + ")"); 37 X = new byte[blockSize]; 38 Xenc = new byte[blockSize]; 40 System.arraycopy(iv, 0, X, 0, blockSize); 45 return blockSize; 52 for (int i = 0; i < blockSize; i++) 57 for (int i = (blockSize - 1); i >= 0; i-- [all...] |
CBCMode.java | 16 int blockSize; 30 this.blockSize = tc.getBlockSize(); 33 if (this.blockSize != iv.length) 34 throw new IllegalArgumentException("IV must be " + blockSize 37 this.cbc_vector = new byte[blockSize]; 38 this.tmp_vector = new byte[blockSize]; 39 System.arraycopy(iv, 0, cbc_vector, 0, blockSize); 44 return blockSize; 49 for (int i = 0; i < blockSize; i++) 54 System.arraycopy(dst, dstoff, cbc_vector, 0, blockSize); [all...] |
CipherInputStream.java | 22 int blockSize; 76 blockSize = bc.getBlockSize(); 77 buffer = new byte[blockSize]; 78 enc = new byte[blockSize]; 79 pos = blockSize; 85 while (n < blockSize) 87 int len = internal_read(enc, n, blockSize - n); 117 if (pos >= blockSize) 122 int avail = blockSize - pos; 135 if (pos >= blockSize) [all...] |
CipherOutputStream.java | 22 int blockSize; 89 blockSize = bc.getBlockSize(); 90 buffer = new byte[blockSize]; 91 enc = new byte[blockSize]; 106 internal_write(enc, 0, blockSize); 114 int avail = blockSize - pos; 122 if (pos >= blockSize) 132 if (pos >= blockSize)
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/ |
CTSBlockCipher.java | 15 private int blockSize; 32 blockSize = cipher.getBlockSize(); 34 buf = new byte[blockSize * 2]; 95 System.arraycopy(buf, blockSize, buf, 0, blockSize); 97 bufOff = blockSize; 130 int blockSize = getBlockSize(); 149 System.arraycopy(buf, blockSize, buf, 0, blockSize); 151 bufOff = blockSize; [all...] |
OFBBlockCipher.java | 18 private final int blockSize; 26 * @param blockSize the block size in bits (note: a multiple of 8) 30 int blockSize) 33 this.blockSize = blockSize / 8; 113 return cipher.getAlgorithmName() + "/OFB" + (blockSize * 8); 124 return blockSize; 147 if ((inOff + blockSize) > in.length) 152 if ((outOff + blockSize) > out.length) 163 for (int i = 0; i < blockSize; i++ [all...] |
CFBBlockCipher.java | 18 private int blockSize; 34 this.blockSize = bitBlockSize / 8; 116 return cipher.getAlgorithmName() + "/CFB" + (blockSize * 8); 126 return blockSize; 171 if ((inOff + blockSize) > in.length) 176 if ((outOff + blockSize) > out.length) 186 for (int i = 0; i < blockSize; i++) 194 System.arraycopy(cfbV, blockSize, cfbV, 0, cfbV.length - blockSize); 195 System.arraycopy(out, outOff, cfbV, cfbV.length - blockSize, blockSize) [all...] |
CBCBlockCipher.java | 19 private int blockSize; 32 this.blockSize = cipher.getBlockSize(); 34 this.IV = new byte[blockSize]; 35 this.cbcV = new byte[blockSize]; 36 this.cbcNextV = new byte[blockSize]; 73 if (iv.length != blockSize) 182 if ((inOff + blockSize) > in.length) 191 for (int i = 0; i < blockSize; i++) 225 if ((inOff + blockSize) > in.length) 230 System.arraycopy(in, inOff, cbcNextV, 0, blockSize); [all...] |
SICBlockCipher.java | 16 private final int blockSize; 31 this.blockSize = cipher.getBlockSize(); 32 this.IV = new byte[blockSize]; 33 this.counter = new byte[blockSize]; 34 this.counterOut = new byte[blockSize];
|
CCMBlockCipher.java | 25 private int blockSize; 43 this.blockSize = c.getBlockSize(); 44 this.macBlock = new byte[blockSize]; 46 if (blockSize != 16) 202 byte[] iv = new byte[blockSize]; 221 while (index < inLen - blockSize) // S1... 224 outOff += blockSize; 225 index += blockSize; 228 byte[] block = new byte[blockSize]; 253 while (outOff < output.length - blockSize) [all...] |
/external/smack/src/org/jivesoftware/smackx/bytestreams/ibb/packet/ |
Open.java | 31 private final int blockSize;
46 * @param blockSize block size in which the data will be fragmented
49 public Open(String sessionID, int blockSize, StanzaType stanza) {
53 if (blockSize <= 0) {
58 this.blockSize = blockSize;
73 * @param blockSize block size in which the data will be fragmented
75 public Open(String sessionID, int blockSize) {
76 this(sessionID, blockSize, StanzaType.IQ);
94 return blockSize;
[all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/macs/ |
CBCBlockCipherMac.java | 145 int blockSize = cipher.getBlockSize(); 146 int gapLen = blockSize - bufOff; 158 while (len > blockSize) 162 len -= blockSize; 163 inOff += blockSize; 176 int blockSize = cipher.getBlockSize(); 183 while (bufOff < blockSize) 191 if (bufOff == blockSize)
|
/external/qemu/distrib/sdl-1.2.15/src/video/riscos/ |
SDL_riscostask.c | 72 int blockSize = 0; 75 while(blockSize < 5 || storeBlock[blockSize] != -1) 77 fprintf(stderr, " %d\n", storeBlock[blockSize++]); 283 int blockSize = 0; 288 while(blockSize < 5 || retBlock[blockSize] != -1) blockSize++; 289 blockSize++; 290 storeBlock = (int *)SDL_malloc(blockSize * sizeof(int)) [all...] |
/external/opencv/cv/src/ |
cvoptflowbm.cpp | 90 // blockSize, // size of basic blocks which are compared 106 CvSize blockSize, CvSize shiftSize, 118 int stand_accept_level = blockSize.height * blockSize.width * SMALL_DIFF; 119 int stand_escape_level = blockSize.height * blockSize.width * BIG_DIFF; 142 int DownStep = blockSize.height * imgStep; 147 int blSize = blockSize.width * blockSize.height; 311 NumberBlocksX = (int) imgSize.width / blockSize.width [all...] |
/external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/ |
CodedInputStreamTest.java | 68 private final int blockSize; 70 public SmallBlockInputStream(byte[] data, int blockSize) { 71 this(new ByteArrayInputStream(data), blockSize); 74 public SmallBlockInputStream(InputStream in, int blockSize) { 76 this.blockSize = blockSize; 80 return super.read(b, 0, Math.min(b.length, blockSize)); 84 return super.read(b, off, Math.min(len, blockSize)); 101 for (int blockSize = 1; blockSize <= 16; blockSize *= 2) [all...] |
CodedOutputStreamTest.java | 107 for (int blockSize = 1; blockSize <= 16; blockSize *= 2) { 112 CodedOutputStream.newInstance(rawOutput, blockSize); 121 CodedOutputStream.newInstance(rawOutput, blockSize); 172 for (int blockSize = 1; blockSize <= 16; blockSize *= 2) { 174 output = CodedOutputStream.newInstance(rawOutput, blockSize); 194 for (int blockSize = 1; blockSize <= 16; blockSize *= 2) [all...] |
/external/protobuf/java/src/test/java/com/google/protobuf/ |
CodedInputStreamTest.java | 68 private final int blockSize; 70 public SmallBlockInputStream(byte[] data, int blockSize) { 71 this(new ByteArrayInputStream(data), blockSize); 74 public SmallBlockInputStream(InputStream in, int blockSize) { 76 this.blockSize = blockSize; 80 return super.read(b, 0, Math.min(b.length, blockSize)); 84 return super.read(b, off, Math.min(len, blockSize)); 101 for (int blockSize = 1; blockSize <= 16; blockSize *= 2) [all...] |
CodedOutputStreamTest.java | 106 for (int blockSize = 1; blockSize <= 16; blockSize *= 2) { 111 CodedOutputStream.newInstance(rawOutput, blockSize); 120 CodedOutputStream.newInstance(rawOutput, blockSize); 171 for (int blockSize = 1; blockSize <= 16; blockSize *= 2) { 173 output = CodedOutputStream.newInstance(rawOutput, blockSize); 193 for (int blockSize = 1; blockSize <= 16; blockSize *= 2) [all...] |
/external/smack/src/org/jivesoftware/smackx/bytestreams/ibb/provider/ |
OpenIQProvider.java | 31 int blockSize = Integer.parseInt(parser.getAttributeValue("", "block-size"));
42 return new Open(sessionID, blockSize, stanza);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
CacheStorageUsageInfo.java | 64 long blockSize = stat.getBlockSize(); 68 mTotalBytes = blockSize * totalBlocks; 69 mUsedBytes = blockSize * (totalBlocks - availableBlocks);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/digests/ |
OpenSSLDigest.java | 45 private final int blockSize; 63 private OpenSSLDigest(String algorithm, long evp_md, int size, int blockSize) { 67 this.blockSize = blockSize; 79 return blockSize;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/paddings/ |
PaddedBufferedBlockCipher.java | 188 int blockSize = getBlockSize(); 216 len -= blockSize; 217 inOff += blockSize; 247 int blockSize = cipher.getBlockSize(); 252 if (bufOff == blockSize) 254 if ((outOff + 2 * blockSize) > out.length) 273 if (bufOff == blockSize)
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/ |
DESedeWrapEngine.java | 163 int blockSize = engine.getBlockSize(); 165 if (WKCKS.length % blockSize != 0) 174 for (int currentBytePos = 0; currentBytePos != WKCKS.length; currentBytePos += blockSize) 195 for (int currentBytePos = 0; currentBytePos != TEMP3.length; currentBytePos += blockSize) 225 final int blockSize = engine.getBlockSize(); 226 if (inLen % blockSize != 0) 228 throw new InvalidCipherTextException("Ciphertext not multiple of " + blockSize); 255 for (int currentBytePos = 0; currentBytePos != inLen; currentBytePos += blockSize) 279 for (int currentBytePos = 0; currentBytePos != WKCKS.length; currentBytePos += blockSize)
|
/external/chromium_org/third_party/skia/src/gpu/ |
GrAllocPool.cpp | 56 GrAllocPool::GrAllocPool(size_t blockSize) { 58 fMinBlockSize = GrMax(blockSize, GrAllocPool_MIN_BLOCK_SIZE); 83 size_t blockSize = GrMax(fMinBlockSize, size); 84 fBlock = Block::Create(blockSize, fBlock);
|