Searched refs:modulus (Results 1 - 25 of 75) sorted by relevance

123

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
H A DRSAKeyParameters.java8 private BigInteger modulus; field in class:RSAKeyParameters
13 BigInteger modulus,
18 this.modulus = modulus;
24 return modulus;
11 RSAKeyParameters( boolean isPrivate, BigInteger modulus, BigInteger exponent) argument
H A DRSAPrivateCrtKeyParameters.java19 BigInteger modulus,
28 super(true, modulus, privateExponent);
18 RSAPrivateCrtKeyParameters( BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger p, BigInteger q, BigInteger dP, BigInteger dQ, BigInteger qInv) argument
/external/libvpx/libvpx/vp9/decoder/
H A Dvp9_dsubexp.c30 static int merge_index(int v, int n, int modulus) { argument
31 int max1 = (n - 1 - modulus / 2) / modulus + 1;
33 v = v * modulus + modulus / 2;
38 v += (v + modulus - modulus / 2) / modulus;
39 while (v % modulus == modulus /
[all...]
/external/libcxx/test/utilities/function.objects/arithmetic.operations/
H A Dmodulus.pass.cpp12 // 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);
H A Dtransparent.pass.cpp48 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, "" );
H A DAndroid.mk31 test_name := utilities/function.objects/arithmetic.operations/modulus
32 test_src := modulus.pass.cpp
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
H A DRSAPublicKey.java17 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
43 RSAPublicKey( BigInteger modulus, BigInteger publicExponent) argument
H A DRSAPrivateKey.java18 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
51 RSAPrivateKey( BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger prime1, BigInteger prime2, BigInteger exponent1, BigInteger exponent2, BigInteger coefficient) argument
H A DRSAPrivateKeyStructure.java21 private BigInteger modulus; field in class:RSAPrivateKeyStructure
54 BigInteger modulus,
64 this.modulus = modulus;
86 modulus = ((ASN1Integer)e.nextElement()).getValue();
108 return modulus;
151 * modulus INTEGER, -- n
53 RSAPrivateKeyStructure( BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger prime1, BigInteger prime2, BigInteger exponent1, BigInteger exponent2, BigInteger coefficient) argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
H A DRSAPublicKeyStructure.java20 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
46 RSAPublicKeyStructure( BigInteger modulus, BigInteger publicExponent) argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
H A DJCERSAPrivateKey.java28 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;
128 this.modulus = (BigInteger)in.readObject();
140 out.writeObject(modulus);
H A DJCERSAPublicKey.java22 private BigInteger modulus; field in class:JCERSAPublicKey
28 this.modulus = key.getModulus();
35 this.modulus = spec.getModulus();
42 this.modulus = key.getModulus();
53 this.modulus = pubKey.getModulus();
63 * return the modulus.
65 * @return the modulus.
69 return modulus;
126 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl);
/external/conscrypt/src/main/java/org/conscrypt/
H A DOpenSSLRSAPublicKey.java35 private BigInteger modulus; field in class:OpenSSLRSAPublicKey
101 modulus = new BigInteger(params[0]);
110 return modulus;
144 return modulus.equals(other.getModulus())
152 return modulus.hashCode() ^ publicExponent.hashCode();
160 sb.append("modulus=");
161 sb.append(modulus.toString(16));
174 modulus.toByteArray(),
H A DOpenSSLRSAPrivateKey.java36 protected BigInteger modulus; field in class:OpenSSLRSAPrivateKey
60 final BigInteger modulus = rsaKeySpec.getModulus();
63 if (modulus == null) {
64 throw new InvalidKeySpecException("modulus == null");
71 modulus.toByteArray(),
111 final BigInteger modulus = rsaPrivateKey.getModulus();
114 if (modulus == null) {
115 throw new InvalidKeyException("modulus == null");
122 modulus.toByteArray(),
145 throw new NullPointerException("modulus
[all...]
H A DOpenSSLRSAPrivateCrtKey.java58 BigInteger modulus = rsaKeySpec.getModulus();
61 if (modulus == null) {
62 throw new InvalidKeySpecException("modulus == null");
69 * OpenSSL uses the public modulus to do RSA blinding. If
70 * the public modulus is not available, the call to
82 modulus.toByteArray(),
104 BigInteger modulus = rsaPrivateKey.getModulus();
107 if (modulus == null) {
108 throw new InvalidKeyException("modulus == null");
115 * OpenSSL uses the public modulus t
[all...]
/external/wpa_supplicant_8/hostapd/src/crypto/
H A Dcrypto_internal-modexp.c18 const u8 *modulus, size_t modulus_len,
35 bignum_set_unsigned_bin(bn_modulus, modulus, modulus_len) < 0)
16 crypto_mod_exp(const u8 *base, size_t base_len, const u8 *power, size_t power_len, const u8 *modulus, size_t modulus_len, u8 *result, size_t *result_len) argument
/external/wpa_supplicant_8/src/crypto/
H A Dcrypto_internal-modexp.c18 const u8 *modulus, size_t modulus_len,
35 bignum_set_unsigned_bin(bn_modulus, modulus, modulus_len) < 0)
16 crypto_mod_exp(const u8 *base, size_t base_len, const u8 *power, size_t power_len, const u8 *modulus, size_t modulus_len, u8 *result, size_t *result_len) argument
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Dcrypto_internal-modexp.c18 const u8 *modulus, size_t modulus_len,
35 bignum_set_unsigned_bin(bn_modulus, modulus, modulus_len) < 0)
16 crypto_mod_exp(const u8 *base, size_t base_len, const u8 *power, size_t power_len, const u8 *modulus, size_t modulus_len, u8 *result, size_t *result_len) argument
/external/stlport/test/unit/
H A Dmodulus_test.cpp35 transform((int*)input1, (int*)input1 + 4, (int*)input2, (int*)output, modulus<int>());
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
H A DBCRSAPrivateKey.java28 protected BigInteger modulus; field in class:BCRSAPrivateKey
40 this.modulus = key.getModulus();
47 this.modulus = spec.getModulus();
54 this.modulus = key.getModulus();
60 return modulus;
H A DBCRSAPublicKey.java25 private BigInteger modulus; field in class:BCRSAPublicKey
33 this.modulus = key.getModulus();
41 this.modulus = spec.getModulus();
49 this.modulus = key.getModulus();
66 this.modulus = pubKey.getModulus();
76 * return the modulus.
78 * @return the modulus.
82 return modulus;
139 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl);
/external/chromium_org/third_party/tlslite/tlslite/utils/
H A Dcryptomath.py202 def powMod(base, power, modulus):
205 modulus = gmpy.mpz(modulus)
206 result = pow(base, power, modulus)
210 def powMod(base, power, modulus):
212 result = pow(base, power*-1, modulus)
213 result = invMod(result, modulus)
216 return pow(base, power, modulus)
/external/libcxx/test/numerics/rand/rand.eng/rand.eng.lcong/
H A Dvalues.pass.cpp19 // static constexpr result_type modulus = m;
39 static_assert((LCE::modulus == m), "");
45 where(LCE::modulus);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/encoders/
H A DBase64Encoder.java62 int modulus = length % 3;
63 int dataLength = (length - modulus);
84 switch (modulus)
113 return (dataLength / 3) * 4 + ((modulus == 0) ? 0 : 4);
/external/chromium_org/net/android/
H A Dkeystore.h35 // Returns the modulus of a given RSAPrivateKey platform object,
40 // |modulus| will receive the modulus bytes on success.
44 std::vector<uint8>* modulus);

Completed in 1784 milliseconds

123