/external/bouncycastle/src/main/java/org/bouncycastle/crypto/engines/ |
D | RC2Engine.java | 161 int inOff, in processBlock() argument 170 if ((inOff + BLOCK_SIZE) > in.length) in processBlock() 182 encryptBlock(in, inOff, out, outOff); in processBlock() 186 decryptBlock(in, inOff, out, outOff); in processBlock() 205 int inOff, in encryptBlock() argument 211 x76 = ((in[inOff + 7] & 0xff) << 8) + (in[inOff + 6] & 0xff); in encryptBlock() 212 x54 = ((in[inOff + 5] & 0xff) << 8) + (in[inOff + 4] & 0xff); in encryptBlock() 213 x32 = ((in[inOff + 3] & 0xff) << 8) + (in[inOff + 2] & 0xff); in encryptBlock() 214 x10 = ((in[inOff + 1] & 0xff) << 8) + (in[inOff + 0] & 0xff); in encryptBlock() 262 int inOff, in decryptBlock() argument [all …]
|
D | DESEngine.java | 65 int inOff, in processBlock() argument 74 if ((inOff + BLOCK_SIZE) > in.length) in processBlock() 84 desFunc(workingKey, in, inOff, out, outOff); in processBlock() 403 int inOff, in desFunc() argument 409 left = (in[inOff + 0] & 0xff) << 24; in desFunc() 410 left |= (in[inOff + 1] & 0xff) << 16; in desFunc() 411 left |= (in[inOff + 2] & 0xff) << 8; in desFunc() 412 left |= (in[inOff + 3] & 0xff); in desFunc() 414 right = (in[inOff + 4] & 0xff) << 24; in desFunc() 415 right |= (in[inOff + 5] & 0xff) << 16; in desFunc() [all …]
|
D | DESedeEngine.java | 86 int inOff, in processBlock() argument 95 if ((inOff + BLOCK_SIZE) > in.length) in processBlock() 109 desFunc(workingKey1, in, inOff, temp, 0); in processBlock() 115 desFunc(workingKey3, in, inOff, temp, 0); in processBlock()
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/paddings/ |
D | ISO7816d4Padding.java | 41 int inOff) in addPadding() argument 43 int added = (in.length - inOff); in addPadding() 45 in [inOff]= (byte) 0x80; in addPadding() 46 inOff ++; in addPadding() 48 while (inOff < in.length) in addPadding() 50 in[inOff] = (byte) 0; in addPadding() 51 inOff++; in addPadding()
|
D | X923Padding.java | 43 int inOff) in addPadding() argument 45 byte code = (byte)(in.length - inOff); in addPadding() 47 while (inOff < in.length - 1) in addPadding() 51 in[inOff] = 0; in addPadding() 55 in[inOff] = (byte)random.nextInt(); in addPadding() 57 inOff++; in addPadding() 60 in[inOff] = code; in addPadding()
|
D | TBCPadding.java | 50 int inOff) in addPadding() argument 52 int count = in.length - inOff; in addPadding() 55 if (inOff > 0) in addPadding() 57 code = (byte)((in[inOff - 1] & 0x01) == 0 ? 0xff : 0x00); in addPadding() 64 while (inOff < in.length) in addPadding() 66 in[inOff] = code; in addPadding() 67 inOff++; in addPadding()
|
D | ISO10126d2Padding.java | 49 int inOff) in addPadding() argument 51 byte code = (byte)(in.length - inOff); in addPadding() 53 while (inOff < (in.length - 1)) in addPadding() 55 in[inOff] = (byte)random.nextInt(); in addPadding() 56 inOff++; in addPadding() 59 in[inOff] = code; in addPadding()
|
D | ZeroBytePadding.java | 40 int inOff) in addPadding() argument 42 int added = (in.length - inOff); in addPadding() 44 while (inOff < in.length) in addPadding() 46 in[inOff] = (byte) 0; in addPadding() 47 inOff++; in addPadding()
|
D | PKCS7Padding.java | 40 int inOff) in addPadding() argument 42 byte code = (byte)(in.length - inOff); in addPadding() 44 while (inOff < in.length) in addPadding() 46 in[inOff] = code; in addPadding() 47 inOff++; in addPadding()
|
D | PaddedBufferedBlockCipher.java | 176 int inOff, in processBytes() argument 203 System.arraycopy(in, inOff, buf, bufOff, gapLen); in processBytes() 209 inOff += gapLen; in processBytes() 213 resultLen += cipher.processBlock(in, inOff, out, outOff + resultLen); in processBytes() 216 inOff += blockSize; in processBytes() 220 System.arraycopy(in, inOff, buf, bufOff, len); in processBytes()
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/digests/ |
D | GeneralDigest.java | 57 int inOff, in update() argument 65 update(in[inOff]); in update() 67 inOff++; in update() 76 processWord(in, inOff); in update() 78 inOff += xBuf.length; in update() 88 update(in[inOff]); in update() 90 inOff++; in update() 130 protected abstract void processWord(byte[] in, int inOff); in processWord() argument
|
D | LongDigest.java | 79 int inOff, in update() argument 87 update(in[inOff]); in update() 89 inOff++; in update() 98 processWord(in, inOff); in update() 100 inOff += xBuf.length; in update() 110 update(in[inOff]); in update() 112 inOff++; in update() 164 int inOff) in processWord() argument 166 W[wOff] = Pack.bigEndianToLong(in, inOff); in processWord()
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/modes/ |
D | CBCBlockCipher.java | 125 int inOff, in processBlock() argument 130 … return (encrypting) ? encryptBlock(in, inOff, out, outOff) : decryptBlock(in, inOff, out, outOff); in processBlock() 159 int inOff, in encryptBlock() argument 164 if ((inOff + blockSize) > in.length) in encryptBlock() 175 cbcV[i] ^= in[inOff + i]; in encryptBlock() 202 int inOff, in decryptBlock() argument 207 if ((inOff + blockSize) > in.length) in decryptBlock() 212 System.arraycopy(in, inOff, cbcNextV, 0, blockSize); in decryptBlock() 214 int length = cipher.processBlock(in, inOff, out, outOff); in decryptBlock()
|
D | CFBBlockCipher.java | 136 int inOff, in processBlock() argument 141 … return (encrypting) ? encryptBlock(in, inOff, out, outOff) : decryptBlock(in, inOff, out, outOff); in processBlock() 158 int inOff, in encryptBlock() argument 163 if ((inOff + blockSize) > in.length) in encryptBlock() 180 out[outOff + i] = (byte)(cfbOutV[i] ^ in[inOff + i]); in encryptBlock() 206 int inOff, in decryptBlock() argument 211 if ((inOff + blockSize) > in.length) in decryptBlock() 227 System.arraycopy(in, inOff, cfbV, cfbV.length - blockSize, blockSize); in decryptBlock() 234 out[outOff + i] = (byte)(cfbOutV[i] ^ in[inOff + i]); in decryptBlock()
|
D | GOFBBlockCipher.java | 148 int inOff, in processBlock() argument 153 if ((inOff + blockSize) > in.length) in processBlock() 183 out[outOff + i] = (byte)(ofbOutV[i] ^ in[inOff + i]); in processBlock() 209 int inOff) in bytesToint() argument 211 return ((in[inOff + 3] << 24) & 0xff000000) + ((in[inOff + 2] << 16) & 0xff0000) + in bytesToint() 212 ((in[inOff + 1] << 8) & 0xff00) + (in[inOff] & 0xff); in bytesToint()
|
D | CTSBlockCipher.java | 119 int inOff, in processBytes() argument 146 System.arraycopy(in, inOff, buf, bufOff, gapLen); in processBytes() 154 inOff += gapLen; in processBytes() 158 System.arraycopy(in, inOff, buf, bufOff, blockSize); in processBytes() 163 inOff += blockSize; in processBytes() 167 System.arraycopy(in, inOff, buf, bufOff, len); in processBytes()
|
D | CCMBlockCipher.java | 104 public int processBytes(byte[] in, int inOff, int inLen, byte[] out, int outOff) in processBytes() argument 107 data.write(in, inOff, inLen); in processBytes() 163 public byte[] processPacket(byte[] in, int inOff, int inLen) in processPacket() argument 183 int index = inOff; in processPacket() 188 calculateMac(in, inOff, inLen, macBlock); in processPacket() 213 int index = inOff; in processPacket() 218 System.arraycopy(in, inOff + inLen - macSize, macBlock, 0, macSize); in processPacket()
|
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/crypto/cipher/ |
D | DES.java | 72 public void transformBlock(byte[] in, int inOff, byte[] out, int outOff) in transformBlock() argument 79 desFunc(workingKey, in, inOff, out, outOff); in transformBlock() 283 protected void desFunc(int[] wKey, byte[] in, int inOff, byte[] out, int outOff) in desFunc() argument 287 left = (in[inOff + 0] & 0xff) << 24; in desFunc() 288 left |= (in[inOff + 1] & 0xff) << 16; in desFunc() 289 left |= (in[inOff + 2] & 0xff) << 8; in desFunc() 290 left |= (in[inOff + 3] & 0xff); in desFunc() 292 right = (in[inOff + 4] & 0xff) << 24; in desFunc() 293 right |= (in[inOff + 5] & 0xff) << 16; in desFunc() 294 right |= (in[inOff + 6] & 0xff) << 8; in desFunc() [all …]
|
D | DESede.java | 84 public void transformBlock(byte[] in, int inOff, byte[] out, int outOff) in transformBlock() argument 93 desFunc(key1, in, inOff, out, outOff); in transformBlock() 99 desFunc(key3, in, inOff, out, outOff); in transformBlock()
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/encodings/ |
D | PKCS1Encoding.java | 126 int inOff, in processBlock() argument 132 return encodeBlock(in, inOff, inLen); in processBlock() 136 return decodeBlock(in, inOff, inLen); in processBlock() 142 int inOff, in encodeBlock() argument 182 System.arraycopy(in, inOff, block, block.length - inLen, inLen); in encodeBlock() 192 int inOff, in decodeBlock() argument 196 byte[] block = engine.processBlock(in, inOff, inLen); in decodeBlock()
|
D | ISO9796d1Encoding.java | 132 int inOff, in processBlock() argument 138 return encodeBlock(in, inOff, inLen); in processBlock() 142 return decodeBlock(in, inOff, inLen); in processBlock() 148 int inOff, in encodeBlock() argument 161 System.arraycopy(in, inOff + inLen - (t - i), in encodeBlock() 166 System.arraycopy(in, inOff, block, block.length - (i + z), z); in encodeBlock() 205 int inOff, in decodeBlock() argument 209 byte[] block = engine.processBlock(in, inOff, inLen); in decodeBlock()
|
D | OAEPEncoding.java | 121 int inOff, in processBlock() argument 127 return encodeBlock(in, inOff, inLen); in processBlock() 131 return decodeBlock(in, inOff, inLen); in processBlock() 137 int inOff, in encodeBlock() argument 146 System.arraycopy(in, inOff, block, block.length - inLen, inLen); in encodeBlock() 204 int inOff, in decodeBlock() argument 208 byte[] data = engine.processBlock(in, inOff, inLen); in decodeBlock()
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/macs/ |
D | CBCBlockCipherMac.java | 137 int inOff, in update() argument 150 System.arraycopy(in, inOff, buf, bufOff, gapLen); in update() 156 inOff += gapLen; in update() 160 cipher.processBlock(in, inOff, mac, 0); in update() 163 inOff += blockSize; in update() 167 System.arraycopy(in, inOff, buf, bufOff, len); in update()
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/ |
D | BufferedBlockCipher.java | 186 int inOff, in processBytes() argument 213 System.arraycopy(in, inOff, buf, bufOff, gapLen); in processBytes() 219 inOff += gapLen; in processBytes() 223 resultLen += cipher.processBlock(in, inOff, out, outOff + resultLen); in processBytes() 226 inOff += blockSize; in processBytes() 230 System.arraycopy(in, inOff, buf, bufOff, len); in processBytes()
|
D | Wrapper.java | 14 public byte[] wrap(byte[] in, int inOff, int inLen); in wrap() argument 16 public byte[] unwrap(byte[] in, int inOff, int inLen) in unwrap() argument
|