/external/conscrypt/src/main/java/org/conscrypt/ |
OpenSSLRSAKeyFactory.java | 29 import java.security.spec.KeySpec; 39 protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { 40 if (keySpec == null) { 41 throw new InvalidKeySpecException("keySpec == null"); 44 if (keySpec instanceof RSAPublicKeySpec) { 45 return new OpenSSLRSAPublicKey((RSAPublicKeySpec) keySpec); 46 } else if (keySpec instanceof X509EncodedKeySpec) { 47 return OpenSSLKey.getPublicKey((X509EncodedKeySpec) keySpec, NativeConstants.EVP_PKEY_RSA); 50 + keySpec.getClass().getName()) [all...] |
/libcore/ojluni/src/main/java/java/security/ |
KeyFactory.java | 30 import java.security.spec.KeySpec; 112 * @see java.security.spec.KeySpec 341 * @param keySpec the specification (key material) of the public key. 348 public final PublicKey generatePublic(KeySpec keySpec) 351 return spi.engineGeneratePublic(keySpec); 357 return mySpi.engineGeneratePublic(keySpec); 379 * @param keySpec the specification (key material) of the private key. 386 public final PrivateKey generatePrivate(KeySpec keySpec) [all...] |
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/ |
SecretKeyFactoryTest.java | 29 import java.security.spec.KeySpec; 341 * Test for <code>generateSecret(KeySpec keySpec)</code> and 342 * <code>getKeySpec(SecretKey key, Class keySpec) 354 KeySpec ks = (defaultAlgorithm.equals(defaultAlgorithm2) ? (KeySpec) new DESKeySpec(bb) : 355 (KeySpec) new DESedeKeySpec(bb)); 356 KeySpec rks = null;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/digest/ |
SHA1.java | 4 import java.security.spec.KeySpec; 109 KeySpec keySpec) 112 if (keySpec instanceof PBEKeySpec) 114 PBEKeySpec pbeSpec = (PBEKeySpec)keySpec; 146 throw new InvalidKeySpecException("Invalid KeySpec");
|
/frameworks/base/keystore/java/android/security/keystore/ |
KeyInfo.java | 23 import java.security.spec.KeySpec; 66 public class KeyInfo implements KeySpec {
|
AndroidKeyStoreSecretKeyFactorySpi.java | 29 import java.security.spec.KeySpec; 48 protected KeySpec engineGetKeySpec(SecretKey key, 215 protected SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException {
|
/libcore/ojluni/src/main/java/javax/crypto/ |
SecretKeyFactory.java | 52 * {@link #generateSecret(java.security.spec.KeySpec) generateSecret} and 447 * @param keySpec the specification (key material) of the secret key 454 public final SecretKey generateSecret(KeySpec keySpec) 457 return spi.engineGenerateSecret(keySpec); 463 return mySpi.engineGenerateSecret(keySpec); 483 * @param keySpec the requested format in which the key material shall be 491 * <code>key</code> and <code>keySpec</code> do not match, or 493 * whereas <code>keySpec</code> is the specification of a software-based 498 public final KeySpec getKeySpec(SecretKey key, Class keySpec [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
KeyUtil.java | 38 import java.security.spec.KeySpec; 145 * @param keySpec 148 * @throws NullPointerException if {@code keySpec} is null 149 * @throws InvalidKeyException if {@code keySpec} is invalid 151 public static final void validate(KeySpec keySpec) 153 if (keySpec == null) { 158 if (keySpec instanceof DHPublicKeySpec) { 159 validateDHPublicKey((DHPublicKeySpec)keySpec);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/ |
DES.java | 8 import java.security.spec.KeySpec; 243 protected KeySpec engineGetKeySpec( 245 Class keySpec) 248 if (keySpec == null) 250 throw new InvalidKeySpecException("keySpec parameter is null"); 257 if (SecretKeySpec.class.isAssignableFrom(keySpec)) 261 else if (DESKeySpec.class.isAssignableFrom(keySpec)) 275 throw new InvalidKeySpecException("Invalid KeySpec"); 279 KeySpec keySpec) [all...] |
DESede.java | 12 import java.security.spec.KeySpec; 309 protected KeySpec engineGetKeySpec( 311 Class keySpec) 314 if (keySpec == null) 316 throw new InvalidKeySpecException("keySpec parameter is null"); 323 if (SecretKeySpec.class.isAssignableFrom(keySpec)) 327 else if (DESedeKeySpec.class.isAssignableFrom(keySpec)) 353 throw new InvalidKeySpecException("Invalid KeySpec"); 357 KeySpec keySpec) [all...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
SecretKeyFactoryTest.java | 32 import java.security.spec.KeySpec; 344 * Test for <code>generateSecret(KeySpec keySpec)</code> and 345 * <code>getKeySpec(SecretKey key, Class keySpec) 357 KeySpec ks = (defaultAlgorithm.equals(defaultAlgorithm2) ? (KeySpec)new DESKeySpec(bb) : 358 (KeySpec)new DESedeKeySpec(bb)); 359 KeySpec rks = null;
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
KeyFactoryTest.java | 42 import java.security.spec.KeySpec; 177 Class<? extends KeySpec> transparentKeySpecClass; 393 Class<? extends KeySpec> keySpecClass; 405 KeySpec spec = anotherKeyFactory.getKeySpec(key, keySpecClass); 422 Class<? extends KeySpec> keySpecClass; 434 KeySpec spec = anotherKeyFactory.getKeySpec(key, keySpecClass);
|
/libcore/ojluni/src/main/java/javax/crypto/spec/ |
DESKeySpec.java | 37 public class DESKeySpec implements java.security.spec.KeySpec {
|
/development/samples/BrokenKeyDerivation/src/com/example/android/brokenkeyderivation/ |
BrokenKeyDerivationActivity.java | 33 import java.security.spec.KeySpec; 83 KeySpec keySpec = new PBEKeySpec(password.toCharArray(), retrieveSalt(), 87 byte[] keyBytes = keyFactory.generateSecret(keySpec).getEncoded();
|
/external/apache-harmony/crypto/src/test/impl/java/org/apache/harmony/crypto/tests/javax/crypto/ |
SecretKeyFactory_ImplTest.java | 30 import java.security.spec.KeySpec; 82 KeySpec keySpec; 87 keySpec = skf.getKeySpec(null, null); 88 assertNull("getKeySpec method must return null", keySpec);
|
/libcore/support/src/test/java/libcore/java/security/ |
StandardNames.java | 24 import java.security.spec.KeySpec; [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/ |
RSAMultiPrimePrivateCrtKeySpecTest.java | 25 import java.security.spec.KeySpec; 72 KeySpec ks = new RSAMultiPrimePrivateCrtKeySpec( 408 KeySpec ks = new RSAMultiPrimePrivateCrtKeySpec(
|
/libcore/luni/src/test/java/tests/security/spec/ |
RSAMultiPrimePrivateCrtKeySpecTest.java | 28 import java.security.spec.KeySpec; 65 KeySpec ks = new RSAMultiPrimePrivateCrtKeySpec( 405 KeySpec ks = new RSAMultiPrimePrivateCrtKeySpec(
|
/libcore/support/src/test/java/tests/security/ |
DefaultKeys.java | 23 import java.security.spec.KeySpec; [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/bc/ |
BcKeyStoreSpi.java | 26 import java.security.spec.KeySpec; 419 KeySpec spec;
|
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
ntsecapi.h | [all...] |
/frameworks/base/services/core/java/com/android/server/ |
MountService.java | 125 import java.security.spec.KeySpec; [all...] |
/prebuilts/devtools/tools/lib/ |
bcprov-jdk15on-1.48.jar | |
/prebuilts/sdk/11/ |
android.jar | |
/prebuilts/sdk/13/ |
android.jar | |