/external/bouncycastle/bcprov/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;
|
/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/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
|
RSAPrivateKeyStructure.java | 21 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
|
/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/conscrypt/src/main/java/org/conscrypt/ |
OpenSSLRSAKeyFactory.java | 181 BigInteger modulus = rsaKey.getModulus(); local 191 return engineGeneratePrivate(new RSAPrivateCrtKeySpec(modulus, publicExponent, 199 BigInteger modulus = rsaKey.getModulus(); local 203 return engineGeneratePrivate(new RSAPrivateKeySpec(modulus, privateExponent));
|
OpenSSLRSAPublicKey.java | 35 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(),
|
OpenSSLRSAPrivateCrtKey.java | 58 BigInteger modulus = rsaKeySpec.getModulus(); local 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(); local 107 if (modulus == null) { 108 throw new InvalidKeyException("modulus == null"); 115 * OpenSSL uses the public modulus to do RSA blinding. I [all...] |
OpenSSLRSAPrivateKey.java | 36 protected BigInteger modulus; field in class:OpenSSLRSAPrivateKey 60 final BigInteger modulus = rsaKeySpec.getModulus(); local 63 if (modulus == null) { 64 throw new InvalidKeySpecException("modulus == null"); 71 modulus.toByteArray(), 111 final BigInteger modulus = rsaPrivateKey.getModulus(); local 114 if (modulus == null) { 115 throw new InvalidKeyException("modulus == null"); 122 modulus.toByteArray(), 145 throw new NullPointerException("modulus == null") [all...] |
/external/bouncycastle/bcprov/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; 128 this.modulus = (BigInteger)in.readObject(); 140 out.writeObject(modulus);
|
JCERSAPublicKey.java | 22 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/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 return modulus;
|
BCRSAPublicKey.java | 25 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/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/encoders/ |
Base64Encoder.java | 62 int modulus = length % 3; local 63 int dataLength = (length - modulus); 84 switch (modulus) 113 return (dataLength / 3) * 4 + ((modulus == 0) ? 0 : 4);
|
/external/chromium_org/crypto/ |
rsa_private_key.h | 49 // that will be parsed & serialized (modulus(), etc...) during Import(), 76 std::vector<uint8>* modulus() { return &modulus_; }; function in class:crypto::PrivateKeyInfoCodec 151 // The byte-significance of the stored components (modulus, etc..).
|
/external/chromium_org/third_party/openssl/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/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=");
|
/system/core/libmincrypt/tools/ |
DumpPublicKey.java | 50 BigInteger modulus = key.getModulus(); local 62 if (modulus.bitLength() != 2048) { 63 throw new Exception("Modulus should be 2048 bits long but is " + 64 modulus.bitLength() + " bits."); 113 int nwords = N.bitLength() / 32; // # of 32 bit integers in modulus 133 // Write out modulus as little endian array of integers.
|
/external/chromium_org/chrome/browser/chromeos/policy/ |
auto_enrollment_client.cc | 341 // Server is asking us to retry with a different modulus. 344 int64 modulus = enrollment_response.expected_modulus(); local 345 int power = NextPowerOf2(modulus); 346 if ((GG_INT64_C(1) << power) != modulus) { 348 << "modulus. Using the closest power-of-2 instead " 349 << "(" << modulus << " vs 2^" << power << ")"; 353 << "modulus but the server asked for a new one again: " 357 << "modulus than the client accepts (" << power << " vs " 360 // Retry at most once with the modulus that the server requested. 362 LOG(WARNING) << "Auto enrollment: the server asked to use a modulus (" [all...] |
/external/chromium_org/net/android/ |
keystore_openssl.cc | 54 // are used to hold the typical modulus / exponent / parameters for the 82 // to manually setup the modulus field (n) in the RSA object, with a 291 // to match the private key's modulus. 292 std::vector<uint8> modulus; local 293 if (!GetRSAKeyModulus(private_key, &modulus)) { 294 LOG(ERROR) << "Failed to get private key modulus"; 297 if (!SwapBigNumPtrFromBytes(modulus, &rsa.get()->n)) { 298 LOG(ERROR) << "Failed to decode private key modulus";
|
/hardware/qcom/keymaster/ |
keymaster_qcom.h | 57 uint8_t modulus[KM_KEY_SIZE_MAX]; member in struct:qcom_km_key_blob
|