/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/raw/ |
D | Nat.java | 35 public static int add33At(int len, int x, int[] z, int zOff, int zPos) in add33At() argument 38 long c = (z[zOff + zPos] & M) + (x & M); in add33At() 39 z[zOff + zPos] = (int)c; in add33At() 41 c += (z[zOff + zPos + 1] & M) + 1L; in add33At() 42 z[zOff + zPos + 1] = (int)c; in add33At() 44 return c == 0 ? 0 : incAt(len, z, zOff, zPos + 2); in add33At() 58 public static int add33To(int len, int x, int[] z, int zOff) in add33To() argument 60 long c = (z[zOff + 0] & M) + (x & M); in add33To() 61 z[zOff + 0] = (int)c; in add33To() 63 c += (z[zOff + 1] & M) + 1L; in add33To() [all …]
|
D | Nat256.java | 41 public static int add(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in add() argument 45 z[zOff + 0] = (int)c; in add() 48 z[zOff + 1] = (int)c; in add() 51 z[zOff + 2] = (int)c; in add() 54 z[zOff + 3] = (int)c; in add() 57 z[zOff + 4] = (int)c; in add() 60 z[zOff + 5] = (int)c; in add() 63 z[zOff + 6] = (int)c; in add() 66 z[zOff + 7] = (int)c; in add() 101 public static int addBothTo(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in addBothTo() argument [all …]
|
D | Nat224.java | 38 public static int add(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) in add() argument 42 z[zOff + 0] = (int)c; in add() 45 z[zOff + 1] = (int)c; in add() 48 z[zOff + 2] = (int)c; in add() 51 z[zOff + 3] = (int)c; in add() 54 z[zOff + 4] = (int)c; in add() 57 z[zOff + 5] = (int)c; in add() 60 z[zOff + 6] = (int)c; 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 …]
|
D | Nat192.java | 83 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() 87 z[zOff + 0] = (int)c; in addTo() 89 c += (x[xOff + 1] & M) + (z[zOff + 1] & M); in addTo() 90 z[zOff + 1] = (int)c; in addTo() 92 c += (x[xOff + 2] & M) + (z[zOff + 2] & M); in addTo() 93 z[zOff + 2] = (int)c; in addTo() 95 c += (x[xOff + 3] & M) + (z[zOff + 3] & M); in addTo() 96 z[zOff + 3] = (int)c; in addTo() 98 c += (x[xOff + 4] & M) + (z[zOff + 4] & M); in addTo() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
D | LongArray.java | 601 private static long shiftUp(long[] x, int xOff, long[] z, int zOff, int count, int shift) in shiftUp() argument 608 z[zOff + i] = (next << shift) | prev; in shiftUp() 726 private static void add(long[] x, int xOff, long[] y, int yOff, long[] z, int zOff, int count) in add() argument 730 z[zOff + i] = x[xOff + i] ^ y[yOff + i]; in add() 1735 private static void interleave(long[] x, int xOff, long[] z, int zOff, int count, int width) in interleave() argument 1740 interleave3(x, xOff, z, zOff, count); in interleave() 1743 interleave5(x, xOff, z, zOff, count); in interleave() 1746 interleave7(x, xOff, z, zOff, count); in interleave() 1749 interleave2_n(x, xOff, z, zOff, count, bitLengths[width] - 1); in interleave() 1754 private static void interleave3(long[] x, int xOff, long[] z, int zOff, int count) in interleave3() argument [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/encodings/ |
D | OAEPEncoding.java | 322 int zOff, in maskGeneratorFunction1() argument 337 mgf1Hash.update(Z, zOff, zLen); in maskGeneratorFunction1() 350 mgf1Hash.update(Z, zOff, zLen); in maskGeneratorFunction1()
|