/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/src/jdk.crypto.ec/share/classes/sun/security/ec/ |
H A D | ECKeyPairGenerator.java | 95 ECParameterSpec ecParams = (ECParameterSpec) params; in initialize() local 96 ecSpec = ECUtil.getECParameterSpec(null, ecParams); in initialize() 127 ecParams.init(ecSpec); in ensureCurveIsSupported() 128 encodedParams = ecParams.getEncoded(); in ensureCurveIsSupported() 137 "Unsupported curve: " + ecParams.toString()); in ensureCurveIsSupported() 183 ECParameterSpec ecParams = (ECParameterSpec) params; in generateKeyPairImpl() local 191 int numBits = ecParams.getOrder().bitLength(); in generateKeyPairImpl() 196 ECPoint genPoint = ecParams.getGenerator(); in generateKeyPairImpl() 207 PublicKey publicKey = new ECPublicKeyImpl(w, ecParams); in generateKeyPairImpl() 215 ECParameterSpec ecParams = (ECParameterSpec) params; in generateKeyPairNative() local [all …]
|
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/src/jdk.crypto.ec/share/classes/sun/security/ec/ |
H A D | ECKeyPairGenerator.java | 95 ECParameterSpec ecParams = (ECParameterSpec) params; in initialize() local 96 ecSpec = ECUtil.getECParameterSpec(null, ecParams); in initialize() 127 ecParams.init(ecSpec); in ensureCurveIsSupported() 128 encodedParams = ecParams.getEncoded(); in ensureCurveIsSupported() 137 "Unsupported curve: " + ecParams.toString()); in ensureCurveIsSupported() 183 ECParameterSpec ecParams = (ECParameterSpec) params; in generateKeyPairImpl() local 191 int numBits = ecParams.getOrder().bitLength(); in generateKeyPairImpl() 196 ECPoint genPoint = ecParams.getGenerator(); in generateKeyPairImpl() 207 PublicKey publicKey = new ECPublicKeyImpl(w, ecParams); in generateKeyPairImpl() 215 ECParameterSpec ecParams = (ECParameterSpec) params; in generateKeyPairNative() local [all …]
|
/dports/java/openjdk8/jdk8u-jdk8u312-b07.1/jdk/src/share/classes/sun/security/ec/ |
H A D | ECKeyPairGenerator.java | 94 ECParameterSpec ecParams = (ECParameterSpec) params; in initialize() local 95 ecSpec = ECUtil.getECParameterSpec(null, ecParams); in initialize() 126 ecParams.init(ecSpec); in ensureCurveIsSupported() 127 encodedParams = ecParams.getEncoded(); in ensureCurveIsSupported() 136 "Unsupported curve: " + ecParams.toString()); in ensureCurveIsSupported() 182 ECParameterSpec ecParams = (ECParameterSpec) params; in generateKeyPairImpl() local 190 int numBits = ecParams.getOrder().bitLength(); in generateKeyPairImpl() 195 ECPoint genPoint = ecParams.getGenerator(); in generateKeyPairImpl() 206 PublicKey publicKey = new ECPublicKeyImpl(w, ecParams); in generateKeyPairImpl() 214 ECParameterSpec ecParams = (ECParameterSpec) params; in generateKeyPairNative() local [all …]
|
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/src/jdk.crypto.ec/share/classes/sun/security/ec/ |
H A D | ECKeyPairGenerator.java | 95 ECParameterSpec ecParams = (ECParameterSpec) params; in initialize() local 96 ecSpec = ECUtil.getECParameterSpec(null, ecParams); in initialize() 127 ecParams.init(ecSpec); in ensureCurveIsSupported() 128 encodedParams = ecParams.getEncoded(); in ensureCurveIsSupported() 137 "Unsupported curve: " + ecParams.toString()); in ensureCurveIsSupported() 183 ECParameterSpec ecParams = (ECParameterSpec) params; in generateKeyPairImpl() local 191 int numBits = ecParams.getOrder().bitLength(); in generateKeyPairImpl() 196 ECPoint genPoint = ecParams.getGenerator(); in generateKeyPairImpl() 207 PublicKey publicKey = new ECPublicKeyImpl(w, ecParams); in generateKeyPairImpl() 215 ECParameterSpec ecParams = (ECParameterSpec) params; in generateKeyPairNative() local [all …]
|
/dports/java/openjdk15/jdk15u-jdk-15.0.6-1-1/src/jdk.crypto.ec/share/classes/sun/security/ec/ |
H A D | ECKeyPairGenerator.java | 94 ECParameterSpec ecParams = (ECParameterSpec) params; in initialize() local 95 ecSpec = ECUtil.getECParameterSpec(null, ecParams); in initialize() 126 ecParams.init(ecSpec); in ensureCurveIsSupported() 145 encodedParams = ecParams.getEncoded(); in ensureCurveIsSupported() 151 "Unsupported curve: " + ecParams.toString()); in ensureCurveIsSupported() 205 ECParameterSpec ecParams = (ECParameterSpec) params; in generateKeyPairImpl() local 213 int numBits = ecParams.getOrder().bitLength(); in generateKeyPairImpl() 218 ECPoint genPoint = ecParams.getGenerator(); in generateKeyPairImpl() 229 PublicKey publicKey = new ECPublicKeyImpl(w, ecParams); in generateKeyPairImpl() 237 ECParameterSpec ecParams = (ECParameterSpec) params; in generateKeyPairNative() local [all …]
|
/dports/java/openjdk14/jdk14u-jdk-14.0.2-12-1/src/jdk.crypto.ec/share/classes/sun/security/ec/ |
H A D | ECKeyPairGenerator.java | 95 ECParameterSpec ecParams = (ECParameterSpec) params; in initialize() local 96 ecSpec = ECUtil.getECParameterSpec(null, ecParams); in initialize() 127 ecParams.init(ecSpec); in ensureCurveIsSupported() 128 encodedParams = ecParams.getEncoded(); in ensureCurveIsSupported() 137 "Unsupported curve: " + ecParams.toString()); in ensureCurveIsSupported() 183 ECParameterSpec ecParams = (ECParameterSpec) params; in generateKeyPairImpl() local 191 int numBits = ecParams.getOrder().bitLength(); in generateKeyPairImpl() 196 ECPoint genPoint = ecParams.getGenerator(); in generateKeyPairImpl() 207 PublicKey publicKey = new ECPublicKeyImpl(w, ecParams); in generateKeyPairImpl() 215 ECParameterSpec ecParams = (ECParameterSpec) params; in generateKeyPairNative() local [all …]
|
/dports/java/openjdk8-jre/jdk8u-jdk8u312-b07.1/jdk/src/share/classes/sun/security/ec/ |
H A D | ECKeyPairGenerator.java | 94 ECParameterSpec ecParams = (ECParameterSpec) params; in initialize() local 95 ecSpec = ECUtil.getECParameterSpec(null, ecParams); in initialize() 126 ecParams.init(ecSpec); in ensureCurveIsSupported() 127 encodedParams = ecParams.getEncoded(); in ensureCurveIsSupported() 136 "Unsupported curve: " + ecParams.toString()); in ensureCurveIsSupported() 182 ECParameterSpec ecParams = (ECParameterSpec) params; in generateKeyPairImpl() local 190 int numBits = ecParams.getOrder().bitLength(); in generateKeyPairImpl() 195 ECPoint genPoint = ecParams.getGenerator(); in generateKeyPairImpl() 206 PublicKey publicKey = new ECPublicKeyImpl(w, ecParams); in generateKeyPairImpl() 214 ECParameterSpec ecParams = (ECParameterSpec) params; in generateKeyPairNative() local [all …]
|
/dports/java/bouncycastle15/crypto-169/prov/src/main/jdk1.4/org/bouncycastle/jcajce/provider/asymmetric/ecgost/ |
H A D | KeyPairGeneratorSpi.java | 24 ECParameterSpec ecParams = null; field in KeyPairGeneratorSpi 45 if (ecParams != null) in initialize() 47 …new ECKeyGenerationParameters(new ECDomainParameters(ecParams.getCurve(), ecParams.getG(), ecParam… in initialize() 66 this.ecParams = p; in initialize() 85 this.ecParams = new ECNamedCurveParameterSpec( in initialize() 93 …new ECKeyGenerationParameters(new ECDomainParameters(ecParams.getCurve(), ecParams.getG(), ecParam… in initialize() 101 this.ecParams = null; in initialize() 129 if (ecParams == null) in generateKeyPair() 136 ECParameterSpec p = (ECParameterSpec)ecParams; in generateKeyPair()
|
/dports/net-p2p/vuze/vuze-5.7.4.0_2/org/gudy/bouncycastle/jce/provider/ |
H A D | JDKKeyPairGenerator.java | 283 ECParameterSpec ecParams = null; field in JDKKeyPairGenerator.EC 317 this.ecParams = (ECParameterSpec)ecParameters.get(new Integer(strength)); in initialize() 319 if (ecParams != null) in initialize() 321 …new ECKeyGenerationParameters(new ECDomainParameters(ecParams.getCurve(), ecParams.getG(), ecParam… in initialize() 338 this.ecParams = (ECParameterSpec)params; in initialize() 340 …new ECKeyGenerationParameters(new ECDomainParameters(ecParams.getCurve(), ecParams.getG(), ecParam… in initialize() 357 return new KeyPair(new JCEECPublicKey(algorithm, pub, ecParams), in generateKeyPair() 358 new JCEECPrivateKey(algorithm, priv, ecParams)); in generateKeyPair()
|
/dports/java/bouncycastle15/crypto-169/core/src/main/java/org/bouncycastle/crypto/parsers/ |
H A D | ECIESPublicKeyParser.java | 15 private ECDomainParameters ecParams; field in ECIESPublicKeyParser 17 public ECIESPublicKeyParser(ECDomainParameters ecParams) in ECIESPublicKeyParser() argument 19 this.ecParams = ecParams; in ECIESPublicKeyParser() 36 V = new byte[1 + (ecParams.getCurve().getFieldSize()+7)/8]; in readKey() 42 V = new byte[1 + 2*((ecParams.getCurve().getFieldSize()+7)/8)]; in readKey() 52 return new ECPublicKeyParameters(ecParams.getCurve().decodePoint(V), ecParams); in readKey()
|
/dports/java/bouncycastle15/crypto-169/core/src/main/java/org/bouncycastle/asn1/cryptopro/ |
H A D | ECGOST3410NamedCurves.java | 55 ECDomainParameters ecParams = new ECDomainParameters( 62 params.put(CryptoProObjectIdentifiers.gostR3410_2001_CryptoPro_A, ecParams); in params.put() argument 73 ecParams = new ECDomainParameters( 91 ecParams = new ECDomainParameters( 109 ecParams = new ECDomainParameters( 127 ecParams = new ECDomainParameters( 134 params.put(CryptoProObjectIdentifiers.gostR3410_2001_CryptoPro_C, ecParams); in params.put() argument 146 ecParams = new ECDomainParameters( 164 ecParams = new ECDomainParameters( 182 ecParams = new ECDomainParameters( [all …]
|
/dports/java/bouncycastle15/crypto-169/core/src/main/java/org/bouncycastle/crypto/signers/ |
H A D | SM2Signer.java | 36 private ECDomainParameters ecParams; field in SM2Signer 92 ecParams = ecKey.getParameters(); in init() 98 ecParams = ecKey.getParameters(); in init() 106 ecParams = ecKey.getParameters(); in init() 155 BigInteger n = ecParams.getN(); in generateSignature() 191 return encoding.encode(ecParams.getN(), r, s); in generateSignature() 201 BigInteger n = ecParams.getN(); in verifySignature() 259 addFieldElement(digest, ecParams.getCurve().getA()); in getZ() 260 addFieldElement(digest, ecParams.getCurve().getB()); in getZ() 261 addFieldElement(digest, ecParams.getG().getAffineXCoord()); in getZ() [all …]
|
/dports/java/bouncycastle15/crypto-169/prov/src/main/jdk1.4/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
H A D | KeyPairGeneratorSpi.java | 45 ECParameterSpec ecParams = null; field in KeyPairGeneratorSpi.EC 88 this.ecParams = (ECParameterSpec)ecParameters.get(Integers.valueOf(strength)); in initialize() 90 if (ecParams != null) in initialize() 92 …new ECKeyGenerationParameters(new ECDomainParameters(ecParams.getCurve(), ecParams.getG(), ecParam… in initialize() 111 this.ecParams = (ECParameterSpec)params; in initialize() 144 this.ecParams = new ECNamedCurveParameterSpec( in initialize() 152 …new ECKeyGenerationParameters(new ECDomainParameters(ecParams.getCurve(), ecParams.getG(), ecParam… in initialize() 160 this.ecParams = (ECParameterSpec)params; in initialize() 188 if (ecParams == null) in generateKeyPair() 195 ECParameterSpec p = (ECParameterSpec)ecParams; in generateKeyPair()
|
/dports/www/firefox-legacy/firefox-52.8.0esr/security/nss/cmd/ecperf/ |
H A D | ecperf.c | 411 SECKEYECParams ecParams; in ectest_curve_pkcs11() local 423 ecParams.data = NULL; in ectest_curve_pkcs11() 424 ecParams.len = 0; in ectest_curve_pkcs11() 443 template.pValue = ecParams.data; in ectest_curve_pkcs11() 536 ECParams ecParams = { 0 }; in ectest_curve_freebl() local 558 ecParams.name = curve; in ectest_curve_freebl() 560 ecParams.curveOID.data = NULL; in ectest_curve_freebl() 561 ecParams.curveOID.len = 0; in ectest_curve_freebl() 563 ecParams.curve.seed.len = 0; in ectest_curve_freebl() 565 ecParams.DEREncoding.len = 0; in ectest_curve_freebl() [all …]
|
/dports/java/bouncycastle15/crypto-169/prov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dstu/ |
H A D | KeyPairGeneratorSpi.java | 33 Object ecParams = null; field in KeyPairGeneratorSpi 53 if (ecParams != null) in initialize() 57 initialize((ECGenParameterSpec)ecParams, random); in initialize() 78 this.ecParams = params; in initialize() 88 this.ecParams = params; in initialize() 127 this.ecParams = new ECNamedCurveSpec( in initialize() 135 java.security.spec.ECParameterSpec p = (java.security.spec.ECParameterSpec)ecParams; in initialize() 148 this.ecParams = params; in initialize() 176 if (ecParams instanceof ECParameterSpec) in generateKeyPair() 178 ECParameterSpec p = (ECParameterSpec)ecParams; in generateKeyPair() [all …]
|
/dports/java/openjdk16/jdk16u-jdk-16.0.2-7-1/src/jdk.crypto.ec/share/classes/sun/security/ec/ |
H A D | ECKeyPairGenerator.java | 94 ECParameterSpec ecParams = (ECParameterSpec) params; in initialize() local 95 ecSpec = ECUtil.getECParameterSpec(null, ecParams); in initialize() 124 AlgorithmParameters ecParams = ECUtil.getECParameters(null); in ensureCurveIsSupported() local 126 ecParams.init(ecSpec); in ensureCurveIsSupported() 182 ECParameterSpec ecParams = (ECParameterSpec) params; in generateKeyPairImpl() local 184 Optional<ECOperations> opsOpt = ECOperations.forParameters(ecParams); in generateKeyPairImpl() 190 int numBits = ecParams.getOrder().bitLength(); in generateKeyPairImpl() 195 ECPoint genPoint = ecParams.getGenerator(); in generateKeyPairImpl() 202 PrivateKey privateKey = new ECPrivateKeyImpl(privArr, ecParams); in generateKeyPairImpl() 206 PublicKey publicKey = new ECPublicKeyImpl(w, ecParams); in generateKeyPairImpl()
|
/dports/java/openjdk17/jdk17u-jdk-17.0.1-12-1/src/jdk.crypto.ec/share/classes/sun/security/ec/ |
H A D | ECKeyPairGenerator.java | 95 ECParameterSpec ecParams = (ECParameterSpec) params; in initialize() local 96 ecSpec = ECUtil.getECParameterSpec(null, ecParams); in initialize() 125 AlgorithmParameters ecParams = ECUtil.getECParameters(null); in ensureCurveIsSupported() local 127 ecParams.init(ecSpec); in ensureCurveIsSupported() 183 ECParameterSpec ecParams = (ECParameterSpec) params; in generateKeyPairImpl() local 185 Optional<ECOperations> opsOpt = ECOperations.forParameters(ecParams); in generateKeyPairImpl() 191 int numBits = ecParams.getOrder().bitLength(); in generateKeyPairImpl() 196 ECPoint genPoint = ecParams.getGenerator(); in generateKeyPairImpl() 203 PrivateKey privateKey = new ECPrivateKeyImpl(privArr, ecParams); in generateKeyPairImpl() 208 PublicKey publicKey = new ECPublicKeyImpl(w, ecParams); in generateKeyPairImpl()
|
/dports/java/bouncycastle15/crypto-169/core/src/main/java/org/bouncycastle/crypto/kems/ |
H A D | ECIESKeyEncapsulation.java | 123 ECDomainParameters ecParams = ecPubKey.getParameters(); in encrypt() local 124 ECCurve curve = ecParams.getCurve(); in encrypt() 125 BigInteger n = ecParams.getN(); in encrypt() 126 BigInteger h = ecParams.getH(); in encrypt() 137 basePointMultiplier.multiply(ecParams.getG(), r), in encrypt() 186 ECDomainParameters ecParams = ecPrivKey.getParameters(); in decrypt() local 187 ECCurve curve = ecParams.getCurve(); in decrypt() 188 BigInteger n = ecParams.getN(); in decrypt() 189 BigInteger h = ecParams.getH(); in decrypt() 208 xHat = xHat.multiply(ecParams.getHInv()).mod(n); in decrypt()
|
/dports/java/bouncycastle15/crypto-169/prov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ecgost/ |
H A D | KeyPairGeneratorSpi.java | 34 Object ecParams = null; field in KeyPairGeneratorSpi 55 if (ecParams != null) in initialize() 59 initialize((ECGenParameterSpec)ecParams, random); in initialize() 86 this.ecParams = params; in initialize() 96 this.ecParams = params; in initialize() 124 this.ecParams = params; in initialize() 152 …this.ecParams = new ECNamedCurveSpec(ECGOST3410NamedCurves.getName(oid), ecP.getCurve(), ecP.getG(… in init() 175 if (ecParams instanceof ECParameterSpec) in generateKeyPair() 177 ECParameterSpec p = (ECParameterSpec)ecParams; in generateKeyPair() 183 else if (ecParams == null) in generateKeyPair() [all …]
|
/dports/java/bouncycastle15/crypto-169/prov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ecgost12/ |
H A D | KeyPairGeneratorSpi.java | 36 Object ecParams = null; field in KeyPairGeneratorSpi 57 if (ecParams != null) in initialize() 61 initialize((ECGenParameterSpec)ecParams, random); in initialize() 88 this.ecParams = params; in initialize() 98 this.ecParams = params; in initialize() 126 this.ecParams = params; in initialize() 152 this.ecParams = new ECNamedCurveSpec( in init() 180 if (ecParams instanceof ECParameterSpec) in generateKeyPair() 182 ECParameterSpec p = (ECParameterSpec)ecParams; in generateKeyPair() 188 else if (ecParams == null) in generateKeyPair() [all …]
|
/dports/java/bouncycastle15/crypto-169/prov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
H A D | KeyPairGeneratorSpi.java | 44 Object ecParams = null; field in KeyPairGeneratorSpi.EC 88 … ECGenParameterSpec ecParams = (ECGenParameterSpec)ecParameters.get(Integers.valueOf(strength)); in initialize() local 89 if (ecParams == null) in initialize() 96 initialize(ecParams, random); in initialize() 117 this.ecParams = null; in initialize() 122 this.ecParams = params; in initialize() 127 this.ecParams = params; in initialize() 167 if (ecParams instanceof ECParameterSpec) in generateKeyPair() 169 ECParameterSpec p = (ECParameterSpec)ecParams; in generateKeyPair() 175 else if (ecParams == null) in generateKeyPair() [all …]
|
/dports/java/bouncycastle15/crypto-169/prov/src/test/java/org/bouncycastle/jce/provider/test/ |
H A D | ECEncodingTest.java | 106 …byte[] ecParams = Hex.decode("3081C8020101302806072A8648CE3D0101021D00D7C134AA264366862A18302575D1… in performTest() 107 testParams(ecParams, true); in performTest() 109 testParams(ecParams, false); in performTest() 111 …ecParams = Hex.decode("3081C8020101302806072A8648CE3D0101021D00D7C134AA264366862A18302575D1D787B09… in performTest() 112 testParams(ecParams, true); in performTest() 114 testParams(ecParams, false); in performTest() 116 …ecParams = Hex.decode("30820142020101303c06072a8648ce3d0101023100fffffffffffffffffffffffffffffffff… in performTest() 117 testParams(ecParams, true); in performTest() 119 testParams(ecParams, false); in performTest()
|
/dports/java/bouncycastle15/crypto-169/core/src/main/java/org/bouncycastle/crypto/engines/ |
H A D | SM2Engine.java | 39 private ECDomainParameters ecParams; field in SM2Engine 77 ecParams = ecKey.getParameters(); in init() 79 ECPoint s = ((ECPublicKeyParameters)ecKey).getQ().multiply(ecParams.getH()); in init() 90 ecParams = ecKey.getParameters(); in init() 93 curveLength = (ecParams.getCurve().getFieldSize() + 7) / 8; in init() 137 ECPoint c1P = multiplier.multiply(ecParams.getG(), k).normalize(); in encrypt() 171 ECPoint c1P = ecParams.getCurve().decodePoint(c1); in decrypt() 173 ECPoint s = c1P.multiply(ecParams.getH()); in decrypt() 295 int qBitLength = ecParams.getN().bitLength(); in nextK() 302 while (k.equals(BigIntegers.ZERO) || k.compareTo(ecParams.getN()) >= 0); in nextK()
|
/dports/java/bouncycastle15/crypto-169/core/src/main/jdk1.4/org/bouncycastle/crypto/engines/ |
H A D | SM2Engine.java | 37 private ECDomainParameters ecParams; field in SM2Engine 75 ecParams = ecKey.getParameters(); in init() 77 ECPoint s = ((ECPublicKeyParameters)ecKey).getQ().multiply(ecParams.getH()); in init() 88 ecParams = ecKey.getParameters(); in init() 91 curveLength = (ecParams.getCurve().getFieldSize() + 7) / 8; in init() 135 ECPoint c1P = multiplier.multiply(ecParams.getG(), k).normalize(); in encrypt() 169 ECPoint c1P = ecParams.getCurve().decodePoint(c1); in decrypt() 171 ECPoint s = c1P.multiply(ecParams.getH()); in decrypt() 293 int qBitLength = ecParams.getN().bitLength(); in nextK() 300 while (k.equals(BigIntegers.ZERO) || k.compareTo(ecParams.getN()) >= 0); in nextK()
|
/dports/java/bouncycastle15/crypto-169/core/src/main/j2me/org/bouncycastle/crypto/engines/ |
H A D | SM2Engine.java | 37 private ECDomainParameters ecParams; field in SM2Engine 75 ecParams = ecKey.getParameters(); in init() 77 ECPoint s = ((ECPublicKeyParameters)ecKey).getQ().multiply(ecParams.getH()); in init() 88 ecParams = ecKey.getParameters(); in init() 91 curveLength = (ecParams.getCurve().getFieldSize() + 7) / 8; in init() 135 ECPoint c1P = multiplier.multiply(ecParams.getG(), k).normalize(); in encrypt() 169 ECPoint c1P = ecParams.getCurve().decodePoint(c1); in decrypt() 171 ECPoint s = c1P.multiply(ecParams.getH()); in decrypt() 293 int qBitLength = ecParams.getN().bitLength(); in nextK() 300 while (k.equals(BigIntegers.ZERO) || k.compareTo(ecParams.getN()) >= 0); in nextK()
|