/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/ |
D | RC2Engine.java | 162 int inOff, in processBlock() argument 171 if ((inOff + BLOCK_SIZE) > in.length) in processBlock() 183 encryptBlock(in, inOff, out, outOff); in processBlock() 187 decryptBlock(in, inOff, out, outOff); in processBlock() 206 int inOff, in encryptBlock() argument 212 x76 = ((in[inOff + 7] & 0xff) << 8) + (in[inOff + 6] & 0xff); in encryptBlock() 213 x54 = ((in[inOff + 5] & 0xff) << 8) + (in[inOff + 4] & 0xff); in encryptBlock() 214 x32 = ((in[inOff + 3] & 0xff) << 8) + (in[inOff + 2] & 0xff); in encryptBlock() 215 x10 = ((in[inOff + 1] & 0xff) << 8) + (in[inOff + 0] & 0xff); in encryptBlock() 263 int inOff, in decryptBlock() argument [all …]
|
D | DESEngine.java | 66 int inOff, in processBlock() argument 75 if ((inOff + BLOCK_SIZE) > in.length) in processBlock() 85 desFunc(workingKey, in, inOff, out, outOff); in processBlock() 404 int inOff, in desFunc() argument 410 left = (in[inOff + 0] & 0xff) << 24; in desFunc() 411 left |= (in[inOff + 1] & 0xff) << 16; in desFunc() 412 left |= (in[inOff + 2] & 0xff) << 8; in desFunc() 413 left |= (in[inOff + 3] & 0xff); in desFunc() 415 right = (in[inOff + 4] & 0xff) << 24; in desFunc() 416 right |= (in[inOff + 5] & 0xff) << 16; in desFunc() [all …]
|
D | DESedeEngine.java | 87 int inOff, in processBlock() argument 96 if ((inOff + BLOCK_SIZE) > in.length) in processBlock() 110 desFunc(workingKey1, in, inOff, temp, 0); in processBlock() 116 desFunc(workingKey3, in, inOff, temp, 0); in processBlock()
|
D | RFC3394WrapEngine.java | 87 int inOff, in wrap() argument 106 System.arraycopy(in, inOff, block, iv.length, inLen); in wrap() 138 int inOff, in unwrap() argument 158 System.arraycopy(in, inOff, a, 0, iv.length); in unwrap() 159 System.arraycopy(in, inOff + iv.length, block, 0, inLen - iv.length); in unwrap()
|
D | RC4Engine.java | 73 int inOff, in processBytes() argument 78 if ((inOff + len) > in.length) in processBytes() 99 out[i+outOff] = (byte)(in[i + inOff] in processBytes()
|
/external/bouncycastle/bcprov/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 | 177 int inOff, in processBytes() argument 204 System.arraycopy(in, inOff, buf, bufOff, gapLen); in processBytes() 210 inOff += gapLen; in processBytes() 214 resultLen += cipher.processBlock(in, inOff, out, outOff + resultLen); in processBytes() 217 inOff += blockSize; in processBytes() 221 System.arraycopy(in, inOff, buf, bufOff, len); in processBytes()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/ |
D | CBCBlockCipher.java | 143 int inOff, in processBlock() argument 148 … return (encrypting) ? encryptBlock(in, inOff, out, outOff) : decryptBlock(in, inOff, out, outOff); in processBlock() 177 int inOff, in encryptBlock() argument 182 if ((inOff + blockSize) > in.length) in encryptBlock() 193 cbcV[i] ^= in[inOff + i]; in encryptBlock() 220 int inOff, in decryptBlock() argument 225 if ((inOff + blockSize) > in.length) in decryptBlock() 230 System.arraycopy(in, inOff, cbcNextV, 0, blockSize); in decryptBlock() 232 int length = cipher.processBlock(in, inOff, out, outOff); in decryptBlock()
|
D | CCMBlockCipher.java | 117 public void processAADBytes(byte[] in, int inOff, int len) in processAADBytes() argument 120 associatedText.write(in, inOff, len); in processAADBytes() 131 public int processBytes(byte[] in, int inOff, int inLen, byte[] out, int outOff) in processBytes() argument 134 if (in.length < (inOff + inLen)) in processBytes() 138 data.write(in, inOff, inLen); in processBytes() 202 public byte[] processPacket(byte[] in, int inOff, int inLen) in processPacket() argument 220 processPacket(in, inOff, inLen, output, 0); in processPacket() 238 public int processPacket(byte[] in, int inOff, int inLen, byte[] output, int outOff) in processPacket() argument 267 int inIndex = inOff; in processPacket() 278 calculateMac(in, inOff, inLen, macBlock); in processPacket() [all …]
|
D | CFBBlockCipher.java | 189 int inOff, in processBlock() argument 194 processBytes(in, inOff, blockSize, out, outOff); in processBlock() 213 int inOff, in encryptBlock() argument 218 processBytes(in, inOff, blockSize, out, outOff); in encryptBlock() 237 int inOff, in decryptBlock() argument 242 processBytes(in, inOff, blockSize, out, outOff); in decryptBlock()
|
D | CTSBlockCipher.java | 120 int inOff, in processBytes() argument 147 System.arraycopy(in, inOff, buf, bufOff, gapLen); in processBytes() 155 inOff += gapLen; in processBytes() 159 System.arraycopy(in, inOff, buf, bufOff, blockSize); in processBytes() 164 inOff += blockSize; in processBytes() 168 System.arraycopy(in, inOff, buf, bufOff, len); in processBytes()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/digests/ |
D | GeneralDigest.java | 70 int inOff, in update() argument 78 update(in[inOff]); in update() 80 inOff++; in update() 89 processWord(in, inOff); in update() 91 inOff += xBuf.length; in update() 101 update(in[inOff]); in update() 103 inOff++; in update() 150 protected abstract void processWord(byte[] in, int inOff); in processWord() argument
|
D | LongDigest.java | 133 int inOff, in update() argument 141 update(in[inOff]); in update() 143 inOff++; in update() 152 processWord(in, inOff); in update() 154 inOff += xBuf.length; in update() 164 update(in[inOff]); in update() 166 inOff++; in update() 218 int inOff) in processWord() argument 220 W[wOff] = Pack.bigEndianToLong(in, inOff); in processWord()
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/selector/ |
D | MSOutlookKeyIdCalculator.java | 89 int inOff, in update() argument 97 update(in[inOff]); in update() 99 inOff++; in update() 108 processWord(in, inOff); in update() 110 inOff += xBuf.length; in update() 120 update(in[inOff]); in update() 122 inOff++; in update() 157 protected abstract void processWord(byte[] in, int inOff); in processWord() argument 194 int inOff) in processWord() argument 198 int n = in[ inOff] << 24; in processWord() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/encodings/ |
D | PKCS1Encoding.java | 164 int inOff, in processBlock() argument 170 return encodeBlock(in, inOff, inLen); in processBlock() 174 return decodeBlock(in, inOff, inLen); in processBlock() 180 int inOff, in encodeBlock() argument 220 System.arraycopy(in, inOff, block, block.length - inLen, inLen); in encodeBlock() 282 private byte[] decodeBlockOrRandom(byte[] in, int inOff, int inLen) in decodeBlockOrRandom() argument 290 byte[] block = engine.processBlock(in, inOff, inLen); in decodeBlockOrRandom() 345 int inOff, in decodeBlock() argument 355 return this.decodeBlockOrRandom(in, inOff, inLen); in decodeBlock() 358 byte[] block = engine.processBlock(in, inOff, inLen); in decodeBlock()
|
D | OAEPEncoding.java | 125 int inOff, in processBlock() argument 131 return encodeBlock(in, inOff, inLen); in processBlock() 135 return decodeBlock(in, inOff, inLen); in processBlock() 141 int inOff, in encodeBlock() argument 150 System.arraycopy(in, inOff, block, block.length - inLen, inLen); in encodeBlock() 208 int inOff, in decodeBlock() argument 212 byte[] data = engine.processBlock(in, inOff, inLen); in decodeBlock()
|
/external/bouncycastle/bcprov/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/bcprov/src/main/java/org/bouncycastle/crypto/ |
D | StreamBlockCipher.java | 32 public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) in processBytes() argument 40 if (inOff + len > in.length) in processBytes() 45 int inStart = inOff; in processBytes() 46 int inEnd = inOff + len; in processBytes()
|
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
|