Home
last modified time | relevance | path

Searched refs:ecSpec (Results 1 – 25 of 26) sorted by relevance

12

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DJCEECPublicKey.java50 private ECParameterSpec ecSpec; field in JCEECPublicKey
61 this.ecSpec = key.ecSpec; in JCEECPublicKey()
72 this.ecSpec = spec.getParams(); in JCEECPublicKey()
73 this.q = EC5Util.convertPoint(ecSpec, spec.getW()); in JCEECPublicKey()
88 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec.getParams()); in JCEECPublicKey()
98 this.ecSpec = null; in JCEECPublicKey()
116 this.ecSpec = createSpec(ellipticCurve, dp); in JCEECPublicKey()
120 this.ecSpec = spec; in JCEECPublicKey()
138 this.ecSpec = createSpec(ellipticCurve, dp); in JCEECPublicKey()
144 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec); in JCEECPublicKey()
[all …]
DJCEECPrivateKey.java49 private ECParameterSpec ecSpec; field in JCEECPrivateKey
65 this.ecSpec = key.getParams(); in JCEECPrivateKey()
82 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec.getParams()); in JCEECPrivateKey()
86 this.ecSpec = null; in JCEECPrivateKey()
97 this.ecSpec = spec.getParams(); in JCEECPrivateKey()
106 this.ecSpec = key.ecSpec; in JCEECPrivateKey()
126 this.ecSpec = new ECParameterSpec( in JCEECPrivateKey()
134 this.ecSpec = spec; in JCEECPrivateKey()
154 this.ecSpec = new ECParameterSpec( in JCEECPrivateKey()
164 this.ecSpec = new ECParameterSpec( in JCEECPrivateKey()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/provider/
DJCEECPublicKey.java54 private ECParameterSpec ecSpec; field in JCEECPublicKey
65 this.ecSpec = key.ecSpec; in JCEECPublicKey()
76 this.ecSpec = spec.getParams(); in JCEECPublicKey()
77 this.q = EC5Util.convertPoint(ecSpec, spec.getW()); in JCEECPublicKey()
92 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec.getParams()); in JCEECPublicKey()
102 this.ecSpec = null; in JCEECPublicKey()
120 this.ecSpec = createSpec(ellipticCurve, dp); in JCEECPublicKey()
124 this.ecSpec = spec; in JCEECPublicKey()
142 this.ecSpec = createSpec(ellipticCurve, dp); in JCEECPublicKey()
148 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec); in JCEECPublicKey()
[all …]
DJCEECPrivateKey.java53 private ECParameterSpec ecSpec; field in JCEECPrivateKey
69 this.ecSpec = key.getParams(); in JCEECPrivateKey()
86 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec.getParams()); in JCEECPrivateKey()
90 this.ecSpec = null; in JCEECPrivateKey()
101 this.ecSpec = spec.getParams(); in JCEECPrivateKey()
110 this.ecSpec = key.ecSpec; in JCEECPrivateKey()
130 this.ecSpec = new ECParameterSpec( in JCEECPrivateKey()
138 this.ecSpec = spec; in JCEECPrivateKey()
158 this.ecSpec = new ECParameterSpec( in JCEECPrivateKey()
168 this.ecSpec = new ECParameterSpec( in JCEECPrivateKey()
[all …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jce/provider/
DJCEECPublicKey.java54 private ECParameterSpec ecSpec; field in JCEECPublicKey
65 this.ecSpec = key.ecSpec; in JCEECPublicKey()
76 this.ecSpec = spec.getParams(); in JCEECPublicKey()
77 this.q = EC5Util.convertPoint(ecSpec, spec.getW()); in JCEECPublicKey()
92 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec.getParams()); in JCEECPublicKey()
102 this.ecSpec = null; in JCEECPublicKey()
120 this.ecSpec = createSpec(ellipticCurve, dp); in JCEECPublicKey()
124 this.ecSpec = spec; in JCEECPublicKey()
142 this.ecSpec = createSpec(ellipticCurve, dp); in JCEECPublicKey()
148 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec); in JCEECPublicKey()
[all …]
DJCEECPrivateKey.java53 private ECParameterSpec ecSpec; field in JCEECPrivateKey
69 this.ecSpec = key.getParams(); in JCEECPrivateKey()
86 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec.getParams()); in JCEECPrivateKey()
90 this.ecSpec = null; in JCEECPrivateKey()
101 this.ecSpec = spec.getParams(); in JCEECPrivateKey()
110 this.ecSpec = key.ecSpec; in JCEECPrivateKey()
130 this.ecSpec = new ECParameterSpec( in JCEECPrivateKey()
138 this.ecSpec = spec; in JCEECPrivateKey()
158 this.ecSpec = new ECParameterSpec( in JCEECPrivateKey()
168 this.ecSpec = new ECParameterSpec( in JCEECPrivateKey()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
DBCECPublicKey.java42 private transient ECParameterSpec ecSpec; field in BCECPublicKey
51 this.ecSpec = key.ecSpec; in BCECPublicKey()
62 this.ecSpec = spec.getParams(); in BCECPublicKey()
63 …this.ecPublicKey = new ECPublicKeyParameters(EC5Util.convertPoint(ecSpec, spec.getW()), EC5Util.ge… in BCECPublicKey()
82 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec.getParams()); in BCECPublicKey()
89 this.ecSpec = null; in BCECPublicKey()
110 this.ecSpec = createSpec(ellipticCurve, dp); in BCECPublicKey()
114 this.ecSpec = spec; in BCECPublicKey()
134 this.ecSpec = createSpec(ellipticCurve, dp); in BCECPublicKey()
140 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec); in BCECPublicKey()
[all …]
DECUtils.java64 … static X962Parameters getDomainParametersFromName(ECParameterSpec ecSpec, boolean withCompression) in getDomainParametersFromName() argument
68 if (ecSpec instanceof ECNamedCurveSpec) in getDomainParametersFromName()
70 … ASN1ObjectIdentifier curveOid = ECUtil.getNamedCurveOid(((ECNamedCurveSpec)ecSpec).getName()); in getDomainParametersFromName()
73 curveOid = new ASN1ObjectIdentifier(((ECNamedCurveSpec)ecSpec).getName()); in getDomainParametersFromName()
77 else if (ecSpec == null) in getDomainParametersFromName()
83 ECCurve curve = EC5Util.convertCurve(ecSpec.getCurve()); in getDomainParametersFromName()
87 new X9ECPoint(EC5Util.convertPoint(curve, ecSpec.getGenerator()), withCompression), in getDomainParametersFromName()
88 ecSpec.getOrder(), in getDomainParametersFromName()
89 BigInteger.valueOf(ecSpec.getCofactor()), in getDomainParametersFromName()
90 ecSpec.getCurve().getSeed()); in getDomainParametersFromName()
DBCECPrivateKey.java44 private transient ECParameterSpec ecSpec; field in BCECPrivateKey
60 this.ecSpec = key.getParams(); in BCECPrivateKey()
79 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec.getParams()); in BCECPrivateKey()
83 this.ecSpec = null; in BCECPrivateKey()
97 this.ecSpec = spec.getParams(); in BCECPrivateKey()
107 this.ecSpec = key.ecSpec; in BCECPrivateKey()
130 this.ecSpec = new ECParameterSpec( in BCECPrivateKey()
138 this.ecSpec = spec; in BCECPrivateKey()
160 this.ecSpec = new ECParameterSpec( in BCECPrivateKey()
170 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec); in BCECPrivateKey()
[all …]
DAlgorithmParametersSpi.java163 … org.bouncycastle.jce.spec.ECParameterSpec ecSpec = EC5Util.convertSpec(ecParameterSpec); in engineGetEncoded() local
165 ecSpec.getCurve(), in engineGetEncoded()
166 new X9ECPoint(ecSpec.getG(), false), in engineGetEncoded()
167 ecSpec.getN(), in engineGetEncoded()
168 ecSpec.getH(), in engineGetEncoded()
169 ecSpec.getSeed()); in engineGetEncoded()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/ec/
DBCECPublicKey.java46 private transient ECParameterSpec ecSpec; field in BCECPublicKey
55 this.ecSpec = key.ecSpec; in BCECPublicKey()
66 this.ecSpec = spec.getParams(); in BCECPublicKey()
67 …this.ecPublicKey = new ECPublicKeyParameters(EC5Util.convertPoint(ecSpec, spec.getW()), EC5Util.ge… in BCECPublicKey()
86 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec.getParams()); in BCECPublicKey()
93 this.ecSpec = null; in BCECPublicKey()
114 this.ecSpec = createSpec(ellipticCurve, dp); in BCECPublicKey()
118 this.ecSpec = spec; in BCECPublicKey()
138 this.ecSpec = createSpec(ellipticCurve, dp); in BCECPublicKey()
144 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec); in BCECPublicKey()
[all …]
DECUtils.java65 … static X962Parameters getDomainParametersFromName(ECParameterSpec ecSpec, boolean withCompression) in getDomainParametersFromName() argument
69 if (ecSpec instanceof ECNamedCurveSpec) in getDomainParametersFromName()
71 … ASN1ObjectIdentifier curveOid = ECUtil.getNamedCurveOid(((ECNamedCurveSpec)ecSpec).getName()); in getDomainParametersFromName()
74 curveOid = new ASN1ObjectIdentifier(((ECNamedCurveSpec)ecSpec).getName()); in getDomainParametersFromName()
78 else if (ecSpec == null) in getDomainParametersFromName()
84 ECCurve curve = EC5Util.convertCurve(ecSpec.getCurve()); in getDomainParametersFromName()
88 new X9ECPoint(EC5Util.convertPoint(curve, ecSpec.getGenerator()), withCompression), in getDomainParametersFromName()
89 ecSpec.getOrder(), in getDomainParametersFromName()
90 BigInteger.valueOf(ecSpec.getCofactor()), in getDomainParametersFromName()
91 ecSpec.getCurve().getSeed()); in getDomainParametersFromName()
DBCECPrivateKey.java48 private transient ECParameterSpec ecSpec; field in BCECPrivateKey
64 this.ecSpec = key.getParams(); in BCECPrivateKey()
83 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec.getParams()); in BCECPrivateKey()
87 this.ecSpec = null; in BCECPrivateKey()
101 this.ecSpec = spec.getParams(); in BCECPrivateKey()
111 this.ecSpec = key.ecSpec; in BCECPrivateKey()
134 this.ecSpec = new ECParameterSpec( in BCECPrivateKey()
142 this.ecSpec = spec; in BCECPrivateKey()
164 this.ecSpec = new ECParameterSpec( in BCECPrivateKey()
174 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec); in BCECPrivateKey()
[all …]
DAlgorithmParametersSpi.java167 …com.android.org.bouncycastle.jce.spec.ECParameterSpec ecSpec = EC5Util.convertSpec(ecParameterSpec… in engineGetEncoded() local
169 ecSpec.getCurve(), in engineGetEncoded()
170 new X9ECPoint(ecSpec.getG(), false), in engineGetEncoded()
171 ecSpec.getN(), in engineGetEncoded()
172 ecSpec.getH(), in engineGetEncoded()
173 ecSpec.getSeed()); in engineGetEncoded()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/asymmetric/ec/
DBCECPublicKey.java46 private transient ECParameterSpec ecSpec; field in BCECPublicKey
55 this.ecSpec = key.ecSpec; in BCECPublicKey()
66 this.ecSpec = spec.getParams(); in BCECPublicKey()
67 …this.ecPublicKey = new ECPublicKeyParameters(EC5Util.convertPoint(ecSpec, spec.getW()), EC5Util.ge… in BCECPublicKey()
86 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec.getParams()); in BCECPublicKey()
93 this.ecSpec = null; in BCECPublicKey()
114 this.ecSpec = createSpec(ellipticCurve, dp); in BCECPublicKey()
118 this.ecSpec = spec; in BCECPublicKey()
138 this.ecSpec = createSpec(ellipticCurve, dp); in BCECPublicKey()
144 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec); in BCECPublicKey()
[all …]
DECUtils.java65 … static X962Parameters getDomainParametersFromName(ECParameterSpec ecSpec, boolean withCompression) in getDomainParametersFromName() argument
69 if (ecSpec instanceof ECNamedCurveSpec) in getDomainParametersFromName()
71 … ASN1ObjectIdentifier curveOid = ECUtil.getNamedCurveOid(((ECNamedCurveSpec)ecSpec).getName()); in getDomainParametersFromName()
74 curveOid = new ASN1ObjectIdentifier(((ECNamedCurveSpec)ecSpec).getName()); in getDomainParametersFromName()
78 else if (ecSpec == null) in getDomainParametersFromName()
84 ECCurve curve = EC5Util.convertCurve(ecSpec.getCurve()); in getDomainParametersFromName()
88 new X9ECPoint(EC5Util.convertPoint(curve, ecSpec.getGenerator()), withCompression), in getDomainParametersFromName()
89 ecSpec.getOrder(), in getDomainParametersFromName()
90 BigInteger.valueOf(ecSpec.getCofactor()), in getDomainParametersFromName()
91 ecSpec.getCurve().getSeed()); in getDomainParametersFromName()
DBCECPrivateKey.java48 private transient ECParameterSpec ecSpec; field in BCECPrivateKey
64 this.ecSpec = key.getParams(); in BCECPrivateKey()
83 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec.getParams()); in BCECPrivateKey()
87 this.ecSpec = null; in BCECPrivateKey()
101 this.ecSpec = spec.getParams(); in BCECPrivateKey()
111 this.ecSpec = key.ecSpec; in BCECPrivateKey()
134 this.ecSpec = new ECParameterSpec( in BCECPrivateKey()
142 this.ecSpec = spec; in BCECPrivateKey()
164 this.ecSpec = new ECParameterSpec( in BCECPrivateKey()
174 this.ecSpec = EC5Util.convertSpec(ellipticCurve, spec); in BCECPrivateKey()
[all …]
DAlgorithmParametersSpi.java167 …com.android.internal.org.bouncycastle.jce.spec.ECParameterSpec ecSpec = EC5Util.convertSpec(ecPara… in engineGetEncoded() local
169 ecSpec.getCurve(), in engineGetEncoded()
170 new X9ECPoint(ecSpec.getG(), false), in engineGetEncoded()
171 ecSpec.getN(), in engineGetEncoded()
172 ecSpec.getH(), in engineGetEncoded()
173 ecSpec.getSeed()); in engineGetEncoded()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DEC5Util.java156 ECParameterSpec ecSpec; in convertToSpec() local
174 ecSpec = new ECNamedCurveSpec( in convertToSpec()
183 ecSpec = null; in convertToSpec()
196 ecSpec = new ECParameterSpec( in convertToSpec()
204 ecSpec = new ECParameterSpec( in convertToSpec()
231 ecSpec = null; in convertToSpec()
235 return ecSpec; in convertToSpec()
330 public static org.bouncycastle.jce.spec.ECParameterSpec convertSpec(ECParameterSpec ecSpec) in convertSpec() argument
332 ECCurve curve = convertCurve(ecSpec.getCurve()); in convertSpec()
334 org.bouncycastle.math.ec.ECPoint g = convertPoint(curve, ecSpec.getGenerator()); in convertSpec()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/util/
DEC5Util.java160 ECParameterSpec ecSpec; in convertToSpec() local
178 ecSpec = new ECNamedCurveSpec( in convertToSpec()
187 ecSpec = null; in convertToSpec()
200 ecSpec = new ECParameterSpec( in convertToSpec()
208 ecSpec = new ECParameterSpec( in convertToSpec()
235 ecSpec = null; in convertToSpec()
239 return ecSpec; in convertToSpec()
334 …ic static com.android.org.bouncycastle.jce.spec.ECParameterSpec convertSpec(ECParameterSpec ecSpec) in convertSpec() argument
336 ECCurve curve = convertCurve(ecSpec.getCurve()); in convertSpec()
338 com.android.org.bouncycastle.math.ec.ECPoint g = convertPoint(curve, ecSpec.getGenerator()); in convertSpec()
[all …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/asymmetric/util/
DEC5Util.java160 ECParameterSpec ecSpec; in convertToSpec() local
178 ecSpec = new ECNamedCurveSpec( in convertToSpec()
187 ecSpec = null; in convertToSpec()
200 ecSpec = new ECParameterSpec( in convertToSpec()
208 ecSpec = new ECParameterSpec( in convertToSpec()
235 ecSpec = null; in convertToSpec()
239 return ecSpec; in convertToSpec()
334 … com.android.internal.org.bouncycastle.jce.spec.ECParameterSpec convertSpec(ECParameterSpec ecSpec) in convertSpec() argument
336 ECCurve curve = convertCurve(ecSpec.getCurve()); in convertSpec()
338 …com.android.internal.org.bouncycastle.math.ec.ECPoint g = convertPoint(curve, ecSpec.getGenerator(… in convertSpec()
[all …]
/external/wycheproof/java/com/google/security/wycheproof/testcases/
DEciesTest.java74 ECGenParameterSpec ecSpec = new ECGenParameterSpec("secp256r1"); in testEciesBasic() local
76 kf.initialize(ecSpec); in testEciesBasic()
137 ECGenParameterSpec ecSpec = new ECGenParameterSpec("secp256r1"); in testKeyGeneration() local
139 kf.initialize(ecSpec); in testKeyGeneration()
165 ECGenParameterSpec ecSpec = new ECGenParameterSpec("secp256r1"); in testExceptions() local
168 kf.initialize(ecSpec); in testExceptions()
203 ECGenParameterSpec ecSpec = new ECGenParameterSpec("secp256r1"); in testModifyPoint() local
205 kf.initialize(ecSpec); in testModifyPoint()
243 ECGenParameterSpec ecSpec = new ECGenParameterSpec("secp256r1"); in testNotEcb() local
245 kf.initialize(ecSpec); in testNotEcb()
[all …]
DEcKeyTest.java234 ECParameterSpec ecSpec = EcUtil.getNistP256Params(); in testPublicKeyAtInfinity() local
236 ECPublicKeySpec pubSpec = new ECPublicKeySpec(ECPoint.POINT_INFINITY, ecSpec); in testPublicKeyAtInfinity()
DEcdsaTest.java695 ECGenParameterSpec ecSpec = new ECGenParameterSpec("secp256r1"); in testBasic() local
696 keyGen.initialize(ecSpec); in testBasic()
/external/wycheproof/java/com/google/security/wycheproof/
DEcUtil.java85 ECParameterSpec ecSpec = new ECParameterSpec(curveSpec, g, n, h); in getNistCurveSpec() local
86 return ecSpec; in getNistCurveSpec()

12