Searched refs:DHParameter (Results 1 - 8 of 8) sorted by relevance

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
H A DDHParameter.java13 public class DHParameter class in inherits:ASN1Object
18 public DHParameter( method in class:DHParameter
36 public static DHParameter getInstance(
39 if (obj instanceof DHParameter)
41 return (DHParameter)obj;
46 return new DHParameter(ASN1Sequence.getInstance(obj));
52 private DHParameter( method in class:DHParameter
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
H A DAlgorithmParametersSpi.java10 import org.bouncycastle.asn1.pkcs.DHParameter;
38 * Return the PKCS#3 ASN.1 structure DHParameter.
41 * DHParameter ::= SEQUENCE {
49 DHParameter dhP = new DHParameter(currentSpec.getP(), currentSpec.getG(), currentSpec.getL());
102 DHParameter dhP = DHParameter.getInstance(params);
H A DBCDHPrivateKey.java18 import org.bouncycastle.asn1.pkcs.DHParameter;
72 DHParameter params = DHParameter.getInstance(seq);
132 PrivateKeyInfo info = new PrivateKeyInfo(new AlgorithmIdentifier(PKCSObjectIdentifiers.dhKeyAgreement, new DHParameter(dhSpec.getP(), dhSpec.getG(), dhSpec.getL()).toASN1Primitive()), new ASN1Integer(getX()));
H A DBCDHPublicKey.java15 import org.bouncycastle.asn1.pkcs.DHParameter;
86 DHParameter params = DHParameter.getInstance(seq);
126 return KeyUtil.getEncodedSubjectPublicKeyInfo(new AlgorithmIdentifier(PKCSObjectIdentifiers.dhKeyAgreement, new DHParameter(dhSpec.getP(), dhSpec.getG(), dhSpec.getL()).toASN1Primitive()), new ASN1Integer(y));
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
H A DJCEDHPrivateKey.java19 import org.bouncycastle.asn1.pkcs.DHParameter;
72 DHParameter params = DHParameter.getInstance(seq);
132 PrivateKeyInfo info = new PrivateKeyInfo(new AlgorithmIdentifier(PKCSObjectIdentifiers.dhKeyAgreement, new DHParameter(dhSpec.getP(), dhSpec.getG(), dhSpec.getL())), new DERInteger(getX()));
H A DJCEDHPublicKey.java15 import org.bouncycastle.asn1.pkcs.DHParameter;
85 DHParameter params = DHParameter.getInstance(seq);
125 return KeyUtil.getEncodedSubjectPublicKeyInfo(new AlgorithmIdentifier(PKCSObjectIdentifiers.dhKeyAgreement, new DHParameter(dhSpec.getP(), dhSpec.getG(), dhSpec.getL())), new DERInteger(y));
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/
H A DPrivateKeyFactory.java18 import org.bouncycastle.asn1.pkcs.DHParameter;
100 DHParameter params = DHParameter.getInstance(algId.getParameters());
H A DPublicKeyFactory.java20 import org.bouncycastle.asn1.pkcs.DHParameter;
135 DHParameter params = DHParameter.getInstance(algId.getParameters());

Completed in 140 milliseconds