/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/ |
D | RC2Engine.java | 164 int outOff) in processBlock() argument 176 if ((outOff + BLOCK_SIZE) > out.length) in processBlock() 183 encryptBlock(in, inOff, out, outOff); in processBlock() 187 decryptBlock(in, inOff, out, outOff); in processBlock() 208 int outOff) in encryptBlock() argument 251 out[outOff + 0] = (byte)x10; in encryptBlock() 252 out[outOff + 1] = (byte)(x10 >> 8); in encryptBlock() 253 out[outOff + 2] = (byte)x32; in encryptBlock() 254 out[outOff + 3] = (byte)(x32 >> 8); in encryptBlock() 255 out[outOff + 4] = (byte)x54; in encryptBlock() [all …]
|
D | DESEngine.java | 68 int outOff) in processBlock() argument 80 if ((outOff + BLOCK_SIZE) > out.length) in processBlock() 85 desFunc(workingKey, in, inOff, out, outOff); in processBlock() 406 int outOff) in desFunc() argument 486 out[outOff + 0] = (byte)((right >>> 24) & 0xff); in desFunc() 487 out[outOff + 1] = (byte)((right >>> 16) & 0xff); in desFunc() 488 out[outOff + 2] = (byte)((right >>> 8) & 0xff); in desFunc() 489 out[outOff + 3] = (byte)(right & 0xff); in desFunc() 490 out[outOff + 4] = (byte)((left >>> 24) & 0xff); in desFunc() 491 out[outOff + 5] = (byte)((left >>> 16) & 0xff); in desFunc() [all …]
|
D | DESedeEngine.java | 89 int outOff) in processBlock() argument 101 if ((outOff + BLOCK_SIZE) > out.length) in processBlock() 112 desFunc(workingKey3, temp, 0, out, outOff); in processBlock() 118 desFunc(workingKey1, temp, 0, out, outOff); in processBlock()
|
D | RC4Engine.java | 76 int outOff) in processBytes() argument 83 if ((outOff + len) > out.length) in processBytes() 99 out[i+outOff] = (byte)(in[i + inOff] in processBytes()
|
D | BlowfishEngine.java | 353 int outOff) in processBlock() argument 365 if ((outOff + BLOCK_SIZE) > out.length) in processBlock() 372 encryptBlock(in, inOff, out, outOff); in processBlock() 376 decryptBlock(in, inOff, out, outOff); in processBlock()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/ |
D | CTSBlockCipher.java | 88 int outOff) in processByte() argument 95 resultLen = cipher.processBlock(buf, 0, out, outOff); in processByte() 123 int outOff) in processBytes() argument 136 if ((outOff + length) > out.length) in processBytes() 149 resultLen += cipher.processBlock(buf, 0, out, outOff); in processBytes() 160 resultLen += cipher.processBlock(buf, 0, out, outOff + resultLen); in processBytes() 190 int outOff) in doFinal() argument 193 if (bufOff + outOff > out.length) in doFinal() 227 c.processBlock(buf, blockSize, out, outOff); in doFinal() 231 cipher.processBlock(buf, blockSize, out, outOff); in doFinal() [all …]
|
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 | 290 public int processByte(byte in, byte[] out, int outOff) in processByte() argument 301 outputBlock(out, outOff); in processByte() 307 public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) in processBytes() argument 326 outputBlock(out, outOff + resultLen); in processBytes() 356 public int doFinal(byte[] out, int outOff) in doFinal() argument 368 if (out.length < (outOff + extra + macSize)) in doFinal() 381 if (out.length < (outOff + extra)) in doFinal() 389 gCTRPartial(bufBlock, 0, extra, out, outOff); in doFinal() 455 System.arraycopy(macBlock, 0, out, outOff + bufOff, macSize); in doFinal() 511 private void gCTRBlock(byte[] block, byte[] out, int outOff) in gCTRBlock() argument [all …]
|
D | CCMBlockCipher.java | 123 public int processByte(byte in, byte[] out, int outOff) in processByte() argument 131 public int processBytes(byte[] in, int inOff, int inLen, byte[] out, int outOff) in processBytes() argument 143 public int doFinal(byte[] out, int outOff) in doFinal() argument 146 int len = processPacket(data.getBuffer(), 0, data.size(), out, outOff); in doFinal() 238 public int processPacket(byte[] in, int inOff, int inLen, byte[] output, int outOff) in processPacket() argument 268 int outIndex = outOff; in processPacket() 273 if (output.length < (outputLen + outOff)) in processPacket() 299 System.arraycopy(encMac, 0, output, outOff + inLen, macSize); in processPacket() 308 if (output.length < (outputLen + outOff)) in processPacket() 339 calculateMac(output, outOff, outputLen, calculatedMacBlock); in processPacket()
|
D | CFBBlockCipher.java | 191 int outOff) in processBlock() argument 194 processBytes(in, inOff, blockSize, out, outOff); in processBlock() 215 int outOff) in encryptBlock() argument 218 processBytes(in, inOff, blockSize, out, outOff); in encryptBlock() 239 int outOff) in decryptBlock() argument 242 processBytes(in, inOff, blockSize, out, outOff); in decryptBlock()
|
D | AEADBlockCipher.java | 75 public int processByte(byte in, byte[] out, int outOff) in processByte() argument 89 public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) in processBytes() argument 101 public int doFinal(byte[] out, int outOff) in doFinal() argument
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/digests/ |
D | SHA512Digest.java | 56 int outOff) in doFinal() argument 60 Pack.longToBigEndian(H1, out, outOff); in doFinal() 61 Pack.longToBigEndian(H2, out, outOff + 8); in doFinal() 62 Pack.longToBigEndian(H3, out, outOff + 16); in doFinal() 63 Pack.longToBigEndian(H4, out, outOff + 24); in doFinal() 64 Pack.longToBigEndian(H5, out, outOff + 32); in doFinal() 65 Pack.longToBigEndian(H6, out, outOff + 40); in doFinal() 66 Pack.longToBigEndian(H7, out, outOff + 48); in doFinal() 67 Pack.longToBigEndian(H8, out, outOff + 56); in doFinal()
|
D | SHA384Digest.java | 56 int outOff) in doFinal() argument 60 Pack.longToBigEndian(H1, out, outOff); in doFinal() 61 Pack.longToBigEndian(H2, out, outOff + 8); in doFinal() 62 Pack.longToBigEndian(H3, out, outOff + 16); in doFinal() 63 Pack.longToBigEndian(H4, out, outOff + 24); in doFinal() 64 Pack.longToBigEndian(H5, out, outOff + 32); in doFinal() 65 Pack.longToBigEndian(H6, out, outOff + 40); in doFinal()
|
D | SHA256Digest.java | 129 int outOff) in doFinal() argument 133 Pack.intToBigEndian(H1, out, outOff); in doFinal() 134 Pack.intToBigEndian(H2, out, outOff + 4); in doFinal() 135 Pack.intToBigEndian(H3, out, outOff + 8); in doFinal() 136 Pack.intToBigEndian(H4, out, outOff + 12); in doFinal() 137 Pack.intToBigEndian(H5, out, outOff + 16); in doFinal() 138 Pack.intToBigEndian(H6, out, outOff + 20); in doFinal() 139 Pack.intToBigEndian(H7, out, outOff + 24); in doFinal() 140 Pack.intToBigEndian(H8, out, outOff + 28); in doFinal()
|
D | SHA224Digest.java | 128 int outOff) in doFinal() argument 132 Pack.intToBigEndian(H1, out, outOff); in doFinal() 133 Pack.intToBigEndian(H2, out, outOff + 4); in doFinal() 134 Pack.intToBigEndian(H3, out, outOff + 8); in doFinal() 135 Pack.intToBigEndian(H4, out, outOff + 12); in doFinal() 136 Pack.intToBigEndian(H5, out, outOff + 16); in doFinal() 137 Pack.intToBigEndian(H6, out, outOff + 20); in doFinal() 138 Pack.intToBigEndian(H7, out, outOff + 24); in doFinal()
|
D | MD5Digest.java | 89 int outOff) in unpackWord() argument 91 out[outOff] = (byte)word; in unpackWord() 92 out[outOff + 1] = (byte)(word >>> 8); in unpackWord() 93 out[outOff + 2] = (byte)(word >>> 16); in unpackWord() 94 out[outOff + 3] = (byte)(word >>> 24); in unpackWord() 99 int outOff) in doFinal() argument 103 unpackWord(H1, out, outOff); in doFinal() 104 unpackWord(H2, out, outOff + 4); in doFinal() 105 unpackWord(H3, out, outOff + 8); in doFinal() 106 unpackWord(H4, out, outOff + 12); in doFinal()
|
D | OpenSSLDigest.java | 66 public int doFinal(byte[] out, int outOff) { in doFinal() argument 68 return delegate.digest(out, outOff, out.length - outOff); in doFinal()
|
D | SHA1Digest.java | 113 int outOff) in doFinal() argument 117 Pack.intToBigEndian(H1, out, outOff); in doFinal() 118 Pack.intToBigEndian(H2, out, outOff + 4); in doFinal() 119 Pack.intToBigEndian(H3, out, outOff + 8); in doFinal() 120 Pack.intToBigEndian(H4, out, outOff + 12); in doFinal() 121 Pack.intToBigEndian(H5, out, outOff + 16); in doFinal()
|
D | NullDigest.java | 33 public int doFinal(byte[] out, int outOff) in doFinal() argument 37 System.arraycopy(res, 0, out, outOff, res.length); in doFinal()
|
/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 | 163 int outOff) in processByte() argument 172 resultLen = cipher.processBlock(buf, 0, out, outOff); in processByte() 196 int outOff) in processBytes() argument 209 if ((outOff + length) > out.length) in processBytes() 222 resultLen += cipher.processBlock(buf, 0, out, outOff); in processBytes() 230 resultLen += cipher.processBlock(in, inOff, out, outOff + resultLen); in processBytes() 243 resultLen += cipher.processBlock(buf, 0, out, outOff + resultLen); in processBytes() 266 int outOff) in doFinal() argument 273 if (outOff + bufOff > out.length) in doFinal() 288 System.arraycopy(buf, 0, out, outOff, resultLen); in doFinal()
|
D | StreamBlockCipher.java | 32 public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) in processBytes() argument 35 if (outOff + len > out.length) in processBytes() 47 int outStart = outOff; in processBytes()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/ |
D | BaseBlockCipher.java | 1182 public int processByte(byte in, byte[] out, int outOff) in processByte() argument 1185 public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) in processBytes() argument 1188 public int doFinal(byte[] out, int outOff) in doFinal() argument 1249 public int processByte(byte in, byte[] out, int outOff) throws DataLengthException in processByte() argument 1251 return cipher.processByte(in, out, outOff); in processByte() 1254 …public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) throws DataLengthEx… in processBytes() argument 1256 return cipher.processBytes(in, inOff, len, out, outOff); in processBytes() 1259 public int doFinal(byte[] out, int outOff) throws IllegalStateException, BadPaddingException in doFinal() argument 1263 return cipher.doFinal(out, outOff); in doFinal() 1344 public int processByte(byte in, byte[] out, int outOff) throws DataLengthException in processByte() argument [all …]
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/selector/ |
D | MSOutlookKeyIdCalculator.java | 224 int outOff) in doFinal() argument 228 Pack.intToBigEndian(H1, out, outOff); in doFinal() 229 Pack.intToBigEndian(H2, out, outOff + 4); in doFinal() 230 Pack.intToBigEndian(H3, out, outOff + 8); in doFinal() 231 Pack.intToBigEndian(H4, out, outOff + 12); in doFinal() 232 Pack.intToBigEndian(H5, out, outOff + 16); in doFinal()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/ |
D | PKCS5S2ParametersGenerator.java | 50 int outOff) in F() argument 65 System.arraycopy(state, 0, out, outOff, state.length); in F() 74 out[outOff + j] ^= state[j]; in F()
|