Home
last modified time | relevance | path

Searched refs:inputOffset (Results 1 – 25 of 54) sorted by relevance

123

/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLSignatureRawRSA.java50 private int inputOffset; field in OpenSSLSignatureRawRSA
61 final int oldOffset = inputOffset++; in engineUpdate()
63 if (inputOffset > inputBuffer.length) { in engineUpdate()
73 final int oldOffset = inputOffset; in engineUpdate()
74 inputOffset += len; in engineUpdate()
76 if (inputOffset > inputBuffer.length) { in engineUpdate()
108 inputOffset = 0; in engineInitSign()
126 inputOffset = 0; in engineInitVerify()
142 throw new SignatureException("input length " + inputOffset + " != " in engineSign()
148 NativeCrypto.RSA_private_encrypt(inputOffset, inputBuffer, outputBuffer, in engineSign()
[all …]
DOpenSSLAeadCipher.java275 protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, in engineDoFinal() argument
287 return super.engineDoFinal(input, inputOffset, inputLen, output, outputOffset); in engineDoFinal()
291 int updateInternal(byte[] input, int inputOffset, int inputLen, byte[] output, in updateInternal() argument
298 ArrayUtils.checkOffsetAndCount(input.length, inputOffset, inputLen); in updateInternal()
301 System.arraycopy(input, inputOffset, buf, this.bufCount, inputLen); in updateInternal()
404 protected void engineUpdateAAD(byte[] input, int inputOffset, int inputLen) { in engineUpdateAAD() argument
407 aad = Arrays.copyOfRange(input, inputOffset, inputOffset + inputLen); in engineUpdateAAD()
412 System.arraycopy(input, inputOffset, newaad, aad.length, inputLen); in engineUpdateAAD()
DOpenSSLCipher.java153 abstract int updateInternal(byte[] input, int inputOffset, int inputLen, in updateInternal() argument
319 protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) { in engineUpdate() argument
332 bytesWritten = updateInternal(input, inputOffset, inputLen, output, 0, maximumLen); in engineUpdate()
348 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, in engineUpdate() argument
351 return updateInternal(input, inputOffset, inputLen, output, outputOffset, maximumLen); in engineUpdate()
355 protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) in engineDoFinal() argument
364 bytesWritten = updateInternal(input, inputOffset, inputLen, output, 0, maximumLen); in engineDoFinal()
390 protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, in engineDoFinal() argument
401 bytesWritten = updateInternal(input, inputOffset, inputLen, output, outputOffset, in engineDoFinal()
DOpenSSLCipherChaCha20.java73 int updateInternal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset, in updateInternal() argument
85 System.arraycopy(input, inputOffset, singleBlock, currentBlockConsumedBytes, len); in updateInternal()
96 inputOffset += len; in updateInternal()
101 NativeCrypto.chacha20_encrypt_decrypt(input, inputOffset, output, in updateInternal()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLSignatureRawRSA.java48 private int inputOffset; field in OpenSSLSignatureRawRSA
59 final int oldOffset = inputOffset++; in engineUpdate()
61 if (inputOffset > inputBuffer.length) { in engineUpdate()
71 final int oldOffset = inputOffset; in engineUpdate()
72 inputOffset += len; in engineUpdate()
74 if (inputOffset > inputBuffer.length) { in engineUpdate()
106 inputOffset = 0; in engineInitSign()
124 inputOffset = 0; in engineInitVerify()
140 throw new SignatureException("input length " + inputOffset + " != " in engineSign()
146 NativeCrypto.RSA_private_encrypt(inputOffset, inputBuffer, outputBuffer, in engineSign()
[all …]
DOpenSSLCipher.java151 abstract int updateInternal(byte[] input, int inputOffset, int inputLen, in updateInternal() argument
317 protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) { in engineUpdate() argument
330 bytesWritten = updateInternal(input, inputOffset, inputLen, output, 0, maximumLen); in engineUpdate()
346 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, in engineUpdate() argument
349 return updateInternal(input, inputOffset, inputLen, output, outputOffset, maximumLen); in engineUpdate()
353 protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) in engineDoFinal() argument
362 bytesWritten = updateInternal(input, inputOffset, inputLen, output, 0, maximumLen); in engineDoFinal()
388 protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, in engineDoFinal() argument
399 bytesWritten = updateInternal(input, inputOffset, inputLen, output, outputOffset, in engineDoFinal()
DOpenSSLAeadCipher.java272 protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, in engineDoFinal() argument
284 return super.engineDoFinal(input, inputOffset, inputLen, output, outputOffset); in engineDoFinal()
288 int updateInternal(byte[] input, int inputOffset, int inputLen, byte[] output, in updateInternal() argument
295 ArrayUtils.checkOffsetAndCount(input.length, inputOffset, inputLen); in updateInternal()
298 System.arraycopy(input, inputOffset, buf, this.bufCount, inputLen); in updateInternal()
401 protected void engineUpdateAAD(byte[] input, int inputOffset, int inputLen) { in engineUpdateAAD() argument
404 aad = Arrays.copyOfRange(input, inputOffset, inputOffset + inputLen); in engineUpdateAAD()
409 System.arraycopy(input, inputOffset, newaad, aad.length, inputLen); in engineUpdateAAD()
DOpenSSLCipherChaCha20.java71 int updateInternal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset, in updateInternal() argument
83 System.arraycopy(input, inputOffset, singleBlock, currentBlockConsumedBytes, len); in updateInternal()
94 inputOffset += len; in updateInternal()
99 NativeCrypto.chacha20_encrypt_decrypt(input, inputOffset, output, in updateInternal()
/external/zxing/qr_scanner/src/com/google/zxing/client/android/
DPlanarYUVLuminanceSource.java86 int inputOffset = top * dataWidth + left; in getMatrix() local
90 System.arraycopy(yuvData, inputOffset, matrix, 0, area); in getMatrix()
98 System.arraycopy(yuv, inputOffset, matrix, outputOffset, width); in getMatrix()
99 inputOffset += dataWidth; in getMatrix()
114 int inputOffset = top * dataWidth + left; in renderCroppedGreyscaleBitmap() local
119 int grey = yuv[inputOffset + x] & 0xff; in renderCroppedGreyscaleBitmap()
122 inputOffset += dataWidth; in renderCroppedGreyscaleBitmap()
/external/skia/src/effects/imagefilters/
DSkColorFilterImageFilter.cpp88 SkIPoint inputOffset = SkIPoint::Make(0, 0); in onFilterImage() local
89 sk_sp<SkSpecialImage> input(this->filterInput(0, ctx, &inputOffset)); in onFilterImage()
98 inputBounds = SkIRect::MakeXYWH(inputOffset.x(), inputOffset.y(), in onFilterImage()
134 SkIntToScalar(inputOffset.fX - bounds.fLeft), in onFilterImage()
135 SkIntToScalar(inputOffset.fY - bounds.fTop), in onFilterImage()
DSkAlphaThresholdImageFilter.cpp131 SkIPoint inputOffset = SkIPoint::Make(0, 0); in onFilterImage() local
132 sk_sp<SkSpecialImage> input(this->filterInput(0, ctx, &inputOffset)); in onFilterImage()
137 const SkIRect inputBounds = SkIRect::MakeXYWH(inputOffset.x(), inputOffset.y(), in onFilterImage()
156 bounds.offset(-inputOffset); in onFilterImage()
222 SkIPoint srcOffset = { bounds.fLeft - inputOffset.fX, bounds.fTop - inputOffset.fY }; in onFilterImage()
DSkBlurImageFilter.cpp57 SkIRect inputBounds, SkIRect dstBounds, SkIPoint inputOffset, SkIPoint* offset) const;
534 SkIPoint inputOffset = SkIPoint::Make(0, 0); in onFilterImage() local
536 sk_sp<SkSpecialImage> input(this->filterInput(0, ctx, &inputOffset)); in onFilterImage()
541 SkIRect inputBounds = SkIRect::MakeXYWH(inputOffset.fX, inputOffset.fY, in onFilterImage()
557 inputBounds.offset(-inputOffset); in onFilterImage()
558 dstBounds.offset(-inputOffset); in onFilterImage()
572 result = this->gpuFilter(ctx, sigma, input, inputBounds, dstBounds, inputOffset, in onFilterImage()
607 SkIRect dstBounds, SkIPoint inputOffset, SkIPoint* offset) const { in gpuFilter() argument
610 offset->fX = inputBounds.x() + inputOffset.fX; in gpuFilter()
611 offset->fY = inputBounds.y() + inputOffset.fY; in gpuFilter()
DSkDropShadowImageFilter.cpp110 SkIPoint inputOffset = SkIPoint::Make(0, 0); in onFilterImage() local
111 sk_sp<SkSpecialImage> input(this->filterInput(0, ctx, &inputOffset)); in onFilterImage()
116 const SkIRect inputBounds = SkIRect::MakeXYWH(inputOffset.x(), inputOffset.y(), in onFilterImage()
146 canvas->translate(SkIntToScalar(inputOffset.fX) - SkIntToScalar(bounds.fLeft), in onFilterImage()
147 SkIntToScalar(inputOffset.fY) - SkIntToScalar(bounds.fTop)); in onFilterImage()
/external/skqp/src/effects/imagefilters/
DSkColorFilterImageFilter.cpp64 SkIPoint inputOffset = SkIPoint::Make(0, 0); in onFilterImage() local
65 sk_sp<SkSpecialImage> input(this->filterInput(0, source, ctx, &inputOffset)); in onFilterImage()
74 inputBounds = SkIRect::MakeXYWH(inputOffset.x(), inputOffset.y(), in onFilterImage()
110 SkIntToScalar(inputOffset.fX - bounds.fLeft), in onFilterImage()
111 SkIntToScalar(inputOffset.fY - bounds.fTop), in onFilterImage()
DSkDropShadowImageFilter.cpp69 SkIPoint inputOffset = SkIPoint::Make(0, 0); in onFilterImage() local
70 sk_sp<SkSpecialImage> input(this->filterInput(0, source, ctx, &inputOffset)); in onFilterImage()
75 const SkIRect inputBounds = SkIRect::MakeXYWH(inputOffset.x(), inputOffset.y(), in onFilterImage()
105 canvas->translate(SkIntToScalar(inputOffset.fX - bounds.fLeft), in onFilterImage()
106 SkIntToScalar(inputOffset.fY - bounds.fTop)); in onFilterImage()
DSkTileImageFilter.cpp46 SkIPoint inputOffset = SkIPoint::Make(0, 0); in onFilterImage() local
47 sk_sp<SkSpecialImage> input(this->filterInput(0, source, ctx, &inputOffset)); in onFilterImage()
67 srcIRect.offset(-inputOffset); in onFilterImage()
91 SkIntToScalar(inputOffset.x()), SkIntToScalar(inputOffset.y()), in onFilterImage()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
DBaseStreamCipher.java357 int inputOffset, in engineUpdate() argument
362 cipher.processBytes(input, inputOffset, inputLen, out, 0); in engineUpdate()
369 int inputOffset, in engineUpdate() argument
382 cipher.processBytes(input, inputOffset, inputLen, output, outputOffset); in engineUpdate()
395 int inputOffset, in engineDoFinal() argument
400 byte[] out = engineUpdate(input, inputOffset, inputLen); in engineDoFinal()
414 int inputOffset, in engineDoFinal() argument
427 cipher.processBytes(input, inputOffset, inputLen, output, outputOffset); in engineDoFinal()
DBaseWrapCipher.java319 int inputOffset, in engineUpdate() argument
327 wrapStream.write(input, inputOffset, inputLen); in engineUpdate()
334 int inputOffset, in engineUpdate() argument
345 wrapStream.write(input, inputOffset, inputLen); in engineUpdate()
352 int inputOffset, in engineDoFinal() argument
363 wrapStream.write(input, inputOffset, inputLen); in engineDoFinal()
399 int inputOffset, in engineDoFinal() argument
410 wrapStream.write(input, inputOffset, inputLen); in engineDoFinal()
/external/conscrypt/testing/src/main/java/org/conscrypt/testing/
DOpaqueProvider.java224 protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) { in engineUpdate() argument
225 return delegate.update(input, inputOffset, inputLen); in engineUpdate()
229 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, in engineUpdate() argument
231 return delegate.update(input, inputOffset, inputLen, output, outputOffset); in engineUpdate()
235 protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) in engineDoFinal() argument
237 return delegate.doFinal(input, inputOffset, inputLen); in engineDoFinal()
242 byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) in engineDoFinal() argument
244 return delegate.doFinal(input, inputOffset, inputLen, output, outputOffset); in engineDoFinal()
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/testing/
DOpaqueProvider.java235 protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) { in engineUpdate() argument
236 return delegate.update(input, inputOffset, inputLen); in engineUpdate()
240 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, in engineUpdate() argument
242 return delegate.update(input, inputOffset, inputLen, output, outputOffset); in engineUpdate()
246 protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) in engineDoFinal() argument
248 return delegate.doFinal(input, inputOffset, inputLen); in engineDoFinal()
253 byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) in engineDoFinal() argument
255 return delegate.doFinal(input, inputOffset, inputLen, output, outputOffset); in engineDoFinal()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/symmetric/util/
DBaseStreamCipher.java361 int inputOffset, in engineUpdate() argument
366 cipher.processBytes(input, inputOffset, inputLen, out, 0); in engineUpdate()
373 int inputOffset, in engineUpdate() argument
386 cipher.processBytes(input, inputOffset, inputLen, output, outputOffset); in engineUpdate()
399 int inputOffset, in engineDoFinal() argument
404 byte[] out = engineUpdate(input, inputOffset, inputLen); in engineDoFinal()
418 int inputOffset, in engineDoFinal() argument
431 cipher.processBytes(input, inputOffset, inputLen, output, outputOffset); in engineDoFinal()
DBaseWrapCipher.java323 int inputOffset, in engineUpdate() argument
331 wrapStream.write(input, inputOffset, inputLen); in engineUpdate()
338 int inputOffset, in engineUpdate() argument
349 wrapStream.write(input, inputOffset, inputLen); in engineUpdate()
356 int inputOffset, in engineDoFinal() argument
367 wrapStream.write(input, inputOffset, inputLen); in engineDoFinal()
403 int inputOffset, in engineDoFinal() argument
414 wrapStream.write(input, inputOffset, inputLen); in engineDoFinal()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/symmetric/util/
DBaseStreamCipher.java361 int inputOffset, in engineUpdate() argument
366 cipher.processBytes(input, inputOffset, inputLen, out, 0); in engineUpdate()
373 int inputOffset, in engineUpdate() argument
386 cipher.processBytes(input, inputOffset, inputLen, output, outputOffset); in engineUpdate()
399 int inputOffset, in engineDoFinal() argument
404 byte[] out = engineUpdate(input, inputOffset, inputLen); in engineDoFinal()
418 int inputOffset, in engineDoFinal() argument
431 cipher.processBytes(input, inputOffset, inputLen, output, outputOffset); in engineDoFinal()
DBaseWrapCipher.java323 int inputOffset, in engineUpdate() argument
331 wrapStream.write(input, inputOffset, inputLen); in engineUpdate()
338 int inputOffset, in engineUpdate() argument
349 wrapStream.write(input, inputOffset, inputLen); in engineUpdate()
356 int inputOffset, in engineDoFinal() argument
367 wrapStream.write(input, inputOffset, inputLen); in engineDoFinal()
403 int inputOffset, in engineDoFinal() argument
414 wrapStream.write(input, inputOffset, inputLen); in engineDoFinal()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DCipherSpi.java418 int inputOffset, in engineUpdate() argument
421 bOut.write(input, inputOffset, inputLen); in engineUpdate()
443 int inputOffset, in engineUpdate() argument
448 bOut.write(input, inputOffset, inputLen); in engineUpdate()
470 int inputOffset, in engineDoFinal() argument
476 bOut.write(input, inputOffset, inputLen); in engineDoFinal()
499 int inputOffset, in engineDoFinal() argument
512 bOut.write(input, inputOffset, inputLen); in engineDoFinal()

123