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

1 2 3 4 5 6 7 8 910

  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
RSAKeyParameters.java 10 private BigInteger modulus; field in class:RSAKeyParameters
15 BigInteger modulus,
28 this.modulus = validate(modulus);
32 private BigInteger validate(BigInteger modulus)
34 if ((modulus.intValue() & 1) == 0)
36 throw new IllegalArgumentException("RSA modulus is even");
40 if (!modulus.gcd(new BigInteger("145188775577763990151158743208307020242261438098488931355057091965" +
46 throw new IllegalArgumentException("RSA modulus has a small prime factor");
51 return modulus;
    [all...]
RSAPrivateCrtKeyParameters.java 19 BigInteger modulus,
28 super(true, modulus, privateExponent);
  /libcore/ojluni/src/main/java/java/security/spec/
RSAPrivateKeySpec.java 46 private BigInteger modulus; field in class:RSAPrivateKeySpec
52 * @param modulus the modulus
55 public RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent) {
56 this.modulus = modulus;
61 * Returns the modulus.
63 * @return the modulus
66 return this.modulus;
RSAPublicKeySpec.java 46 private BigInteger modulus; field in class:RSAPublicKeySpec
52 * @param modulus the modulus
55 public RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent) {
56 this.modulus = modulus;
61 * Returns the modulus.
63 * @return the modulus
66 return this.modulus;
RSAPrivateCrtKeySpec.java 59 * given the modulus, publicExponent, privateExponent,
63 * @param modulus the modulus n
73 public RSAPrivateCrtKeySpec(BigInteger modulus,
81 super(modulus, privateExponent);
RSAMultiPrimePrivateCrtKeySpec.java 61 * given the modulus, publicExponent, privateExponent,
69 * @param modulus the modulus n.
81 * {@code modulus},
89 public RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus,
98 super(modulus, privateExponent);
99 if (modulus == null) {
100 throw new NullPointerException("the modulus parameter must be " +
  /prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/function.objects/arithmetic.operations/
modulus.pass.cpp 12 // modulus
20 typedef std::modulus<int> F;
25 typedef std::modulus<> F2;
31 constexpr int foo = std::modulus<int> () (3, 2);
34 constexpr int bar = std::modulus<> () (3L, 2);
transparent.pass.cpp 48 static_assert ( !is_transparent<std::modulus<int>>::value, "" );
49 static_assert ( !is_transparent<std::modulus<std::string>>::value, "" );
50 static_assert ( is_transparent<std::modulus<void>>::value, "" );
51 static_assert ( is_transparent<std::modulus<>>::value, "" );
  /external/syslinux/gpxe/src/include/gpxe/
x509.h 18 /** Modulus */
19 uint8_t *modulus; member in struct:x509_rsa_public_key
20 /** Modulus length */
35 free ( rsa_pubkey->modulus );
  /external/libcxx/test/std/utilities/function.objects/arithmetic.operations/
modulus.pass.cpp 12 // modulus
22 typedef std::modulus<int> F;
29 typedef std::modulus<> F2;
35 constexpr int foo = std::modulus<int> () (3, 2);
38 constexpr int bar = std::modulus<> () (3L, 2);
transparent.pass.cpp 48 static_assert ( !is_transparent<std::modulus<int>>::value, "" );
49 static_assert ( !is_transparent<std::modulus<std::string>>::value, "" );
50 static_assert ( is_transparent<std::modulus<void>>::value, "" );
51 static_assert ( is_transparent<std::modulus<>>::value, "" );
  /prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/utilities/function.objects/arithmetic.operations/
modulus.pass.cpp 12 // modulus
20 typedef std::modulus<int> F;
27 typedef std::modulus<> F2;
33 constexpr int foo = std::modulus<int> () (3, 2);
36 constexpr int bar = std::modulus<> () (3L, 2);
transparent.pass.cpp 48 static_assert ( !is_transparent<std::modulus<int>>::value, "" );
49 static_assert ( !is_transparent<std::modulus<std::string>>::value, "" );
50 static_assert ( is_transparent<std::modulus<void>>::value, "" );
51 static_assert ( is_transparent<std::modulus<>>::value, "" );
  /frameworks/base/keystore/java/android/security/keystore/
AndroidKeyStoreRSAPrivateKey.java 32 public AndroidKeyStoreRSAPrivateKey(String alias, int uid, BigInteger modulus) {
34 mModulus = modulus;
AndroidKeyStoreRSAPublicKey.java 31 public AndroidKeyStoreRSAPublicKey(String alias, int uid, byte[] x509EncodedForm, BigInteger modulus,
34 mModulus = modulus;
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
RSAPublicKey.java 17 private BigInteger modulus; field in class:RSAPublicKey
44 BigInteger modulus,
47 this.modulus = modulus;
62 modulus = ASN1Integer.getInstance(e.nextElement()).getPositiveValue();
68 return modulus;
80 * modulus INTEGER, -- n
RSAPrivateKey.java 18 private BigInteger modulus; field in class:RSAPrivateKey
52 BigInteger modulus,
62 this.modulus = modulus;
84 modulus = ((ASN1Integer)e.nextElement()).getValue();
106 return modulus;
149 * modulus INTEGER, -- n
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
RSAPublicKeyStructure.java 20 private BigInteger modulus; field in class:RSAPublicKeyStructure
47 BigInteger modulus,
50 this.modulus = modulus;
65 modulus = ASN1Integer.getInstance(e.nextElement()).getPositiveValue();
71 return modulus;
83 * modulus INTEGER, -- n
  /external/syslinux/gpxe/src/crypto/
x509.c 94 * Identify X.509 certificate RSA modulus and public exponent
102 * the RSA modulus and exponent.
108 struct asn1_cursor modulus; local
144 /* Pick out the modulus and exponent */
151 memcpy ( &modulus, &pubkey, sizeof ( modulus ) );
152 rc = ( asn1_enter ( &modulus, ASN1_INTEGER ) /* modulus */ );
154 DBG ( "Cannot locate modulus in:\n" );
159 rc = ( asn1_skip ( &exponent, ASN1_INTEGER ), /* modulus */
    [all...]
  /external/conscrypt/common/src/main/java/org/conscrypt/
OpenSSLRSAPrivateKey.java 45 protected BigInteger modulus; field in class:OpenSSLRSAPrivateKey
69 final BigInteger modulus = rsaKeySpec.getModulus(); local
72 if (modulus == null) {
73 throw new InvalidKeySpecException("modulus == null");
80 modulus.toByteArray(),
118 BigInteger modulus = null; local
120 modulus = ((RSAKey) privateKey).getModulus();
122 modulus = ((RSAKey) publicKey).getModulus();
124 if (modulus == null) {
125 throw new InvalidKeyException("RSA modulus not available. Private: " + privateKe
141 final BigInteger modulus = rsaPrivateKey.getModulus(); local
    [all...]
OpenSSLRSAPublicKey.java 42 private BigInteger modulus; field in class:OpenSSLRSAPublicKey
108 modulus = new BigInteger(params[0]);
117 return modulus;
151 return modulus.equals(other.getModulus())
159 return modulus.hashCode() ^ publicExponent.hashCode();
167 sb.append("modulus=");
168 sb.append(modulus.toString(16));
181 modulus.toByteArray(),
  /platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
Scheduler.java 114 * Find a random number relatively prime to our modulus
117 private int randomRelPrime(Integer modulus) {
118 if (modulus <= 1) {
123 // Sample random numbers until we get something coprime to our modulus
124 while (gcd(x, modulus) != 1) {
125 x = mRandom.nextInt() % modulus;
128 return x % modulus;
  /libcore/harmony-tests/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/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
BCRSAPrivateKey.java 28 protected BigInteger modulus; field in class:BCRSAPrivateKey
40 this.modulus = key.getModulus();
47 this.modulus = spec.getModulus();
54 this.modulus = key.getModulus();
60 this.modulus = key.getModulus();
66 return modulus;
  /external/wpa_supplicant_8/src/crypto/
crypto_internal-modexp.c 18 const u8 *modulus, size_t modulus_len,
35 bignum_set_unsigned_bin(bn_modulus, modulus, modulus_len) < 0)

Completed in 1604 milliseconds

1 2 3 4 5 6 7 8 910