HomeSort by relevance Sort by last modified time
    Searched defs:modulus (Results 1 - 25 of 46) sorted by null

1 2

  /external/bouncycastle/src/main/java/org/bouncycastle/crypto/params/
RSAKeyParameters.java 8 private BigInteger modulus; field in class:RSAKeyParameters
13 BigInteger modulus,
18 this.modulus = modulus;
24 return modulus;
  /external/dropbear/libtomcrypt/src/pk/ecc/
ecc_test.c 32 void *modulus, *order; local
36 if ((err = mp_init_multi(&modulus, &order, NULL)) != CRYPT_OK) {
43 mp_clear_multi(modulus, order, NULL);
53 if ((err = mp_read_radix(modulus, (char *)ltc_ecc_sets[i].prime, 16)) != CRYPT_OK) { goto done; }
57 if ((err = mp_prime_is_prime(modulus, 8, &primality)) != CRYPT_OK) { goto done; }
76 if ((err = ltc_mp.ecc_ptmul(order, G, GG, modulus, 1)) != CRYPT_OK) { goto done; }
86 mp_clear_multi(order, modulus, NULL);
  /external/dropbear/libtommath/etc/
mont.c 6 mp_int modulus, R, p, pp; local
11 mp_init_multi(&modulus, &R, &p, &pp, NULL);
17 /* make up the odd modulus */
18 mp_rand(&modulus, x);
19 modulus.dp[0] |= 1;
22 mp_montgomery_calc_normalization(&R, &modulus);
23 mp_montgomery_setup(&modulus, &mp);
29 mp_montgomery_reduce(&pp, &modulus, mp);
  /libcore/luni/src/main/java/java/security/spec/
RSAPrivateKeySpec.java 30 // Modulus
31 private final BigInteger modulus; field in class:RSAPrivateKeySpec
36 * Creates a new {@code RSAPrivateKeySpec} with the specified modulus and
39 * @param modulus
40 * the modulus {@code n}.
44 public RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent) {
45 this.modulus = modulus;
50 * Returns the modulus {@code n}.
52 * @return the modulus {@code n}
    [all...]
RSAPublicKeySpec.java 30 // Modulus
31 private final BigInteger modulus; field in class:RSAPublicKeySpec
36 * Creates a new {@code RSAPublicKeySpec} with the specified modulus and
39 * @param modulus
40 * the modulus {@code n}.
44 public RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent) {
45 this.modulus = modulus;
50 * Returns the modulus {@code n}.
52 * @return the modulus {@code n}
    [all...]
  /external/bouncycastle/src/main/java/org/bouncycastle/asn1/x509/
RSAPublicKeyStructure.java 17 private BigInteger modulus; field in class:RSAPublicKeyStructure
44 BigInteger modulus,
47 this.modulus = modulus;
62 modulus = DERInteger.getInstance(e.nextElement()).getPositiveValue();
68 return modulus;
80 * modulus INTEGER, -- n
  /external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/
JCERSAPrivateKey.java 28 protected BigInteger modulus; field in class:JCERSAPrivateKey
40 this.modulus = key.getModulus();
47 this.modulus = spec.getModulus();
54 this.modulus = key.getModulus();
60 return modulus;
132 this.modulus = (BigInteger)in.readObject();
144 out.writeObject(modulus);
JCERSAPublicKey.java 21 private BigInteger modulus; field in class:JCERSAPublicKey
27 this.modulus = key.getModulus();
34 this.modulus = spec.getModulus();
41 this.modulus = key.getModulus();
52 this.modulus = pubKey.getModulus();
62 * return the modulus.
64 * @return the modulus.
68 return modulus;
129 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl);
  /external/dropbear/libtomcrypt/testprof/
ecc_test.c 35 void *modulus, *mp, *kA, *kB, *rA, *rB; local
40 DO(mp_init_multi(&kA, &kB, &rA, &rB, &modulus, NULL));
58 DO(mp_read_radix(modulus, ltc_ecc_sets[z].prime, 16));
59 DO(mp_montgomery_setup(modulus, &mp));
70 DO(ltc_mp.ecc_ptmul(rA, G, A, modulus, 1));
73 DO(ltc_mp.ecc_ptmul(rB, G, B, modulus, 1));
82 DO(ltc_mp.ecc_ptmul(kA, A, C1, modulus, 0));
83 DO(ltc_mp.ecc_ptmul(kB, B, C2, modulus, 0));
84 DO(ltc_mp.ecc_ptadd(C1, C2, C1, modulus, mp));
85 DO(ltc_mp.ecc_map(C1, modulus, mp))
    [all...]
x86_prof.c 771 int group, modulus; member in struct:__anon5570
785 if ((err = dsa_make_key(&yarrow_prng, find_prng("yarrow"), groups[x].group, groups[x].modulus, &key)) != CRYPT_OK) {
801 fprintf(stderr, "DSA-(%lu, %lu) make_key took %15llu cycles\n", (unsigned long)groups[x].group*8, (unsigned long)groups[x].modulus*8, t2);
    [all...]
  /system/core/libmincrypt/tools/
DumpPublicKey.java 41 BigInteger modulus = key.getModulus(); local
47 if (modulus.bitLength() != 2048)
48 throw new Exception("Modulus should be 2048 bits long but is " +
49 modulus.bitLength() + " bits.");
63 int nwords = N.bitLength() / 32; // # of 32 bit integers in modulus
77 // Write out modulus as little endian array of integers.
  /external/bouncycastle/src/main/java/org/bouncycastle/asn1/pkcs/
RSAPrivateKeyStructure.java 18 private BigInteger modulus; field in class:RSAPrivateKeyStructure
51 BigInteger modulus,
61 this.modulus = modulus;
83 modulus = ((DERInteger)e.nextElement()).getValue();
105 return modulus;
148 * modulus INTEGER, -- n
  /external/bouncycastle/src/main/java/org/bouncycastle/crypto/encodings/
ISO9796d1Encoding.java 33 private BigInteger modulus; field in class:ISO9796d1Encoding
65 modulus = kParam.getModulus();
66 bitSize = modulus.bitLength();
219 else if ((modulus.subtract(iS)).mod(SIXTEEN).equals(SIX))
221 iR = modulus.subtract(iS);
225 throw new InvalidCipherTextException("resulting integer iS or (modulus - iS) is not congruent to 6 mod 16");
  /external/bouncycastle/src/main/java/org/bouncycastle/util/encoders/
Base64Encoder.java 57 int modulus = length % 3; local
58 int dataLength = (length - modulus);
79 switch (modulus)
108 return (dataLength / 3) * 4 + ((modulus == 0) ? 0 : 4);
  /external/chromium/crypto/
rsa_private_key.h 52 // that will be parsed & serialized (modulus(), etc...) during Import(),
79 std::vector<uint8>* modulus() { return &modulus_; }; function in class:crypto::PrivateKeyInfoCodec
154 // The byte-significance of the stored components (modulus, etc..).
  /external/openssl/apps/
dsa.c 92 * -modulus - print the DSA public key
113 int modulus=0; local
186 else if (strcmp(*argv,"-modulus") == 0)
187 modulus=1;
234 BIO_printf(bio_err," -modulus print the DSA public value\n");
320 if (modulus)
rsa.c 92 * -modulus - print the RSA key modulus
116 int modulus=0; local
196 else if (strcmp(*argv,"-modulus") == 0)
197 modulus=1;
240 BIO_printf(bio_err," -modulus print the RSA key modulus\n");
333 if (modulus)
335 BIO_printf(out,"Modulus=");
  /external/apache-harmony/math/src/test/java/org/apache/harmony/tests/java/math/
BigIntegerModPowTest.java 32 * modPow: non-positive modulus
43 BigInteger modulus = new BigInteger(mSign, mBytes); local
45 aNumber.modPow(exp, modulus);
71 BigInteger modulus = new BigInteger(mSign, mBytes); local
72 BigInteger result = aNumber.modPow(exp, modulus);
94 BigInteger modulus = new BigInteger(mSign, mBytes); local
95 BigInteger result = aNumber.modPow(exp, modulus);
128 * modInverse: non-positive modulus
136 BigInteger modulus = new BigInteger(mSign, mBytes); local
138 aNumber.modInverse(modulus);
153 BigInteger modulus = new BigInteger(mSign, mBytes); local
171 BigInteger modulus = new BigInteger(mSign, mBytes); local
191 BigInteger modulus = new BigInteger(mSign, mBytes); local
211 BigInteger modulus = new BigInteger(mSign, mBytes); local
229 BigInteger modulus = new BigInteger(mBytes); local
    [all...]
  /external/dropbear/libtomcrypt/demos/
tv_gen.c 664 void *k, *order, *modulus; local
674 mp_init(&modulus);
681 mp_read_radix(modulus, (char *)ltc_ecc_sets[x].prime, 16);
687 ltc_mp.ecc_ptmul(k, G, R, modulus, 1);
694 mp_clear_multi(k, order, modulus, NULL);
  /prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/
stl_function.h 171 struct modulus : public binary_function<_Tp, _Tp, _Tp> struct in inherits:binary_function
  /prebuilt/ndk/android-ndk-r5/sources/cxx-stl/gnu-libstdc++/include/bits/
stl_function.h 171 struct modulus : public binary_function<_Tp, _Tp, _Tp> struct in inherits:binary_function
  /prebuilt/ndk/android-ndk-r6/sources/cxx-stl/gnu-libstdc++/include/bits/
stl_function.h 171 struct modulus : public binary_function<_Tp, _Tp, _Tp> struct in inherits:binary_function
  /prebuilt/ndk/android-ndk-r7/sources/cxx-stl/gnu-libstdc++/include/bits/
stl_function.h 171 struct modulus : public binary_function<_Tp, _Tp, _Tp> struct in inherits:binary_function
  /external/stlport/stlport/stl/
_function.h 69 struct modulus : public binary_function<_Tp, _Tp, _Tp> { struct in inherits:binary_function
  /ndk/sources/cxx-stl/stlport/stlport/stl/
_function.h 69 struct modulus : public binary_function<_Tp, _Tp, _Tp> { struct in inherits:binary_function

Completed in 810 milliseconds

1 2