Home
last modified time | relevance | path

Searched refs:inLen (Results 1 – 25 of 57) sorted by relevance

123

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/
DCCMBlockCipher.java131 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
209 output = new byte[inLen + macSize]; in processPacket()
213 if (inLen < macSize) in processPacket()
217 output = new byte[inLen - macSize]; in processPacket()
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
253 if (inLen >= limitLen) in processPacket()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/encodings/
DPKCS1Encoding.java177 int inLen) in processBlock() argument
182 return encodeBlock(in, inOff, inLen); in processBlock()
186 return decodeBlock(in, inOff, inLen); in processBlock()
193 int inLen) in encodeBlock() argument
196 if (inLen > getInputBlockSize()) in encodeBlock()
207 for (int i = 1; i != block.length - inLen - 1; i++) in encodeBlock()
222 for (int i = 1; i != block.length - inLen - 1; i++) in encodeBlock()
231 block[block.length - inLen - 1] = 0x00; // mark the end of the padding in encodeBlock()
232 System.arraycopy(in, inOff, block, block.length - inLen, inLen); in encodeBlock()
295 private byte[] decodeBlockOrRandom(byte[] in, int inOff, int inLen) in decodeBlockOrRandom() argument
[all …]
DOAEPEncoding.java131 int inLen) in processBlock() argument
136 return encodeBlock(in, inOff, inLen); in processBlock()
140 return decodeBlock(in, inOff, inLen); in processBlock()
147 int inLen) in encodeBlock() argument
150 if (inLen > getInputBlockSize()) in encodeBlock()
160 System.arraycopy(in, inOff, block, block.length - inLen, inLen); in encodeBlock()
165 block[block.length - inLen - 1] = 0x01; in encodeBlock()
219 int inLen) in decodeBlock() argument
222 byte[] data = engine.processBlock(in, inOff, inLen); in decodeBlock()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/encodings/
DPKCS1Encoding.java175 int inLen) in processBlock() argument
180 return encodeBlock(in, inOff, inLen); in processBlock()
184 return decodeBlock(in, inOff, inLen); in processBlock()
191 int inLen) in encodeBlock() argument
194 if (inLen > getInputBlockSize()) in encodeBlock()
205 for (int i = 1; i != block.length - inLen - 1; i++) in encodeBlock()
220 for (int i = 1; i != block.length - inLen - 1; i++) in encodeBlock()
229 block[block.length - inLen - 1] = 0x00; // mark the end of the padding in encodeBlock()
230 System.arraycopy(in, inOff, block, block.length - inLen, inLen); in encodeBlock()
293 private byte[] decodeBlockOrRandom(byte[] in, int inOff, int inLen) in decodeBlockOrRandom() argument
[all …]
DOAEPEncoding.java129 int inLen) in processBlock() argument
134 return encodeBlock(in, inOff, inLen); in processBlock()
138 return decodeBlock(in, inOff, inLen); in processBlock()
145 int inLen) in encodeBlock() argument
148 if (inLen > getInputBlockSize()) in encodeBlock()
158 System.arraycopy(in, inOff, block, block.length - inLen, inLen); in encodeBlock()
163 block[block.length - inLen - 1] = 0x01; in encodeBlock()
217 int inLen) in decodeBlock() argument
220 byte[] data = engine.processBlock(in, inOff, inLen); in decodeBlock()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/crypto/encodings/
DPKCS1Encoding.java177 int inLen) in processBlock() argument
182 return encodeBlock(in, inOff, inLen); in processBlock()
186 return decodeBlock(in, inOff, inLen); in processBlock()
193 int inLen) in encodeBlock() argument
196 if (inLen > getInputBlockSize()) in encodeBlock()
207 for (int i = 1; i != block.length - inLen - 1; i++) in encodeBlock()
222 for (int i = 1; i != block.length - inLen - 1; i++) in encodeBlock()
231 block[block.length - inLen - 1] = 0x00; // mark the end of the padding in encodeBlock()
232 System.arraycopy(in, inOff, block, block.length - inLen, inLen); in encodeBlock()
295 private byte[] decodeBlockOrRandom(byte[] in, int inOff, int inLen) in decodeBlockOrRandom() argument
[all …]
DOAEPEncoding.java131 int inLen) in processBlock() argument
136 return encodeBlock(in, inOff, inLen); in processBlock()
140 return decodeBlock(in, inOff, inLen); in processBlock()
147 int inLen) in encodeBlock() argument
150 if (inLen > getInputBlockSize()) in encodeBlock()
160 System.arraycopy(in, inOff, block, block.length - inLen, inLen); in encodeBlock()
165 block[block.length - inLen - 1] = 0x01; in encodeBlock()
219 int inLen) in decodeBlock() argument
222 byte[] data = engine.processBlock(in, inOff, inLen); in decodeBlock()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/crypto/modes/
DCCMBlockCipher.java133 public int processBytes(byte[] in, int inOff, int inLen, byte[] out, int outOff) in processBytes() argument
136 if (in.length < (inOff + inLen)) in processBytes()
140 data.write(in, inOff, inLen); in processBytes()
204 public byte[] processPacket(byte[] in, int inOff, int inLen) in processPacket() argument
211 output = new byte[inLen + macSize]; in processPacket()
215 if (inLen < macSize) in processPacket()
219 output = new byte[inLen - macSize]; in processPacket()
222 processPacket(in, inOff, inLen, output, 0); in processPacket()
240 public int processPacket(byte[] in, int inOff, int inLen, byte[] output, int outOff) in processPacket() argument
255 if (inLen >= limitLen) in processPacket()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/modes/
DCCMBlockCipher.java133 public int processBytes(byte[] in, int inOff, int inLen, byte[] out, int outOff) in processBytes() argument
136 if (in.length < (inOff + inLen)) in processBytes()
140 data.write(in, inOff, inLen); in processBytes()
204 public byte[] processPacket(byte[] in, int inOff, int inLen) in processPacket() argument
211 output = new byte[inLen + macSize]; in processPacket()
215 if (inLen < macSize) in processPacket()
219 output = new byte[inLen - macSize]; in processPacket()
222 processPacket(in, inOff, inLen, output, 0); in processPacket()
240 public int processPacket(byte[] in, int inOff, int inLen, byte[] output, int outOff) in processPacket() argument
255 if (inLen >= limitLen) in processPacket()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/engines/
DRFC3394WrapEngine.java90 int inLen) in wrap() argument
97 int n = inLen / 8; in wrap()
99 if ((n * 8) != inLen) in wrap()
104 byte[] block = new byte[inLen + iv.length]; in wrap()
108 System.arraycopy(in, inOff, block, iv.length, inLen); in wrap()
141 int inLen) in unwrap() argument
149 int n = inLen / 8; in unwrap()
151 if ((n * 8) != inLen) in unwrap()
156 byte[] block = new byte[inLen - iv.length]; in unwrap()
161 System.arraycopy(in, inOff + iv.length, block, 0, inLen - iv.length); in unwrap()
DRSACoreEngine.java90 int inLen) in convertInput() argument
92 if (inLen > (getInputBlockSize() + 1)) in convertInput()
96 else if (inLen == (getInputBlockSize() + 1) && !forEncryption) in convertInput()
103 if (inOff != 0 || inLen != in.length) in convertInput()
105 block = new byte[inLen]; in convertInput()
107 System.arraycopy(in, inOff, block, 0, inLen); in convertInput()
DDESedeWrapEngine.java142 public byte[] wrap(byte[] in, int inOff, int inLen) in wrap() argument
149 byte keyToBeWrapped[] = new byte[inLen]; in wrap()
151 System.arraycopy(in, inOff, keyToBeWrapped, 0, inLen); in wrap()
214 public byte[] unwrap(byte[] in, int inOff, int inLen) in unwrap() argument
228 if (inLen % blockSize != 0) in unwrap()
255 byte TEMP3[] = new byte[inLen]; in unwrap()
257 for (int currentBytePos = 0; currentBytePos != inLen; currentBytePos += blockSize) in unwrap()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
DRFC3394WrapEngine.java88 int inLen) in wrap() argument
95 int n = inLen / 8; in wrap()
97 if ((n * 8) != inLen) in wrap()
102 byte[] block = new byte[inLen + iv.length]; in wrap()
106 System.arraycopy(in, inOff, block, iv.length, inLen); in wrap()
139 int inLen) in unwrap() argument
147 int n = inLen / 8; in unwrap()
149 if ((n * 8) != inLen) in unwrap()
154 byte[] block = new byte[inLen - iv.length]; in unwrap()
159 System.arraycopy(in, inOff + iv.length, block, 0, inLen - iv.length); in unwrap()
DRSACoreEngine.java89 int inLen) in convertInput() argument
91 if (inLen > (getInputBlockSize() + 1)) in convertInput()
95 else if (inLen == (getInputBlockSize() + 1) && !forEncryption) in convertInput()
102 if (inOff != 0 || inLen != in.length) in convertInput()
104 block = new byte[inLen]; in convertInput()
106 System.arraycopy(in, inOff, block, 0, inLen); in convertInput()
DDESedeWrapEngine.java140 public byte[] wrap(byte[] in, int inOff, int inLen) in wrap() argument
147 byte keyToBeWrapped[] = new byte[inLen]; in wrap()
149 System.arraycopy(in, inOff, keyToBeWrapped, 0, inLen); in wrap()
212 public byte[] unwrap(byte[] in, int inOff, int inLen) in unwrap() argument
226 if (inLen % blockSize != 0) in unwrap()
253 byte TEMP3[] = new byte[inLen]; in unwrap()
255 for (int currentBytePos = 0; currentBytePos != inLen; currentBytePos += blockSize) in unwrap()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/crypto/engines/
DRFC3394WrapEngine.java90 int inLen) in wrap() argument
97 int n = inLen / 8; in wrap()
99 if ((n * 8) != inLen) in wrap()
104 byte[] block = new byte[inLen + iv.length]; in wrap()
108 System.arraycopy(in, inOff, block, iv.length, inLen); in wrap()
141 int inLen) in unwrap() argument
149 int n = inLen / 8; in unwrap()
151 if ((n * 8) != inLen) in unwrap()
156 byte[] block = new byte[inLen - iv.length]; in unwrap()
161 System.arraycopy(in, inOff + iv.length, block, 0, inLen - iv.length); in unwrap()
DRSACoreEngine.java90 int inLen) in convertInput() argument
92 if (inLen > (getInputBlockSize() + 1)) in convertInput()
96 else if (inLen == (getInputBlockSize() + 1) && !forEncryption) in convertInput()
103 if (inOff != 0 || inLen != in.length) in convertInput()
105 block = new byte[inLen]; in convertInput()
107 System.arraycopy(in, inOff, block, 0, inLen); in convertInput()
DDESedeWrapEngine.java142 public byte[] wrap(byte[] in, int inOff, int inLen) in wrap() argument
149 byte keyToBeWrapped[] = new byte[inLen]; in wrap()
151 System.arraycopy(in, inOff, keyToBeWrapped, 0, inLen); in wrap()
214 public byte[] unwrap(byte[] in, int inOff, int inLen) in unwrap() argument
228 if (inLen % blockSize != 0) in unwrap()
255 byte TEMP3[] = new byte[inLen]; in unwrap()
257 for (int currentBytePos = 0; currentBytePos != inLen; currentBytePos += blockSize) in unwrap()
/external/libopus/silk/
Dresampler.c178 …opus_int32 inLen /* I Number of input samples … in silk_resampler() argument
184 celt_assert( inLen >= S->Fs_in_kHz ); in silk_resampler()
196 …silk_resampler_private_up2_HQ_wrapper( S, &out[ S->Fs_out_kHz ], &in[ nSamples ], inLen - S->Fs_in… in silk_resampler()
200 … silk_resampler_private_IIR_FIR( S, &out[ S->Fs_out_kHz ], &in[ nSamples ], inLen - S->Fs_in_kHz ); in silk_resampler()
204 …silk_resampler_private_down_FIR( S, &out[ S->Fs_out_kHz ], &in[ nSamples ], inLen - S->Fs_in_kHz ); in silk_resampler()
208 …silk_memcpy( &out[ S->Fs_out_kHz ], &in[ nSamples ], ( inLen - S->Fs_in_kHz ) * sizeof( opus_int16… in silk_resampler()
212 silk_memcpy( S->delayBuf, &in[ inLen - S->inputDelay ], S->inputDelay * sizeof( opus_int16 ) ); in silk_resampler()
Dresampler_down2_3.c43 …opus_int32 inLen /* I Number of input samples … in silk_resampler_down2_3() argument
58 nSamplesIn = silk_min( inLen, RESAMPLER_MAX_BATCH_SIZE_IN ); in silk_resampler_down2_3()
90 inLen -= nSamplesIn; in silk_resampler_down2_3()
92 if( inLen > 0 ) { in silk_resampler_down2_3()
Dresampler_private_IIR_FIR.c69 opus_int32 inLen /* I Number of input samples */ in silk_resampler_private_IIR_FIR() argument
86 nSamplesIn = silk_min( inLen, S->batchSize ); in silk_resampler_private_IIR_FIR()
94 inLen -= nSamplesIn; in silk_resampler_private_IIR_FIR()
96 if( inLen > 0 ) { in silk_resampler_private_IIR_FIR()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/util/encoders/
DHexEncoder.java50 …public int encode(byte[] inBuf, int inOff, int inLen, byte[] outBuf, int outOff) throws IOException in encode() argument
53 int inEnd = inOff + inLen; in encode()
78 int inLen = Math.min(36, len); in encode() local
79 int outLen = encode(buf, off, inLen, tmp, 0); in encode()
81 off += inLen; in encode()
82 len -= inLen; in encode()
DBase64Encoder.java55 …public int encode(byte[] inBuf, int inOff, int inLen, byte[] outBuf, int outOff) throws IOException in encode() argument
58 int inEnd = inOff + inLen - 2; in encode()
73 switch (inLen - (inPos - inOff)) in encode()
112 int inLen = Math.min(54, len); in encode() local
113 int outLen = encode(buf, off, inLen, tmp, 0); in encode()
115 off += inLen; in encode()
116 len -= inLen; in encode()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/util/encoders/
DHexEncoder.java50 …public int encode(byte[] inBuf, int inOff, int inLen, byte[] outBuf, int outOff) throws IOException in encode() argument
53 int inEnd = inOff + inLen; in encode()
78 int inLen = Math.min(36, len); in encode() local
79 int outLen = encode(buf, off, inLen, tmp, 0); in encode()
81 off += inLen; in encode()
82 len -= inLen; in encode()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/encoders/
DHexEncoder.java48 …public int encode(byte[] inBuf, int inOff, int inLen, byte[] outBuf, int outOff) throws IOException in encode() argument
51 int inEnd = inOff + inLen; in encode()
76 int inLen = Math.min(36, len); in encode() local
77 int outLen = encode(buf, off, inLen, tmp, 0); in encode()
79 off += inLen; in encode()
80 len -= inLen; in encode()

123