Home
last modified time | relevance | path

Searched refs:modulus (Results 1 – 25 of 54) sorted by relevance

123

/external/conscrypt/src/main/java/org/conscrypt/
DOpenSSLRSAPrivateKey.java39 protected BigInteger modulus; field in OpenSSLRSAPrivateKey
63 final BigInteger modulus = rsaKeySpec.getModulus(); in init() local
66 if (modulus == null) { in init()
74 modulus.toByteArray(), in init()
112 BigInteger modulus = null; in wrapJCAPrivateKeyForTLSStackOnly() local
114 modulus = ((RSAKey) privateKey).getModulus(); in wrapJCAPrivateKeyForTLSStackOnly()
116 modulus = ((RSAKey) publicKey).getModulus(); in wrapJCAPrivateKeyForTLSStackOnly()
118 if (modulus == null) { in wrapJCAPrivateKeyForTLSStackOnly()
123 NativeCrypto.getRSAPrivateKeyWrapper(privateKey, modulus.toByteArray()), true); in wrapJCAPrivateKeyForTLSStackOnly()
135 final BigInteger modulus = rsaPrivateKey.getModulus(); in getInstance() local
[all …]
DOpenSSLRSAPublicKey.java35 private BigInteger modulus; field in OpenSSLRSAPublicKey
101 modulus = new BigInteger(params[0]); in ensureReadParams()
110 return modulus; in getModulus()
144 return modulus.equals(other.getModulus()) in equals()
152 return modulus.hashCode() ^ publicExponent.hashCode(); in hashCode()
161 sb.append(modulus.toString(16)); in toString()
174 modulus.toByteArray(), in readObject()
DOpenSSLRSAPrivateCrtKey.java58 BigInteger modulus = rsaKeySpec.getModulus(); in init() local
61 if (modulus == null) { in init()
82 modulus.toByteArray(), in init()
104 BigInteger modulus = rsaPrivateKey.getModulus(); in getInstance() local
107 if (modulus == null) { in getInstance()
128 modulus.toByteArray(), in getInstance()
282 modulus.toByteArray(), in readObject()
DOpenSSLRSAKeyFactory.java181 BigInteger modulus = rsaKey.getModulus(); in engineTranslateKey() local
191 return engineGeneratePrivate(new RSAPrivateCrtKeySpec(modulus, publicExponent, in engineTranslateKey()
199 BigInteger modulus = rsaKey.getModulus(); in engineTranslateKey() local
203 return engineGeneratePrivate(new RSAPrivateKeySpec(modulus, privateExponent)); in engineTranslateKey()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
DRSAKeyParameters.java8 private BigInteger modulus; field in RSAKeyParameters
13 BigInteger modulus, in RSAKeyParameters() argument
18 this.modulus = modulus; in RSAKeyParameters()
24 return modulus; in getModulus()
DRSAPrivateCrtKeyParameters.java19 BigInteger modulus, in RSAPrivateCrtKeyParameters() argument
28 super(true, modulus, privateExponent); in RSAPrivateCrtKeyParameters()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
DRSAPublicKey.java17 private BigInteger modulus; field in RSAPublicKey
44 BigInteger modulus, in RSAPublicKey() argument
47 this.modulus = modulus; in RSAPublicKey()
62 modulus = ASN1Integer.getInstance(e.nextElement()).getPositiveValue(); in RSAPublicKey()
68 return modulus; in getModulus()
DRSAPrivateKey.java18 private BigInteger modulus; field in RSAPrivateKey
52 BigInteger modulus, in RSAPrivateKey() argument
62 this.modulus = modulus; in RSAPrivateKey()
84 modulus = ((ASN1Integer)e.nextElement()).getValue(); in RSAPrivateKey()
106 return modulus; in getModulus()
DRSAPrivateKeyStructure.java21 private BigInteger modulus; field in RSAPrivateKeyStructure
54 BigInteger modulus, in RSAPrivateKeyStructure() argument
64 this.modulus = modulus; in RSAPrivateKeyStructure()
86 modulus = ((ASN1Integer)e.nextElement()).getValue(); in RSAPrivateKeyStructure()
108 return modulus; in getModulus()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
DRSAPublicKeyStructure.java20 private BigInteger modulus; field in RSAPublicKeyStructure
47 BigInteger modulus, in RSAPublicKeyStructure() argument
50 this.modulus = modulus; in RSAPublicKeyStructure()
65 modulus = ASN1Integer.getInstance(e.nextElement()).getPositiveValue(); in RSAPublicKeyStructure()
71 return modulus; in getModulus()
/external/pdfium/xfa/src/fxbarcode/pdf417/
DBC_PDF417ECModulusGF.cpp35 CBC_PDF417ECModulusGF::CBC_PDF417ECModulusGF(int32_t modulus, in CBC_PDF417ECModulusGF() argument
38 m_modulus = modulus; in CBC_PDF417ECModulusGF()
39 m_expTable.SetSize(modulus); in CBC_PDF417ECModulusGF()
40 m_logTable.SetSize(modulus); in CBC_PDF417ECModulusGF()
42 for (int32_t i = 0; i < modulus; i++) { in CBC_PDF417ECModulusGF()
44 x = (x * generator) % modulus; in CBC_PDF417ECModulusGF()
46 for (int32_t j = 0; j < modulus - 1; j++) { in CBC_PDF417ECModulusGF()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DJCERSAPrivateKey.java28 protected BigInteger modulus; field in JCERSAPrivateKey
40 this.modulus = key.getModulus(); in JCERSAPrivateKey()
47 this.modulus = spec.getModulus(); in JCERSAPrivateKey()
54 this.modulus = key.getModulus(); in JCERSAPrivateKey()
60 return modulus; in getModulus()
128 this.modulus = (BigInteger)in.readObject(); in readObject()
140 out.writeObject(modulus); in writeObject()
DJCERSAPublicKey.java21 private BigInteger modulus; field in JCERSAPublicKey
27 this.modulus = key.getModulus(); in JCERSAPublicKey()
34 this.modulus = spec.getModulus(); in JCERSAPublicKey()
41 this.modulus = key.getModulus(); in JCERSAPublicKey()
52 this.modulus = pubKey.getModulus(); in JCERSAPublicKey()
68 return modulus; in getModulus()
DJCERSAPrivateCrtKey.java59 this.modulus = spec.getModulus(); in JCERSAPrivateCrtKey()
77 this.modulus = key.getModulus(); in JCERSAPrivateCrtKey()
103 this.modulus = key.getModulus(); in JCERSAPrivateCrtKey()
/external/libcxx/test/std/utilities/function.objects/arithmetic.operations/
Dmodulus.pass.cpp20 typedef std::modulus<int> F; in main()
27 typedef std::modulus<> F2; in main()
33 constexpr int foo = std::modulus<int> () (3, 2); in main()
36 constexpr int bar = std::modulus<> () (3L, 2); in main()
Dtransparent.pass.cpp48 static_assert ( !is_transparent<std::modulus<int>>::value, "" ); in main()
49 static_assert ( !is_transparent<std::modulus<std::string>>::value, "" ); in main()
50 static_assert ( is_transparent<std::modulus<void>>::value, "" ); in main()
51 static_assert ( is_transparent<std::modulus<>>::value, "" ); in main()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DBCRSAPrivateKey.java28 protected BigInteger modulus; field in BCRSAPrivateKey
40 this.modulus = key.getModulus(); in BCRSAPrivateKey()
47 this.modulus = spec.getModulus(); in BCRSAPrivateKey()
54 this.modulus = key.getModulus(); in BCRSAPrivateKey()
60 this.modulus = key.getModulus(); in BCRSAPrivateKey()
66 return modulus; in getModulus()
DBCRSAPublicKey.java27 private BigInteger modulus; field in BCRSAPublicKey
35 this.modulus = key.getModulus(); in BCRSAPublicKey()
43 this.modulus = spec.getModulus(); in BCRSAPublicKey()
51 this.modulus = key.getModulus(); in BCRSAPublicKey()
68 this.modulus = pubKey.getModulus(); in populateFromPublicKeyInfo()
84 return modulus; in getModulus()
DBCRSAPrivateCrtKey.java59 this.modulus = spec.getModulus(); in BCRSAPrivateCrtKey()
77 this.modulus = key.getModulus(); in BCRSAPrivateCrtKey()
103 this.modulus = key.getModulus(); in BCRSAPrivateCrtKey()
/external/sl4a/Common/src/org/apache/commons/codec/binary/
DBase64Codec.java200 private int modulus; field in Base64Codec
463 switch (modulus) { in encode()
493 modulus = (++modulus) % 3; in encode()
499 if (0 == modulus) { in encode()
558 modulus = (++modulus) % 4; in decode()
560 if (modulus == 0) { in decode()
573 if (eof && modulus != 0) { in decode()
575 switch (modulus) { in decode()
1051 modulus = 0; in reset()
/external/vboot_reference/utility/
DdumpRSAPublicKey.c24 int modulus = BN_num_bits(key->n); in check() local
31 if (modulus != 1024 && modulus != 2048 && modulus != 4096 in check()
32 && modulus != 8192) { in check()
33 fprintf(stderr, "ERROR: Unknown modulus length = %d.\n", modulus); in check()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_internal-modexp.c18 const u8 *modulus, size_t modulus_len, in crypto_mod_exp() argument
35 bignum_set_unsigned_bin(bn_modulus, modulus, modulus_len) < 0) in crypto_mod_exp()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/encoders/
DBase64Encoder.java65 int modulus = length % 3; in encode() local
66 int dataLength = (length - modulus); in encode()
87 switch (modulus) in encode()
116 return (dataLength / 3) * 4 + ((modulus == 0) ? 0 : 4); in encode()
/external/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/
Dvalues.pass.cpp39 static_assert((LCE::modulus == m), ""); in test1()
45 where(LCE::modulus); in test1()
/external/ppp/pppd/
Dsrp-entry.c129 mytce.modulus.data = (u_char *)wkmodulus; in main()
130 mytce.modulus.len = sizeof (wkmodulus); in main()

123