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

1 2 3 4 5 6

  /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/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;
  /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 39 protected BigInteger modulus; field in class:OpenSSLRSAPrivateKey
63 final BigInteger modulus = rsaKeySpec.getModulus(); local
66 if (modulus == null) {
67 throw new InvalidKeySpecException("modulus == null");
74 modulus.toByteArray(),
112 BigInteger modulus = null; local
114 modulus = ((RSAKey) privateKey).getModulus();
116 modulus = ((RSAKey) publicKey).getModulus();
118 if (modulus == null) {
119 throw new InvalidKeyException("RSA modulus not available. Private: " + privateKe
135 final BigInteger modulus = rsaPrivateKey.getModulus(); local
    [all...]
  /cts/tests/tests/keystore/src/android/keystore/cts/
RSACipherTest.java 51 BigInteger modulus = ((RSAKey) publicKey).getModulus(); local
52 int modulusSizeBytes = (modulus.bitLength() + 7) / 8;
84 BigInteger modulus = ((RSAKey) publicKey).getModulus(); local
86 // Plaintext is one smaller than the modulus
88 TestUtils.getBigIntegerMagnitudeBytes(modulus.subtract(BigInteger.ONE));
111 BigInteger modulus = ((RSAKey) publicKey).getModulus(); local
113 // Plaintext is exactly the modulus
114 byte[] plaintext = TestUtils.getBigIntegerMagnitudeBytes(modulus);
139 BigInteger modulus = ((RSAKey) publicKey).getModulus(); local
141 // Plaintext is one larger than the modulus
169 BigInteger modulus = ((RSAKey) publicKey).getModulus(); local
201 BigInteger modulus = ((RSAKey) privateKey).getModulus(); local
    [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 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;
125 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 this.modulus = key.getModulus();
66 return modulus;
BCRSAPublicKey.java 27 private BigInteger modulus; field in class:BCRSAPublicKey
35 this.modulus = key.getModulus();
43 this.modulus = spec.getModulus();
51 this.modulus = key.getModulus();
68 this.modulus = pubKey.getModulus();
78 * return the modulus.
80 * @return the modulus.
84 return modulus;
141 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/encoders/
Base64Encoder.java 65 int modulus = length % 3; local
66 int dataLength = (length - modulus);
87 switch (modulus)
116 return (dataLength / 3) * 4 + ((modulus == 0) ? 0 : 4);
  /external/libchrome/crypto/
rsa_private_key.h 46 // that will be parsed & serialized (modulus(), etc...) during Import(),
73 std::vector<uint8_t>* modulus() { return &modulus_; } function in class:crypto::PrivateKeyInfoCodec
150 // The byte-significance of the stored components (modulus, etc..).
  /external/vboot_reference/utility/
dumpRSAPublicKey.c 24 int modulus = BN_num_bits(key->n); local
31 if (modulus != 1024 && modulus != 2048 && modulus != 4096
32 && modulus != 8192) {
33 fprintf(stderr, "ERROR: Unknown modulus length = %d.\n", modulus);
97 /* Write out modulus as little endian array of integers. */
  /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.
  /device/google/contexthub/util/nanoapp_sign/
nanoapp_sign.c 120 uint32_t modulus[RSA_LIMBS]; member in struct:RsaData
136 memcpy(rsa->modulus, sigPack + RSA_BYTES, RSA_BYTES);
139 rsaResult = rsaPubOp(&rsa->state, rsa->num, rsa->modulus);
232 memcpy(masterPubKey, rsa->modulus, RSA_BYTES);
270 if (memcmp(masterPubKey, rsa->modulus, RSA_BYTES) == 0) {
384 rsaResult = rsaPrivOp(&rsa->state, rsa->num, rsa->exponent, rsa->modulus);
395 ret = (fwrite(rsa->modulus, 1, RSA_BYTES, out) == RSA_BYTES) ? 0 : 2;
512 if (!readFile(rsa.modulus, sizeof(rsa.modulus), keyPubFile))
515 printHashRev(stderr, "RSA modulus", rsa.modulus, RSA_LIMBS)
    [all...]
  /external/skia/src/codec/
SkBmpStandardCodec.cpp 312 int modulus; local
313 SkTDivMod(srcX, 8, &quotient, &modulus);
314 uint32_t shift = 7 - modulus;
  /hardware/qcom/keymaster/
keymaster_qcom.h 57 uint8_t modulus[KM_KEY_SIZE_MAX]; member in struct:qcom_km_key_blob
  /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...]
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/include/c++/4.8/bits/
stl_function.h 176 struct modulus : public binary_function<_Tp, _Tp, _Tp> struct in inherits:binary_function

Completed in 1262 milliseconds

1 2 3 4 5 6