Home
last modified time | relevance | path

Searched refs:xOff (Results 1 – 25 of 49) sorted by relevance

12

/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/raw/
DNat256.java45 public static int add(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in add() argument
48 c += (x[xOff + 0] & M) + (y[yOff + 0] & M); in add()
51 c += (x[xOff + 1] & M) + (y[yOff + 1] & M); in add()
54 c += (x[xOff + 2] & M) + (y[yOff + 2] & M); in add()
57 c += (x[xOff + 3] & M) + (y[yOff + 3] & M); in add()
60 c += (x[xOff + 4] & M) + (y[yOff + 4] & M); in add()
63 c += (x[xOff + 5] & M) + (y[yOff + 5] & M); in add()
66 c += (x[xOff + 6] & M) + (y[yOff + 6] & M); in add()
69 c += (x[xOff + 7] & M) + (y[yOff + 7] & M); in add()
105 public static int addBothTo(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in addBothTo() argument
[all …]
DNat224.java42 public static int add(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in add() argument
45 c += (x[xOff + 0] & M) + (y[yOff + 0] & M); in add()
48 c += (x[xOff + 1] & M) + (y[yOff + 1] & M); in add()
51 c += (x[xOff + 2] & M) + (y[yOff + 2] & M); in add()
54 c += (x[xOff + 3] & M) + (y[yOff + 3] & M); in add()
57 c += (x[xOff + 4] & M) + (y[yOff + 4] & M); in add()
60 c += (x[xOff + 5] & M) + (y[yOff + 5] & M); in add()
63 c += (x[xOff + 6] & M) + (y[yOff + 6] & M); in add()
96 public static int addBothTo(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in addBothTo() argument
99 c += (x[xOff + 0] & M) + (y[yOff + 0] & M) + (z[zOff + 0] & M); in addBothTo()
[all …]
DNat192.java87 public static int addTo(int[] x, int xOff, int[] z, int zOff, int cIn) in addTo() argument
90 c += (x[xOff + 0] & M) + (z[zOff + 0] & M); in addTo()
93 c += (x[xOff + 1] & M) + (z[zOff + 1] & M); in addTo()
96 c += (x[xOff + 2] & M) + (z[zOff + 2] & M); in addTo()
99 c += (x[xOff + 3] & M) + (z[zOff + 3] & M); in addTo()
102 c += (x[xOff + 4] & M) + (z[zOff + 4] & M); in addTo()
105 c += (x[xOff + 5] & M) + (z[zOff + 5] & M); in addTo()
151 public static void copy(int[] x, int xOff, int[] z, int zOff) in copy() argument
153 z[zOff + 0] = x[xOff + 0]; in copy()
154 z[zOff + 1] = x[xOff + 1]; in copy()
[all …]
DNat.java85 public static int addBothTo(int len, int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in addBothTo() argument
90 c += (x[xOff + i] & M) + (y[yOff + i] & M) + (z[zOff + i] & M); in addBothTo()
155 public static int addTo(int len, int[] x, int xOff, int[] z, int zOff) in addTo() argument
160 c += (x[xOff + i] & M) + (z[zOff + i] & M); in addTo()
214 public static void cmov(int len, int mask, int[] x, int xOff, int[] z, int zOff) in cmov() argument
220 int z_i = z[zOff + i], diff = z_i ^ x[xOff + i]; in cmov()
248 public static void copy(int len, int[] x, int xOff, int[] z, int zOff) in copy() argument
250 System.arraycopy(x, xOff, z, zOff, len); in copy()
491 public static void mul(int len, int[] x, int xOff, int[] y, int yOff, int[] zz, int zzOff) in mul() argument
493 zz[zzOff + len] = mulWord(len, x[xOff], y, yOff, zz, zzOff); in mul()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/raw/
DNat256.java41 public static int add(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in add() argument
44 c += (x[xOff + 0] & M) + (y[yOff + 0] & M); in add()
47 c += (x[xOff + 1] & M) + (y[yOff + 1] & M); in add()
50 c += (x[xOff + 2] & M) + (y[yOff + 2] & M); in add()
53 c += (x[xOff + 3] & M) + (y[yOff + 3] & M); in add()
56 c += (x[xOff + 4] & M) + (y[yOff + 4] & M); in add()
59 c += (x[xOff + 5] & M) + (y[yOff + 5] & M); in add()
62 c += (x[xOff + 6] & M) + (y[yOff + 6] & M); in add()
65 c += (x[xOff + 7] & M) + (y[yOff + 7] & M); in add()
101 public static int addBothTo(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in addBothTo() argument
[all …]
DNat224.java38 public static int add(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in add() argument
41 c += (x[xOff + 0] & M) + (y[yOff + 0] & M); in add()
44 c += (x[xOff + 1] & M) + (y[yOff + 1] & M); in add()
47 c += (x[xOff + 2] & M) + (y[yOff + 2] & M); in add()
50 c += (x[xOff + 3] & M) + (y[yOff + 3] & M); in add()
53 c += (x[xOff + 4] & M) + (y[yOff + 4] & M); in add()
56 c += (x[xOff + 5] & M) + (y[yOff + 5] & M); in add()
59 c += (x[xOff + 6] & M) + (y[yOff + 6] & M); in add()
92 public static int addBothTo(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in addBothTo() argument
95 c += (x[xOff + 0] & M) + (y[yOff + 0] & M) + (z[zOff + 0] & M); in addBothTo()
[all …]
DNat192.java83 public static int addTo(int[] x, int xOff, int[] z, int zOff, int cIn) in addTo() argument
86 c += (x[xOff + 0] & M) + (z[zOff + 0] & M); in addTo()
89 c += (x[xOff + 1] & M) + (z[zOff + 1] & M); in addTo()
92 c += (x[xOff + 2] & M) + (z[zOff + 2] & M); in addTo()
95 c += (x[xOff + 3] & M) + (z[zOff + 3] & M); in addTo()
98 c += (x[xOff + 4] & M) + (z[zOff + 4] & M); in addTo()
101 c += (x[xOff + 5] & M) + (z[zOff + 5] & M); in addTo()
147 public static void copy(int[] x, int xOff, int[] z, int zOff) in copy() argument
149 z[zOff + 0] = x[xOff + 0]; in copy()
150 z[zOff + 1] = x[xOff + 1]; in copy()
[all …]
DNat.java81 public static int addBothTo(int len, int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in addBothTo() argument
86 c += (x[xOff + i] & M) + (y[yOff + i] & M) + (z[zOff + i] & M); in addBothTo()
151 public static int addTo(int len, int[] x, int xOff, int[] z, int zOff) in addTo() argument
156 c += (x[xOff + i] & M) + (z[zOff + i] & M); in addTo()
210 public static void cmov(int len, int mask, int[] x, int xOff, int[] z, int zOff) in cmov() argument
216 int z_i = z[zOff + i], diff = z_i ^ x[xOff + i]; in cmov()
244 public static void copy(int len, int[] x, int xOff, int[] z, int zOff) in copy() argument
246 System.arraycopy(x, xOff, z, zOff, len); in copy()
487 public static void mul(int len, int[] x, int xOff, int[] y, int yOff, int[] zz, int zzOff) in mul() argument
489 zz[zzOff + len] = mulWord(len, x[xOff], y, yOff, zz, zzOff); in mul()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/digests/
DSHA1Digest.java23 private int xOff; field in SHA1Digest
59 xOff = Pack.bigEndianToInt(encodedState, 36); in SHA1Digest()
60 for (int i = 0; i != xOff; i++) in SHA1Digest()
75 xOff = t.xOff; in copyIn()
98 X[xOff] = n; in processWord()
100 if (++xOff == 16) in processWord()
109 if (xOff > 14) in processLength()
148 xOff = 0; in reset()
311 xOff = 0; in processBlock()
333 byte[] state = new byte[40 + xOff * 4]; in getEncodedState()
[all …]
DSHA256Digest.java30 private int xOff; field in SHA256Digest
65 xOff = t.xOff; in copyIn()
86 xOff = Pack.bigEndianToInt(encodedState, 48); in SHA256Digest()
87 for (int i = 0; i != xOff; i++) in SHA256Digest()
114 X[xOff] = n; in processWord()
116 if (++xOff == 16) in processWord()
125 if (xOff > 14) in processLength()
175 xOff = 0; in reset()
268 xOff = 0; in processBlock()
345 byte[] state = new byte[52 + xOff * 4]; in getEncodedState()
[all …]
DSHA224Digest.java30 private int xOff; field in SHA224Digest
65 xOff = t.xOff; in doCopy()
86 xOff = Pack.bigEndianToInt(encodedState, 48); in SHA224Digest()
87 for (int i = 0; i != xOff; i++) in SHA224Digest()
113 X[xOff] = n; in processWord()
115 if (++xOff == 16) in processWord()
124 if (xOff > 14) in processLength()
171 xOff = 0; in reset()
265 xOff = 0; in processBlock()
341 byte[] state = new byte[52 + xOff * 4]; in getEncodedState()
[all …]
DMD5Digest.java21 private int xOff; field in MD5Digest
40 xOff = Pack.bigEndianToInt(encodedState, 32); in MD5Digest()
41 for (int i = 0; i != xOff; i++) in MD5Digest()
68 xOff = t.xOff; in copyIn()
85 X[xOff++] = (in[inOff] & 0xff) | ((in[inOff + 1] & 0xff) << 8) in processWord()
88 if (xOff == 16) in processWord()
97 if (xOff > 14) in processLength()
145 xOff = 0; in reset()
325 xOff = 0; in processBlock()
346 byte[] state = new byte[36 + xOff * 4]; in getEncodedState()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/digests/
DSHA1Digest.java21 private int xOff; field in SHA1Digest
57 xOff = Pack.bigEndianToInt(encodedState, 36); in SHA1Digest()
58 for (int i = 0; i != xOff; i++) in SHA1Digest()
73 xOff = t.xOff; in copyIn()
96 X[xOff] = n; in processWord()
98 if (++xOff == 16) in processWord()
107 if (xOff > 14) in processLength()
146 xOff = 0; in reset()
309 xOff = 0; in processBlock()
331 byte[] state = new byte[40 + xOff * 4]; in getEncodedState()
[all …]
DSHA224Digest.java28 private int xOff; field in SHA224Digest
63 xOff = t.xOff; in doCopy()
84 xOff = Pack.bigEndianToInt(encodedState, 48); in SHA224Digest()
85 for (int i = 0; i != xOff; i++) in SHA224Digest()
111 X[xOff] = n; in processWord()
113 if (++xOff == 16) in processWord()
122 if (xOff > 14) in processLength()
169 xOff = 0; in reset()
263 xOff = 0; in processBlock()
339 byte[] state = new byte[52 + xOff * 4]; in getEncodedState()
[all …]
DSHA256Digest.java28 private int xOff; field in SHA256Digest
63 xOff = t.xOff; in copyIn()
84 xOff = Pack.bigEndianToInt(encodedState, 48); in SHA256Digest()
85 for (int i = 0; i != xOff; i++) in SHA256Digest()
112 X[xOff] = n; in processWord()
114 if (++xOff == 16) in processWord()
123 if (xOff > 14) in processLength()
173 xOff = 0; in reset()
266 xOff = 0; in processBlock()
343 byte[] state = new byte[52 + xOff * 4]; in getEncodedState()
[all …]
DMD5Digest.java19 private int xOff; field in MD5Digest
38 xOff = Pack.bigEndianToInt(encodedState, 32); in MD5Digest()
39 for (int i = 0; i != xOff; i++) in MD5Digest()
66 xOff = t.xOff; in copyIn()
83 X[xOff++] = (in[inOff] & 0xff) | ((in[inOff + 1] & 0xff) << 8) in processWord()
86 if (xOff == 16) in processWord()
95 if (xOff > 14) in processLength()
143 xOff = 0; in reset()
323 xOff = 0; in processBlock()
344 byte[] state = new byte[36 + xOff * 4]; in getEncodedState()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DLongArray.java593 private static long shiftUp(long[] x, int xOff, int count, int shift) in shiftUp() argument
599 long next = x[xOff + i]; in shiftUp()
600 x[xOff + i] = (next << shift) | prev; in shiftUp()
606 private static long shiftUp(long[] x, int xOff, long[] z, int zOff, int count, int shift) in shiftUp() argument
612 long next = x[xOff + i]; in shiftUp()
679 private static long addShiftedUp(long[] x, int xOff, long[] y, int yOff, int count, int shift) in addShiftedUp() argument
686 x[xOff + i] ^= (next << shift) | prev; in addShiftedUp()
692 private static long addShiftedDown(long[] x, int xOff, long[] y, int yOff, int count, int shift) in addShiftedDown() argument
700 x[xOff + i] ^= (next >>> shift) | prev; in addShiftedDown()
723 private static void add(long[] x, int xOff, long[] y, int yOff, int count) in add() argument
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/
DLongArray.java594 private static long shiftUp(long[] x, int xOff, int count, int shift) in shiftUp() argument
600 long next = x[xOff + i]; in shiftUp()
601 x[xOff + i] = (next << shift) | prev; in shiftUp()
607 private static long shiftUp(long[] x, int xOff, long[] z, int zOff, int count, int shift) in shiftUp() argument
613 long next = x[xOff + i]; in shiftUp()
680 private static long addShiftedUp(long[] x, int xOff, long[] y, int yOff, int count, int shift) in addShiftedUp() argument
687 x[xOff + i] ^= (next << shift) | prev; in addShiftedUp()
693 private static long addShiftedDown(long[] x, int xOff, long[] y, int yOff, int count, int shift) in addShiftedDown() argument
701 x[xOff + i] ^= (next >>> shift) | prev; in addShiftedDown()
724 private static void add(long[] x, int xOff, long[] y, int yOff, int count) in add() argument
[all …]
/external/skia/gm/
Dnested.cpp94 SkScalar xOff = 2, yOff = 2; in onDraw() local
107 canvas->translate(xOff, -yOff - 40.0f); in onDraw()
109 canvas->translate(xOff, yOff); in onDraw()
115 xOff += 45; in onDraw()
119 xOff = 2; in onDraw()
Danisotropic.cpp85 int xOff, yOff; in onDraw() local
87 xOff = fBM.width() + 2*kSpacer; in onDraw()
91 xOff = fBM.width() + 2*kSpacer + fBM.width() - width; in onDraw()
95 this->draw(canvas, xOff, yOff, width, fBM.height()); in onDraw()
Dsimpleaaclip.cpp160 int xOff = 0; in onDraw() local
171 if (xOff >= 400) { in onDraw()
173 xOff = 0; in onDraw()
176 xOff += 200; in onDraw()
/external/skqp/gm/
Dnested.cpp94 SkScalar xOff = 2, yOff = 2; in onDraw() local
107 canvas->translate(xOff, -yOff - 40.0f); in onDraw()
109 canvas->translate(xOff, yOff); in onDraw()
115 xOff += 45; in onDraw()
119 xOff = 2; in onDraw()
Danisotropic.cpp85 int xOff, yOff; in onDraw() local
87 xOff = fBM.width() + 2*kSpacer; in onDraw()
91 xOff = fBM.width() + 2*kSpacer + fBM.width() - width; in onDraw()
95 this->draw(canvas, xOff, yOff, width, fBM.height()); in onDraw()
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/selector/
DMSOutlookKeyIdCalculator.java172 private int xOff; field in MSOutlookKeyIdCalculator.SHA1Digest
202 X[xOff] = n; in processWord()
204 if (++xOff == 16) in processWord()
213 if (xOff > 14) in processLength()
252 xOff = 0; in reset()
415 xOff = 0; in processBlock()
/external/skia/tools/
DDDLTileHelper.cpp111 for (int x = 0, xOff = 0; x < fNumDivisions; ++x, xOff += xTileSize) { in DDLTileHelper() local
112 int xSize = (x < fNumDivisions-1) ? xTileSize : viewport.width()-xOff; in DDLTileHelper()
114 SkIRect clip = SkIRect::MakeXYWH(xOff, yOff, xSize, ySize); in DDLTileHelper()

12