/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:__anon3481 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/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/base/crypto/ |
rsa_private_key.h | 44 // that will be parsed & serialized (modulus(), etc...) during Import(), 65 std::vector<uint8>* modulus() { return &modulus_; }; function in class:base::PrivateKeyInfoCodec 140 // 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=");
|
req.c | 121 * -modulus - print RSA modulus. 183 int modulus=0; local 317 else if (strcmp(*argv,"-modulus") == 0) 318 modulus=1; 406 BIO_printf(bio_err," -modulus RSA modulus\n"); 953 if (noout && !text && !modulus && !subject && !pubkey) 1012 if (modulus) 1022 fprintf(stdout,"Modulus=unavailable\n") [all...] |
x509.c | 117 " -modulus - print the RSA key modulus\n", 195 int x509req=0,days=DEF_DAYS,modulus=0,pubkey=0; local 398 else if (strcmp(*argv,"-modulus") == 0) 399 modulus= ++num; 807 if (modulus == i) 814 BIO_printf(bio_err,"Modulus=unavailable\n"); 818 BIO_printf(STDout,"Modulus="); [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);
|
/external/stlport/stlport/stl/ |
_function.h | 69 struct modulus : public binary_function<_Tp, _Tp, _Tp> { struct in inherits:binary_function
|
/ndk/sources/android/stlport/stlport/stl/ |
_function.h | 69 struct modulus : public binary_function<_Tp, _Tp, _Tp> { struct in inherits:binary_function
|
/libcore/luni/src/main/java/java/math/ |
BigInt.java | 351 public static BigInt modulus(BigInt a, BigInt m) { method in class:BigInt
|
/external/chromium/net/third_party/nss/ssl/ |
ssl3prot.h | 225 SECItem modulus; member in struct:__anon2754
|
ssl3con.c | 5131 SECItem modulus = {siBuffer, NULL, 0}; local [all...] |
/prebuilt/sdk/5/ |
android.jar | |