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

1 2

  /external/libcxx/test/std/utilities/time/time.cal/
euclidian.h 18 const T modulus = maxValue - minValue + 1; local
21 ret -= modulus;
32 const T modulus = maxValue - minValue + 1; local
35 ret += modulus;
37 ret += modulus;
  /external/python/cpython3/Modules/_decimal/libmpdec/
numbertheory.h 44 mpd_uint_t modulus; member in struct:fnt_params
  /external/u-boot/include/u-boot/
rsa-mod-exp.h 15 * The struct has pointers to modulus (Typically called N),
22 const void *modulus; /* modulus as byte array */ member in struct:key_prop
24 uint32_t n0inv; /* -1 / modulus[0] mod 2^32 */
32 * Operation: out[] = sig ^ exponent % modulus
36 * @node: Node with RSA key elements like modulus, exponent, R^2, n0inv
56 * Operation: out[] = sig ^ exponent % modulus
61 * @node: Node with RSA key elements like modulus, exponent,
rsa.h 20 * An RSA public key consists of a modulus (typically called N), the inverse
25 uint len; /* len of modulus[] in number of uint32_t */
26 uint32_t n0inv; /* -1 / modulus[0] mod 2^32 */
27 uint32_t *modulus; /* modulus as little endian array */ member in struct:rsa_public_key
  /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/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...]
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/params/
RSAKeyParameters.java 14 private BigInteger modulus; field in class:RSAKeyParameters
19 BigInteger modulus,
32 this.modulus = validate(modulus);
36 private BigInteger validate(BigInteger modulus)
38 if ((modulus.intValue() & 1) == 0)
40 throw new IllegalArgumentException("RSA modulus is even");
44 if (!modulus.gcd(new BigInteger("145188775577763990151158743208307020242261438098488931355057091965" +
50 throw new IllegalArgumentException("RSA modulus has a small prime factor");
55 return modulus;
    [all...]
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/pkcs/
RSAPublicKey.java 21 private BigInteger modulus; field in class:RSAPublicKey
48 BigInteger modulus,
51 this.modulus = modulus;
66 modulus = ASN1Integer.getInstance(e.nextElement()).getPositiveValue();
72 return modulus;
84 * modulus INTEGER, -- n
RSAPrivateKey.java 22 private BigInteger modulus; field in class:RSAPrivateKey
56 BigInteger modulus,
66 this.modulus = modulus;
88 modulus = ((ASN1Integer)e.nextElement()).getValue();
110 return modulus;
153 * modulus INTEGER, -- n
RSAPrivateKeyStructure.java 23 private BigInteger modulus; field in class:RSAPrivateKeyStructure
56 BigInteger modulus,
66 this.modulus = modulus;
88 modulus = ((ASN1Integer)e.nextElement()).getValue();
110 return modulus;
153 * modulus INTEGER, -- n
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x509/
RSAPublicKeyStructure.java 22 private BigInteger modulus; field in class:RSAPublicKeyStructure
49 BigInteger modulus,
52 this.modulus = modulus;
67 modulus = ASN1Integer.getInstance(e.nextElement()).getPositiveValue();
73 return modulus;
85 * modulus INTEGER, -- n
  /external/conscrypt/common/src/main/java/org/conscrypt/
OpenSSLRSAKeyFactory.java 202 BigInteger modulus = rsaKey.getModulus(); local
212 return engineGeneratePrivate(new RSAPrivateCrtKeySpec(modulus, publicExponent,
220 BigInteger modulus = rsaKey.getModulus(); local
224 return engineGeneratePrivate(new RSAPrivateKeySpec(modulus, privateExponent));
OpenSSLRSAPublicKey.java 40 private BigInteger modulus; field in class:OpenSSLRSAPublicKey
106 modulus = new BigInteger(params[0]);
115 return modulus;
149 return modulus.equals(other.getModulus())
157 return modulus.hashCode() ^ publicExponent.hashCode();
165 sb.append("modulus=");
166 sb.append(modulus.toString(16));
179 modulus.toByteArray(),
  /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/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
OpenSSLRSAKeyFactory.java 207 BigInteger modulus = rsaKey.getModulus(); local
217 return engineGeneratePrivate(new RSAPrivateCrtKeySpec(modulus, publicExponent,
225 BigInteger modulus = rsaKey.getModulus(); local
229 return engineGeneratePrivate(new RSAPrivateKeySpec(modulus, privateExponent));
  /external/epid-sdk/ext/ipp/sources/ippcp/
pcpgfpmethod.h 56 /* modulus ID */
78 const BNU_CHUNK_T* modulus; member in struct:_cpGFpMethod
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
BCRSAPrivateKey.java 29 protected BigInteger modulus; field in class:BCRSAPrivateKey
41 this.modulus = key.getModulus();
48 this.modulus = spec.getModulus();
55 this.modulus = key.getModulus();
61 this.modulus = key.getModulus();
67 return modulus;
154 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl);
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;
143 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/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/rsa/
BCRSAPrivateKey.java 33 protected BigInteger modulus; field in class:BCRSAPrivateKey
45 this.modulus = key.getModulus();
52 this.modulus = spec.getModulus();
59 this.modulus = key.getModulus();
65 this.modulus = key.getModulus();
71 return modulus;
158 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl);
BCRSAPublicKey.java 29 private BigInteger modulus; field in class:BCRSAPublicKey
37 this.modulus = key.getModulus();
45 this.modulus = spec.getModulus();
53 this.modulus = key.getModulus();
70 this.modulus = pubKey.getModulus();
80 * return the modulus.
82 * @return the modulus.
86 return modulus;
147 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl);
  /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/util/encoders/
Base64Encoder.java 67 int modulus = length % 3; local
68 int dataLength = (length - modulus);
89 switch (modulus)
118 return (dataLength / 3) * 4 + ((modulus == 0) ? 0 : 4);

Completed in 2151 milliseconds

1 2