/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/crypto/cipher/ |
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() 94 desFunc(key2, out, outOff, out, outOff); in transformBlock() 95 desFunc(key3, out, outOff, out, outOff); in transformBlock() 99 desFunc(key3, in, inOff, out, outOff); in transformBlock() 100 desFunc(key2, out, outOff, out, outOff); in transformBlock() 101 desFunc(key1, out, outOff, out, outOff); in transformBlock()
|
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 363 out[outOff + 0] = (byte) ((right >>> 24) & 0xff); in desFunc() 364 out[outOff + 1] = (byte) ((right >>> 16) & 0xff); in desFunc() 365 out[outOff + 2] = (byte) ((right >>> 8) & 0xff); in desFunc() 366 out[outOff + 3] = (byte) (right & 0xff); in desFunc() 367 out[outOff + 4] = (byte) ((left >>> 24) & 0xff); in desFunc() 368 out[outOff + 5] = (byte) ((left >>> 16) & 0xff); in desFunc() 369 out[outOff + 6] = (byte) ((left >>> 8) & 0xff); in desFunc() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/digests/ |
D | SHA512Digest.java | 50 int outOff) in doFinal() argument 54 Pack.longToBigEndian(H1, out, outOff); in doFinal() 55 Pack.longToBigEndian(H2, out, outOff + 8); in doFinal() 56 Pack.longToBigEndian(H3, out, outOff + 16); in doFinal() 57 Pack.longToBigEndian(H4, out, outOff + 24); in doFinal() 58 Pack.longToBigEndian(H5, out, outOff + 32); in doFinal() 59 Pack.longToBigEndian(H6, out, outOff + 40); in doFinal() 60 Pack.longToBigEndian(H7, out, outOff + 48); in doFinal() 61 Pack.longToBigEndian(H8, out, outOff + 56); in doFinal()
|
D | SHA384Digest.java | 51 int outOff) in doFinal() argument 55 Pack.longToBigEndian(H1, out, outOff); in doFinal() 56 Pack.longToBigEndian(H2, out, outOff + 8); in doFinal() 57 Pack.longToBigEndian(H3, out, outOff + 16); in doFinal() 58 Pack.longToBigEndian(H4, out, outOff + 24); in doFinal() 59 Pack.longToBigEndian(H5, out, outOff + 32); in doFinal() 60 Pack.longToBigEndian(H6, out, outOff + 40); in doFinal()
|
D | SHA256Digest.java | 100 int outOff) in doFinal() argument 104 Pack.intToBigEndian(H1, out, outOff); in doFinal() 105 Pack.intToBigEndian(H2, out, outOff + 4); in doFinal() 106 Pack.intToBigEndian(H3, out, outOff + 8); in doFinal() 107 Pack.intToBigEndian(H4, out, outOff + 12); in doFinal() 108 Pack.intToBigEndian(H5, out, outOff + 16); in doFinal() 109 Pack.intToBigEndian(H6, out, outOff + 20); in doFinal() 110 Pack.intToBigEndian(H7, out, outOff + 24); in doFinal() 111 Pack.intToBigEndian(H8, out, outOff + 28); in doFinal()
|
D | MD5Digest.java | 80 int outOff) in unpackWord() argument 82 out[outOff] = (byte)word; in unpackWord() 83 out[outOff + 1] = (byte)(word >>> 8); in unpackWord() 84 out[outOff + 2] = (byte)(word >>> 16); in unpackWord() 85 out[outOff + 3] = (byte)(word >>> 24); in unpackWord() 90 int outOff) in doFinal() argument 94 unpackWord(H1, out, outOff); in doFinal() 95 unpackWord(H2, out, outOff + 4); in doFinal() 96 unpackWord(H3, out, outOff + 8); in doFinal() 97 unpackWord(H4, out, outOff + 12); in doFinal()
|
D | SHA1Digest.java | 89 int outOff) in doFinal() argument 93 Pack.intToBigEndian(H1, out, outOff); in doFinal() 94 Pack.intToBigEndian(H2, out, outOff + 4); in doFinal() 95 Pack.intToBigEndian(H3, out, outOff + 8); in doFinal() 96 Pack.intToBigEndian(H4, out, outOff + 12); in doFinal() 97 Pack.intToBigEndian(H5, out, outOff + 16); in doFinal()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/ |
D | RC2Engine.java | 163 int outOff) in processBlock() argument 175 if ((outOff + BLOCK_SIZE) > out.length) in processBlock() 182 encryptBlock(in, inOff, out, outOff); in processBlock() 186 decryptBlock(in, inOff, out, outOff); in processBlock() 207 int outOff) in encryptBlock() argument 250 out[outOff + 0] = (byte)x10; in encryptBlock() 251 out[outOff + 1] = (byte)(x10 >> 8); in encryptBlock() 252 out[outOff + 2] = (byte)x32; in encryptBlock() 253 out[outOff + 3] = (byte)(x32 >> 8); in encryptBlock() 254 out[outOff + 4] = (byte)x54; in encryptBlock() [all …]
|
D | DESEngine.java | 67 int outOff) in processBlock() argument 79 if ((outOff + BLOCK_SIZE) > out.length) in processBlock() 84 desFunc(workingKey, in, inOff, out, outOff); in processBlock() 405 int outOff) in desFunc() argument 485 out[outOff + 0] = (byte)((right >>> 24) & 0xff); in desFunc() 486 out[outOff + 1] = (byte)((right >>> 16) & 0xff); in desFunc() 487 out[outOff + 2] = (byte)((right >>> 8) & 0xff); in desFunc() 488 out[outOff + 3] = (byte)(right & 0xff); in desFunc() 489 out[outOff + 4] = (byte)((left >>> 24) & 0xff); in desFunc() 490 out[outOff + 5] = (byte)((left >>> 16) & 0xff); in desFunc() [all …]
|
D | DESedeEngine.java | 91 int outOff) in processBlock() argument 103 if ((outOff + BLOCK_SIZE) > out.length) in processBlock() 116 desFunc(workingKey3, temp, 0, out, outOff); in processBlock() 122 desFunc(workingKey1, temp, 0, out, outOff); in processBlock()
|
D | RC4Engine.java | 75 int outOff) in processBytes() argument 82 if ((outOff + len) > out.length) in processBytes() 98 out[i+outOff] = (byte)(in[i + inOff] in processBytes()
|
D | BlowfishEngine.java | 352 int outOff) in processBlock() argument 364 if ((outOff + BLOCK_SIZE) > out.length) in processBlock() 371 encryptBlock(in, inOff, out, outOff); in processBlock() 375 decryptBlock(in, inOff, out, outOff); in processBlock()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/ |
D | CTSBlockCipher.java | 87 int outOff) in processByte() argument 94 resultLen = cipher.processBlock(buf, 0, out, outOff); in processByte() 122 int outOff) in processBytes() argument 135 if ((outOff + length) > out.length) in processBytes() 148 resultLen += cipher.processBlock(buf, 0, out, outOff); in processBytes() 159 resultLen += cipher.processBlock(buf, 0, out, outOff + resultLen); in processBytes() 189 int outOff) in doFinal() argument 192 if (bufOff + outOff > out.length) in doFinal() 224 c.processBlock(buf, blockSize, out, outOff); in doFinal() 228 cipher.processBlock(buf, blockSize, out, outOff); in doFinal() [all …]
|
D | CCMBlockCipher.java | 108 public int processByte(byte in, byte[] out, int outOff) in processByte() argument 116 public int processBytes(byte[] in, int inOff, int inLen, byte[] out, int outOff) in processBytes() argument 124 public int doFinal(byte[] out, int outOff) in doFinal() argument 130 System.arraycopy(enc, 0, out, outOff, enc.length); in doFinal() 199 int outOff = 0; in processPacket() local 209 ctrCipher.processBlock(in, index, out, outOff); in processPacket() 210 outOff += blockSize; in processPacket() 220 System.arraycopy(block, 0, out, outOff, inLen - index); in processPacket() 222 outOff += inLen - index; in processPacket() 224 System.arraycopy(macBlock, 0, out, outOff, out.length - outOff); in processPacket() [all …]
|
D | CFBBlockCipher.java | 146 int outOff) in processBlock() argument 149 … return (encrypting) ? encryptBlock(in, inOff, out, outOff) : decryptBlock(in, inOff, out, outOff); in processBlock() 168 int outOff) in encryptBlock() argument 176 if ((outOff + blockSize) > out.length) in encryptBlock() 188 out[outOff + i] = (byte)(cfbOutV[i] ^ in[inOff + i]); in encryptBlock() 195 System.arraycopy(out, outOff, cfbV, cfbV.length - blockSize, blockSize); in encryptBlock() 216 int outOff) in decryptBlock() argument 224 if ((outOff + blockSize) > out.length) in decryptBlock() 242 out[outOff + i] = (byte)(cfbOutV[i] ^ in[inOff + i]); in decryptBlock()
|
D | CBCBlockCipher.java | 145 int outOff) in processBlock() argument 148 … return (encrypting) ? encryptBlock(in, inOff, out, outOff) : decryptBlock(in, inOff, out, outOff); in processBlock() 179 int outOff) in encryptBlock() argument 196 int length = cipher.processBlock(cbcV, 0, out, outOff); in encryptBlock() 201 System.arraycopy(out, outOff, cbcV, 0, cbcV.length); in encryptBlock() 222 int outOff) in decryptBlock() argument 232 int length = cipher.processBlock(in, inOff, out, outOff); in decryptBlock() 239 out[outOff + i] ^= cbcV[i]; in decryptBlock()
|
D | GCMBlockCipher.java | 259 public int processByte(byte in, byte[] out, int outOff) in processByte() argument 265 outputBlock(out, outOff); in processByte() 271 public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) in processBytes() argument 281 outputBlock(out, outOff + resultLen); in processBytes() 307 public int doFinal(byte[] out, int outOff) in doFinal() argument 327 gCTRPartial(bufBlock, 0, extra, out, outOff); in doFinal() 394 System.arraycopy(macBlock, 0, out, outOff + bufOff, macSize); in doFinal() 450 private void gCTRBlock(byte[] block, byte[] out, int outOff) in gCTRBlock() argument 455 System.arraycopy(tmp, 0, out, outOff, BLOCK_SIZE); in gCTRBlock() 462 private void gCTRPartial(byte[] buf, int off, int len, byte[] out, int outOff) in gCTRPartial() argument [all …]
|
D | AEADBlockCipher.java | 65 public int processByte(byte in, byte[] out, int outOff) in processByte() argument 79 public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) in processBytes() argument 91 public int doFinal(byte[] out, int outOff) in doFinal() argument
|
D | OFBBlockCipher.java | 144 int outOff) in processBlock() argument 152 if ((outOff + blockSize) > out.length) in processBlock() 165 out[outOff + i] = (byte)(ofbOutV[i] ^ in[inOff + i]); in processBlock()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/paddings/ |
D | PaddedBufferedBlockCipher.java | 147 int outOff) in processByte() argument 154 resultLen = cipher.processBlock(buf, 0, out, outOff); in processByte() 180 int outOff) in processBytes() argument 193 if ((outOff + length) > out.length) in processBytes() 206 resultLen += cipher.processBlock(buf, 0, out, outOff); in processBytes() 214 resultLen += cipher.processBlock(in, inOff, out, outOff + resultLen); in processBytes() 244 int outOff) in doFinal() argument 254 if ((outOff + 2 * blockSize) > out.length) in doFinal() 261 resultLen = cipher.processBlock(buf, 0, out, outOff); in doFinal() 267 resultLen += cipher.processBlock(buf, 0, out, outOff + resultLen); in doFinal() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ |
D | BufferedBlockCipher.java | 156 int outOff) in processByte() argument 165 resultLen = cipher.processBlock(buf, 0, out, outOff); in processByte() 189 int outOff) in processBytes() argument 202 if ((outOff + length) > out.length) in processBytes() 215 resultLen += cipher.processBlock(buf, 0, out, outOff); in processBytes() 223 resultLen += cipher.processBlock(in, inOff, out, outOff + resultLen); in processBytes() 236 resultLen += cipher.processBlock(buf, 0, out, outOff + resultLen); in processBytes() 259 int outOff) in doFinal() argument 266 if (outOff + bufOff > out.length) in doFinal() 281 System.arraycopy(buf, 0, out, outOff, resultLen); in doFinal()
|
D | StreamBlockCipher.java | 86 int outOff) in processBytes() argument 89 if (outOff + len > out.length) in processBytes() 96 cipher.processBlock(in, inOff + i, out, outOff + i); in processBytes()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/ |
D | BaseBlockCipher.java | 783 public int processByte(byte in, byte[] out, int outOff) in processByte() argument 786 public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) in processBytes() argument 789 public int doFinal(byte[] out, int outOff) in doFinal() argument 844 public int processByte(byte in, byte[] out, int outOff) throws DataLengthException in processByte() argument 846 return cipher.processByte(in, out, outOff); in processByte() 849 …public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) throws DataLengthEx… in processBytes() argument 851 return cipher.processBytes(in, inOff, len, out, outOff); in processBytes() 854 …public int doFinal(byte[] out, int outOff) throws IllegalStateException, InvalidCipherTextException in doFinal() argument 856 return cipher.doFinal(out, outOff); in doFinal() 901 public int processByte(byte in, byte[] out, int outOff) throws DataLengthException in processByte() argument [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
D | JCEBlockCipher.java | 1000 public int processByte(byte in, byte[] out, int outOff) in processByte() argument 1003 public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) in processBytes() argument 1006 public int doFinal(byte[] out, int outOff) in doFinal() argument 1061 public int processByte(byte in, byte[] out, int outOff) throws DataLengthException in processByte() argument 1063 return cipher.processByte(in, out, outOff); in processByte() 1066 …public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) throws DataLengthEx… in processBytes() argument 1068 return cipher.processBytes(in, inOff, len, out, outOff); in processBytes() 1071 …public int doFinal(byte[] out, int outOff) throws IllegalStateException, InvalidCipherTextException in doFinal() argument 1073 return cipher.doFinal(out, outOff); in doFinal() 1118 public int processByte(byte in, byte[] out, int outOff) throws DataLengthException in processByte() argument [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/ |
D | PKCS5S2ParametersGenerator.java | 48 int outOff) in F() argument 64 System.arraycopy(state, 0, out, outOff, state.length); in F() 79 out[outOff + j] ^= state[j]; in F()
|