Home
last modified time | relevance | path

Searched refs:DHPublicKey (Results 1 – 25 of 37) sorted by relevance

12

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
DDHPublicKey.java16 public class DHPublicKey class
28 public static DHPublicKey getInstance(ASN1TaggedObject obj, boolean explicit) in getInstance()
39 public static DHPublicKey getInstance(Object obj) in getInstance()
41 if (obj == null || obj instanceof DHPublicKey) in getInstance()
43 return (DHPublicKey)obj; in getInstance()
48 return new DHPublicKey((ASN1Integer)obj); in getInstance()
54 private DHPublicKey(ASN1Integer y) in DHPublicKey() method in DHPublicKey
69 public DHPublicKey(BigInteger y) in DHPublicKey() method in DHPublicKey
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/x9/
DDHPublicKey.java18 public class DHPublicKey class
30 public static DHPublicKey getInstance(ASN1TaggedObject obj, boolean explicit) in getInstance()
41 public static DHPublicKey getInstance(Object obj) in getInstance()
43 if (obj == null || obj instanceof DHPublicKey) in getInstance()
45 return (DHPublicKey)obj; in getInstance()
50 return new DHPublicKey((ASN1Integer)obj); in getInstance()
56 private DHPublicKey(ASN1Integer y) in DHPublicKey() method in DHPublicKey
71 public DHPublicKey(BigInteger y) in DHPublicKey() method in DHPublicKey
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x9/
DDHPublicKey.java18 public class DHPublicKey class
30 public static DHPublicKey getInstance(ASN1TaggedObject obj, boolean explicit) in getInstance()
41 public static DHPublicKey getInstance(Object obj) in getInstance()
43 if (obj == null || obj instanceof DHPublicKey) in getInstance()
45 return (DHPublicKey)obj; in getInstance()
50 return new DHPublicKey((ASN1Integer)obj); in getInstance()
56 private DHPublicKey(ASN1Integer y) in DHPublicKey() method in DHPublicKey
71 public DHPublicKey(BigInteger y) in DHPublicKey() method in DHPublicKey
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
DKeyFactorySpi.java12 import javax.crypto.interfaces.DHPublicKey;
42 else if (spec.isAssignableFrom(DHPublicKeySpec.class) && key instanceof DHPublicKey) in engineGetKeySpec()
44 DHPublicKey k = (DHPublicKey)key; in engineGetKeySpec()
56 if (key instanceof DHPublicKey) in engineTranslateKey()
58 return new BCDHPublicKey((DHPublicKey)key); in engineTranslateKey()
DKeyAgreementSpi.java16 import javax.crypto.interfaces.DHPublicKey;
152 if (!(key instanceof DHPublicKey)) in engineDoPhase()
156 DHPublicKey pubKey = (DHPublicKey)key; in engineDoPhase()
163 BigInteger peerY = ((DHPublicKey)key).getY(); in engineDoPhase()
420 if (pubKey instanceof DHPublicKey) in generatePublicKeyParameter()
428 DHPublicKey pub = (DHPublicKey)pubKey; in generatePublicKeyParameter()
DBCDHPublicKey.java8 import javax.crypto.interfaces.DHPublicKey;
30 implements DHPublicKey
66 DHPublicKey key) in BCDHPublicKey()
248 if (!(o instanceof DHPublicKey)) in equals()
253 DHPublicKey other = (DHPublicKey)o; in equals()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/dh/
DKeyFactorySpi.java13 import javax.crypto.interfaces.DHPublicKey;
46 else if (spec.isAssignableFrom(DHPublicKeySpec.class) && key instanceof DHPublicKey) in engineGetKeySpec()
48 DHPublicKey k = (DHPublicKey)key; in engineGetKeySpec()
60 if (key instanceof DHPublicKey) in engineTranslateKey()
62 return new BCDHPublicKey((DHPublicKey)key); in engineTranslateKey()
DKeyAgreementSpi.java17 import javax.crypto.interfaces.DHPublicKey;
154 if (!(key instanceof DHPublicKey)) in engineDoPhase()
158 DHPublicKey pubKey = (DHPublicKey)key; in engineDoPhase()
165 BigInteger peerY = ((DHPublicKey)key).getY(); in engineDoPhase()
422 if (pubKey instanceof DHPublicKey) in generatePublicKeyParameter()
430 DHPublicKey pub = (DHPublicKey)pubKey; in generatePublicKeyParameter()
DBCDHPublicKey.java9 import javax.crypto.interfaces.DHPublicKey;
34 implements DHPublicKey
70 DHPublicKey key) in BCDHPublicKey()
252 if (!(o instanceof DHPublicKey)) in equals()
257 DHPublicKey other = (DHPublicKey)o; in equals()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/asymmetric/dh/
DKeyFactorySpi.java13 import javax.crypto.interfaces.DHPublicKey;
46 else if (spec.isAssignableFrom(DHPublicKeySpec.class) && key instanceof DHPublicKey) in engineGetKeySpec()
48 DHPublicKey k = (DHPublicKey)key; in engineGetKeySpec()
60 if (key instanceof DHPublicKey) in engineTranslateKey()
62 return new BCDHPublicKey((DHPublicKey)key); in engineTranslateKey()
DKeyAgreementSpi.java17 import javax.crypto.interfaces.DHPublicKey;
154 if (!(key instanceof DHPublicKey)) in engineDoPhase()
158 DHPublicKey pubKey = (DHPublicKey)key; in engineDoPhase()
165 BigInteger peerY = ((DHPublicKey)key).getY(); in engineDoPhase()
422 if (pubKey instanceof DHPublicKey) in generatePublicKeyParameter()
430 DHPublicKey pub = (DHPublicKey)pubKey; in generatePublicKeyParameter()
DBCDHPublicKey.java9 import javax.crypto.interfaces.DHPublicKey;
34 implements DHPublicKey
70 DHPublicKey key) in BCDHPublicKey()
252 if (!(o instanceof DHPublicKey)) in equals()
257 DHPublicKey other = (DHPublicKey)o; in equals()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DDHUtil.java8 import javax.crypto.interfaces.DHPublicKey;
25 if (key instanceof DHPublicKey) in generatePublicKeyParameter()
27 DHPublicKey k = (DHPublicKey)key; in generatePublicKeyParameter()
DJCEDHPublicKey.java8 import javax.crypto.interfaces.DHPublicKey;
25 implements DHPublicKey
41 DHPublicKey key) in JCEDHPublicKey()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/provider/
DDHUtil.java9 import javax.crypto.interfaces.DHPublicKey;
27 if (key instanceof DHPublicKey) in generatePublicKeyParameter()
29 DHPublicKey k = (DHPublicKey)key; in generatePublicKeyParameter()
DJCEDHPublicKey.java9 import javax.crypto.interfaces.DHPublicKey;
29 implements DHPublicKey
45 DHPublicKey key) in JCEDHPublicKey()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jce/provider/
DDHUtil.java9 import javax.crypto.interfaces.DHPublicKey;
27 if (key instanceof DHPublicKey) in generatePublicKeyParameter()
29 DHPublicKey k = (DHPublicKey)key; in generatePublicKeyParameter()
DJCEDHPublicKey.java9 import javax.crypto.interfaces.DHPublicKey;
29 implements DHPublicKey
45 DHPublicKey key) in JCEDHPublicKey()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DDHUtil.java8 import javax.crypto.interfaces.DHPublicKey;
30 if (key instanceof DHPublicKey) in generatePublicKeyParameter()
32 DHPublicKey k = (DHPublicKey)key; in generatePublicKeyParameter()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/util/
DDHUtil.java9 import javax.crypto.interfaces.DHPublicKey;
32 if (key instanceof DHPublicKey) in generatePublicKeyParameter()
34 DHPublicKey k = (DHPublicKey)key; in generatePublicKeyParameter()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/asymmetric/util/
DDHUtil.java9 import javax.crypto.interfaces.DHPublicKey;
32 if (key instanceof DHPublicKey) in generatePublicKeyParameter()
34 DHPublicKey k = (DHPublicKey)key; in generatePublicKeyParameter()
/external/ukey2/src/main/javatest/com/google/security/cryptauth/lib/securegcm/
DKeyEncodingTest.java31 import javax.crypto.interfaces.DHPublicKey;
159 if (a instanceof DHPublicKey) { in assertKeysEqual()
160 DHPublicKey ya = (DHPublicKey) a; in assertKeysEqual()
161 DHPublicKey yb = (DHPublicKey) b; in assertKeysEqual()
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securemessage/
DPublicKeyProtoUtil.java42 import javax.crypto.interfaces.DHPublicKey;
188 if (pk instanceof DHPublicKey) { in encodePublicKey()
255 DHPublicKey dhpk = pkToDHPublicKey(pk); in encodeDh2048PublicKey()
353 public static DHPublicKey parseDh2048PublicKey(DhPublicKey pk) throws InvalidKeySpecException { in parseDh2048PublicKey()
367 return (DHPublicKey) KeyFactory.getInstance(DH_ALG).generatePublic( in parseDh2048PublicKey()
400 DHPublicKey publicKey = new DHPublicKeyShim(DH_G.modPow(x, DH_P), spec); in generateDh2048KeyPair()
530 private static DHPublicKey pkToDHPublicKey(PublicKey pk) { in pkToDHPublicKey()
534 if (!(pk instanceof DHPublicKey)) { in pkToDHPublicKey()
537 return (DHPublicKey) pk; in pkToDHPublicKey()
640 public static class DHPublicKeyShim extends DHKeyShim implements DHPublicKey {
/external/ukey2/src/main/javatest/com/google/security/cryptauth/lib/securemessage/
DPublicKeyProtoUtilTest.java38 import javax.crypto.interfaces.DHPublicKey;
52 private DHPublicKey dhPublicKey;
60 dhPublicKey = (DHPublicKey) PublicKeyProtoUtil.generateDh2048KeyPair().getPublic(); in setUp()
77 DHPublicKey parsedDHPublicKey = in testPublicKeyProtoSpecificEncodeParse()
101 DHPublicKey parsedDHPublicKey = in testPublicKeyProtoGenericEncodeParse()
314 BigInteger clientY = ((DHPublicKey) clientKeyPair.getPublic()).getY(); in testDhKeyAgreementWorks()
315 BigInteger serverY = ((DHPublicKey) serverKeyPair.getPublic()).getY(); in testDhKeyAgreementWorks()
/external/python/pyasn1-modules/pyasn1_modules/
Drfc5480.py26 DHPublicKey = rfc3279.DHPublicKey variable

12