OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:keySpec
(Results
1 - 24
of
24
) sorted by null
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
SubjectPublicKeyInfo.java
29
import java.security.spec.
KeySpec
;
112
final
KeySpec
keySpec
= new X509EncodedKeySpec(encoded);
116
publicKey = generateKeyForAlgorithm(
keySpec
, algName);
124
publicKey = generateKeyForAlgorithm(
keySpec
, algOid);
140
* Try to generate a PublicKey for a given {@code
keySpec
} and
142
* a missing {@code KeyFactory} or invalid {@code
KeySpec
}, it will return
145
private static PublicKey generateKeyForAlgorithm(
KeySpec
keySpec
, String algorithm) {
147
return KeyFactory.getInstance(algorithm).generatePublic(
keySpec
);
[
all
...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
CipherPBEThread.java
42
PBEKeySpec
keySpec
= new PBEKeySpec("top sicret password".toCharArray());
44
SecretKey key = skf.generateSecret(
keySpec
);
/external/apache-harmony/crypto/src/test/impl/java/org/apache/harmony/crypto/tests/javax/crypto/
SecretKeyFactory_ImplTest.java
30
import java.security.spec.
KeySpec
;
83
KeySpec
keySpec
;
88
keySpec
= skf.getKeySpec(null, null);
89
assertNull("getKeySpec method must return null",
keySpec
);
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/
CipherTest.java
264
DESedeKeySpec
keySpec
= new DESedeKeySpec(keyMaterial);
266
Key k = skf.generateSecret(
keySpec
);
313
DESedeKeySpec
keySpec
= new DESedeKeySpec(keyMaterial);
315
Key k = skf.generateSecret(
keySpec
);
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/
CertPinInstallReceiverTest.java
141
PKCS8EncodedKeySpec
keySpec
= new PKCS8EncodedKeySpec(derKey);
143
return (PrivateKey) keyFactory.generatePrivate(
keySpec
);
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
KeyFactoryTest.java
19
import java.security.spec.
KeySpec
;
190
TestPublicKeySpec
keySpec
= new TestPublicKeySpec(key);
191
PublicKey publicKey = factory.generatePublic(
keySpec
);
198
KeySpec
[] keySpecs = {
211
KeySpec
keySpec
= keySpecs[i];
213
(
keySpec
== null ? "null" :
keySpec
.toString()) + ")";
216
PublicKey generatePublic = factory.generatePublic(
keySpec
);
239
TestPrivateKeySpec
keySpec
= new TestPrivateKeySpec(key)
[
all
...]
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/
DSAKeyFactoryImplTest.java
37
import java.security.spec.
KeySpec
;
77
static
KeySpec
x509KeySpec;
92
static
KeySpec
pkcs8KeySpec;
125
x509KeySpec = (
KeySpec
) new X509EncodedKeySpec(publicEncoding);
140
pkcs8KeySpec = (
KeySpec
) new PKCS8EncodedKeySpec(privateEncoding);
257
* A test against the "generatePublic(
KeySpec
)" method.
276
* A test against the "generatePublic(
KeySpec
)" method.
287
* A test against the "generatePublic(
KeySpec
)" method.
293
KeySpec
keySpec
= (KeySpec) new DSAPublicKeySpec(publicY, publicP, publicQ, publicG)
[
all
...]
/libcore/luni/src/test/java/libcore/java/security/
SignatureTest.java
185
X509EncodedKeySpec
keySpec
= new X509EncodedKeySpec(PK_BYTES);
187
PublicKey pk = keyFactory.generatePublic(
keySpec
);
[
all
...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
CipherTest.java
328
DESedeKeySpec
keySpec
= new DESedeKeySpec(keyMaterial);
330
Key k = skf.generateSecret(
keySpec
);
386
DESedeKeySpec
keySpec
= new DESedeKeySpec(keyMaterial);
388
Key k = skf.generateSecret(
keySpec
);
[
all
...]
/libcore/luni/src/test/java/libcore/javax/crypto/
CipherTest.java
251
RSAPrivateKeySpec
keySpec
= new RSAPrivateKeySpec(RSA_2048_modulus,
253
key = kf.generatePrivate(
keySpec
);
273
RSAPublicKeySpec
keySpec
= new RSAPublicKeySpec(RSA_2048_modulus,
275
key = kf.generatePublic(
keySpec
);
[
all
...]
/frameworks/base/core/java/android/content/pm/
PackageParser.java
[
all
...]
/prebuilts/sdk/11/
android.jar
/prebuilts/sdk/13/
android.jar
/prebuilts/sdk/16/
android.jar
/prebuilts/sdk/5/
android.jar
/prebuilts/sdk/6/
android.jar
/prebuilts/sdk/8/
android.jar
/prebuilts/sdk/9/
android.jar
/prebuilts/sdk/10/
android.jar
/prebuilts/sdk/7/
android.jar
/prebuilts/sdk/12/
android.jar
/prebuilts/sdk/14/
android.jar
/prebuilts/sdk/17/
android.jar
/prebuilts/sdk/4/
android.jar
Completed in 189 milliseconds