Home
last modified time | relevance | path

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

123

/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 …]
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()
163 public static int addTo(int len, int[] x, int xOff, int[] z, int zOff, int cIn) in addTo() argument
168 c += (x[xOff + i] & M) + (z[zOff + i] & M); in addTo()
235 public static void cmov(int len, int mask, int[] x, int xOff, int[] z, int zOff) in cmov() argument
241 int z_i = z[zOff + i], diff = z_i ^ x[xOff + i]; in cmov()
271 public static int compare(int len, int[] x, int xOff, int[] y, int yOff) in compare() argument
275 int x_i = x[xOff + i] ^ Integer.MIN_VALUE; in compare()
[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 …]
/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 …]
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()
167 public static int addTo(int len, int[] x, int xOff, int[] z, int zOff, int cIn) in addTo() argument
172 c += (x[xOff + i] & M) + (z[zOff + i] & M); in addTo()
239 public static void cmov(int len, int mask, int[] x, int xOff, int[] z, int zOff) in cmov() argument
245 int z_i = z[zOff + i], diff = z_i ^ x[xOff + i]; in cmov()
275 public static int compare(int len, int[] x, int xOff, int[] y, int yOff) in compare() argument
279 int x_i = x[xOff + i] ^ Integer.MIN_VALUE; in compare()
[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 …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/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 …]
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()
167 public static int addTo(int len, int[] x, int xOff, int[] z, int zOff, int cIn) in addTo() argument
172 c += (x[xOff + i] & M) + (z[zOff + i] & M); in addTo()
239 public static void cmov(int len, int mask, int[] x, int xOff, int[] z, int zOff) in cmov() argument
245 int z_i = z[zOff + i], diff = z_i ^ x[xOff + i]; in cmov()
275 public static int compare(int len, int[] x, int xOff, int[] y, int yOff) in compare() argument
279 int x_i = x[xOff + i] ^ Integer.MIN_VALUE; in compare()
[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 …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/digests/
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()
337 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 …]
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 …]
/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 …]
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()
335 byte[] state = new byte[52 + 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 …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/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 …]
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 …]
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()
337 byte[] state = new byte[52 + xOff * 4]; in getEncodedState()
[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/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_platform/bcprov/src/main/java/com/android/internal/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.cpp102 SkScalar xOff = 2, yOff = 2; in onDraw() local
115 canvas->translate(xOff, -yOff - 40.0f); in onDraw()
117 canvas->translate(xOff, yOff); in onDraw()
123 xOff += 45; in onDraw()
127 xOff = 2; in onDraw()

123