OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:KeyAgreement
(Results
1 - 24
of
24
) sorted by null
/external/apache-harmony/crypto/src/test/impl/java/org/apache/harmony/crypto/tests/javax/crypto/
KeyAgreement_ImplTest.java
35
import javax.crypto.
KeyAgreement
;
43
* Tests for
KeyAgreement
class constructors and methods
49
private static final String srvKeyAgreement = "
KeyAgreement
";
85
protected void checkResult(
KeyAgreement
keyAgr)
125
* returns
KeyAgreement
object
131
KeyAgreement
.getInstance(null);
138
KeyAgreement
.getInstance(invalidValues[i]);
144
KeyAgreement
keyAgr;
146
keyAgr =
KeyAgreement
.getInstance(validValues[i]);
161
* returns
KeyAgreement
objec
[
all
...]
KeyAgreement_Impl1Test.java
28
import javax.crypto.
KeyAgreement
;
37
* Tests for
KeyAgreement
constructor and methods
43
public static final String srvKeyAgreement = "
KeyAgreement
";
52
private static final String NotSupportMsg = "There is no suitable provider for
KeyAgreement
";
62
* Test for <code>
KeyAgreement
</code> constructor Assertion: returns
63
*
KeyAgreement
object
72
KeyAgreement
keyA = new myKeyAgreement(spi, defaultProvider,
92
* Additional class for
KeyAgreement
constructor verification
95
class myKeyAgreement extends
KeyAgreement
{
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
KeyAgreementTest.java
38
import javax.crypto.
KeyAgreement
;
52
* Tests for
KeyAgreement
constructor and methods
57
public static final String srvKeyAgreement = "
KeyAgreement
";
67
private static final String NotSupportMsg = "There is no suitable provider for
KeyAgreement
";
97
private
KeyAgreement
[] createKAs() throws Exception {
102
KeyAgreement
[] ka = new
KeyAgreement
[3];
103
ka[0] =
KeyAgreement
.getInstance(defaultAlgorithm);
104
ka[1] =
KeyAgreement
.getInstance(defaultAlgorithm, defaultProvider);
105
ka[2] =
KeyAgreement
.getInstance(defaultAlgorithm
[
all
...]
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/
KeyAgreementTest.java
36
import javax.crypto.
KeyAgreement
;
49
* Tests for
KeyAgreement
constructor and methods
55
public static final String srvKeyAgreement = "
KeyAgreement
";
65
private static final String NotSupportMsg = "There is no suitable provider for
KeyAgreement
";
95
private
KeyAgreement
[] createKAs() throws Exception {
100
KeyAgreement
[] ka = new
KeyAgreement
[3];
101
ka[0] =
KeyAgreement
.getInstance(defaultAlgorithm);
102
ka[1] =
KeyAgreement
.getInstance(defaultAlgorithm, defaultProvider);
103
ka[2] =
KeyAgreement
.getInstance(defaultAlgorithm
[
all
...]
/libcore/luni/src/main/java/javax/crypto/
KeyAgreement.java
36
public class
KeyAgreement
{
39
private static final Engine ENGINE = new Engine("
KeyAgreement
");
54
* Creates a new {@code
KeyAgreement
} instance.
59
* the provider providing this
KeyAgreement
.
63
protected
KeyAgreement
(KeyAgreementSpi keyAgreeSpi, Provider provider,
80
* Returns the provider for this {@code
KeyAgreement
} instance.
82
* @return the provider for this {@code
KeyAgreement
} instance.
89
* Creates a new {@code
KeyAgreement
} for the specified algorithm.
99
public static final
KeyAgreement
getInstance(String algorithm)
105
return new
KeyAgreement
((KeyAgreementSpi) sap.spi, sap.provider, algorithm)
[
all
...]
/libcore/support/src/test/java/tests/security/
AlgorithmParameterKeyAgreementHelper.java
24
import javax.crypto.
KeyAgreement
;
49
KeyAgreement
keyAgreement
= null;
51
keyAgreement
=
KeyAgreement
.getInstance(algorithmName);
57
keyAgreement
.init(keyPair.getPrivate());
62
keyAgreement
.doPhase(keyPair.getPublic(), true);
68
Assert.assertNotNull("generated secret is null",
keyAgreement
KeyAgreementHelper.java
24
import javax.crypto.
KeyAgreement
;
41
KeyAgreement
keyAgreement
= null;
43
keyAgreement
=
KeyAgreement
.getInstance(algorithmName);
49
keyAgreement
.init(encryptKey);
54
keyAgreement
.doPhase(decryptKey, true);
60
Assert.assertNotNull("generated secret is null",
keyAgreement
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/
DefaultJcaJceHelper.java
14
import javax.crypto.
KeyAgreement
;
36
public
KeyAgreement
createKeyAgreement(String algorithm)
39
return
KeyAgreement
.getInstance(algorithm);
JcaJceHelper.java
15
import javax.crypto.
KeyAgreement
;
30
KeyAgreement
createKeyAgreement(String algorithm)
NamedJcaJceHelper.java
15
import javax.crypto.
KeyAgreement
;
44
public
KeyAgreement
createKeyAgreement(String algorithm)
47
return
KeyAgreement
.getInstance(algorithm, providerName);
ProviderJcaJceHelper.java
15
import javax.crypto.
KeyAgreement
;
44
public
KeyAgreement
createKeyAgreement(String algorithm)
47
return
KeyAgreement
.getInstance(algorithm, provider);
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
KeyAgreementThread.java
28
import javax.crypto.
KeyAgreement
;
55
KeyAgreement
ka =
KeyAgreement
.getInstance("DH");
/libcore/luni/src/test/java/libcore/javax/crypto/
ECDHKeyAgreementTest.java
43
import javax.crypto.
KeyAgreement
;
48
* Tests for all registered Elliptic Curve Diffie-Hellman {@link
KeyAgreement
} providers.
92
* of: first key pair, second key pair, and the {@code
KeyAgreement
}. This is to check that
93
* the {@code
KeyAgreement
} instances work with keys of all registered providers.
151
KeyAgreement
keyAgreement
= getKeyAgreement(provider);
153
keyAgreement
.init(null);
163
KeyAgreement
keyAgreement
= getKeyAgreement(provider);
165
keyAgreement
.init(KAT_PUBLIC_KEY1)
[
all
...]
/libcore/crypto/src/main/java/org/conscrypt/
ClientHandshakeImpl.java
32
import javax.crypto.
KeyAgreement
;
481
KeyAgreement
agreement =
KeyAgreement
.getInstance("DH");
ServerHandshakeImpl.java
34
import javax.crypto.
KeyAgreement
;
238
KeyAgreement
agreement =
KeyAgreement
.getInstance("DH");
/prebuilts/sdk/11/
android.jar
/prebuilts/sdk/12/
android.jar
/prebuilts/sdk/13/
android.jar
/prebuilts/sdk/16/
android.jar
/prebuilts/sdk/17/
android.jar
/prebuilts/sdk/4/
android.jar
/prebuilts/sdk/5/
android.jar
/prebuilts/sdk/8/
android.jar
/prebuilts/sdk/9/
android.jar
Completed in 1235 milliseconds