HomeSort by relevance Sort by last modified time
    Searched refs:keySpec (Results 1 - 25 of 78) sorted by null

1 2 3 4

  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
KeySpecParser.java 48 // TODO: Rename to KeySpec and make this class to the key specification object.
59 private static boolean hasIcon(@Nonnull final String keySpec) {
60 return keySpec.startsWith(KeyboardIconsSet.PREFIX_ICON);
63 private static boolean hasCode(@Nonnull final String keySpec, final int labelEnd) {
64 if (labelEnd <= 0 || labelEnd + 1 >= keySpec.length()) {
67 if (keySpec.startsWith(KeyboardCodesSet.PREFIX_CODE, labelEnd + 1)) {
72 if (keySpec.startsWith(PREFIX_HEX, labelEnd + 1)) {
98 private static int indexOfLabelEnd(@Nonnull final String keySpec) {
99 final int length = keySpec.length();
100 if (keySpec.indexOf(BACKSLASH) < 0)
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/
KeyFactory.java 9 import java.security.spec.KeySpec;
22 KeySpec keySpec)
25 if (keySpec instanceof PKCS8EncodedKeySpec)
29 PrivateKeyInfo info = PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded());
45 throw new InvalidKeySpecException("Unknown KeySpec type: " + keySpec.getClass().getName());
49 KeySpec keySpec)
52 if (keySpec instanceof X509EncodedKeySpec
    [all...]
  /libcore/ojluni/src/main/java/java/security/
KeyFactorySpi.java 28 import java.security.spec.KeySpec;
63 * @see java.security.spec.KeySpec
76 * @param keySpec the specification (key material) of the public key.
83 protected abstract PublicKey engineGeneratePublic(KeySpec keySpec)
90 * @param keySpec the specification (key material) of the private key.
97 protected abstract PrivateKey engineGeneratePrivate(KeySpec keySpec)
103 * <code>keySpec</code> identifies the specification class in which
111 * @param keySpec the specification class in whic
    [all...]
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...]
  /libcore/ojluni/src/main/java/javax/crypto/
SecretKeyFactorySpi.java 60 * @param keySpec the specification (key material) of the secret key
67 protected abstract SecretKey engineGenerateSecret(KeySpec keySpec)
76 * @param keySpec the requested format in which the key material shall be
84 * <code>key</code> and <code>keySpec</code> do not match, or
86 * whereas <code>keySpec</code> is the specification of a software-based
91 protected abstract KeySpec engineGetKeySpec(SecretKey key, Class keySpec)
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/ec/
ECKeyFactory.java 159 protected PublicKey engineGeneratePublic(KeySpec keySpec)
162 return implGeneratePublic(keySpec);
171 protected PrivateKey engineGeneratePrivate(KeySpec keySpec)
174 return implGeneratePrivate(keySpec);
224 private PublicKey implGeneratePublic(KeySpec keySpec)
226 if (keySpec instanceof X509EncodedKeySpec) {
227 X509EncodedKeySpec x509Spec = (X509EncodedKeySpec)keySpec;
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
BaseSecretKeyFactory.java 6 import java.security.spec.KeySpec;
30 KeySpec keySpec)
33 if (keySpec instanceof SecretKeySpec)
35 return (SecretKey)keySpec;
38 throw new InvalidKeySpecException("Invalid KeySpec");
41 protected KeySpec engineGetKeySpec(
43 Class keySpec)
46 if (keySpec == null)
48 throw new InvalidKeySpecException("keySpec parameter is null")
    [all...]
PBE.java 340 PBEKeySpec keySpec,
349 key = convertPassword(type, keySpec);
351 generator.init(key, keySpec.getSalt(), keySpec.getIterationCount());
368 PBEKeySpec keySpec,
378 key = convertPassword(type, keySpec);
380 generator.init(key, keySpec.getSalt(), keySpec.getIterationCount());
428 private static byte[] convertPassword(int type, PBEKeySpec keySpec)
434 key = PBEParametersGenerator.PKCS12PasswordToBytes(keySpec.getPassword())
    [all...]
PBESecretKeyFactory.java 4 import java.security.spec.KeySpec;
41 KeySpec keySpec)
44 if (keySpec instanceof PBEKeySpec)
46 PBEKeySpec pbeSpec = (PBEKeySpec)keySpec;
66 throw new InvalidKeySpecException("Invalid KeySpec");
  /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...]
OpenSSLECKeyFactory.java 32 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 ECPublicKeySpec) {
45 return new OpenSSLECPublicKey((ECPublicKeySpec) keySpec);
46 } else if (keySpec instanceof X509EncodedKeySpec) {
47 return OpenSSLKey.getPublicKey((X509EncodedKeySpec) keySpec, NativeConstants.EVP_PKEY_EC);
50 + keySpec.getClass().getName())
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
BaseKeyFactorySpi.java 7 import java.security.spec.KeySpec;
20 KeySpec keySpec)
23 if (keySpec instanceof PKCS8EncodedKeySpec)
27 return generatePrivate(PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded()));
41 KeySpec keySpec)
44 if (keySpec instanceof X509EncodedKeySpec)
48 return generatePublic(SubjectPublicKeyInfo.getInstance(((X509EncodedKeySpec)keySpec).getEncoded()));
61 protected KeySpec engineGetKeySpec
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
PunctuationSuggestions.java 73 final String keySpec = super.getWord(index);
74 final int code = KeySpecParser.getCode(keySpec);
76 ? KeySpecParser.getOutputText(keySpec)
87 final String keySpec = super.getWord(index);
88 return KeySpecParser.getLabel(keySpec);
116 private static SuggestedWordInfo newHardCodedWordInfo(final String keySpec) {
117 return new SuggestedWordInfo(keySpec, "" /* prevWordsContext */,
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
KeyFactorySpi.java 11 import java.security.spec.KeySpec;
31 protected KeySpec engineGetKeySpec(
84 KeySpec keySpec)
87 if (keySpec instanceof PKCS8EncodedKeySpec)
91 return generatePrivate(PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded()));
101 RSAPrivateKey.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded()));
109 else if (keySpec instanceof RSAPrivateCrtKeySpec)
111 return new BCRSAPrivateCrtKey((RSAPrivateCrtKeySpec)keySpec);
113 else if (keySpec instanceof RSAPrivateKeySpec
    [all...]
  /external/apache-harmony/crypto/src/test/support/common/java/org/apache/harmony/crypto/tests/support/
MySecretKeyFactorySpi.java 26 import java.security.spec.KeySpec;
38 protected SecretKey engineGenerateSecret(KeySpec keySpec)
45 protected KeySpec engineGetKeySpec(SecretKey key, Class keySpec)
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/
KeyFactorySpi.java 9 import java.security.spec.KeySpec;
30 protected KeySpec engineGetKeySpec(
68 KeySpec keySpec)
71 if (keySpec instanceof DHPrivateKeySpec)
73 return new BCDHPrivateKey((DHPrivateKeySpec)keySpec);
76 return super.engineGeneratePrivate(keySpec);
80 KeySpec keySpec)
83 if (keySpec instanceof DHPublicKeySpec
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/
KeyFactorySpi.java 13 import java.security.spec.KeySpec;
27 protected KeySpec engineGetKeySpec(
95 KeySpec keySpec)
98 if (keySpec instanceof DSAPrivateKeySpec)
100 return new BCDSAPrivateKey((DSAPrivateKeySpec)keySpec);
103 return super.engineGeneratePrivate(keySpec);
107 KeySpec keySpec)
110 if (keySpec instanceof DSAPublicKeySpec
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
MySecretKeyFactorySpi.java 27 import java.security.spec.KeySpec;
40 protected SecretKey engineGenerateSecret(KeySpec keySpec)
47 protected KeySpec engineGetKeySpec(SecretKey key, Class 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...]
KeyFactorySpiTest.java 22 import java.security.spec.KeySpec;
43 KeySpec ks = new MyKeySpec();
44 KeySpec kss = new MyKeySpec();
56 protected PrivateKey engineGeneratePrivate(KeySpec keySpec){
59 protected PublicKey engineGeneratePublic(KeySpec keySpec){
62 protected KeySpec engineGetKeySpec(Key key, Class keySpec){
70 class MyKeySpec implements KeySpec {}
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
SecretKeyFactorySpiTest.java 27 import java.security.spec.KeySpec;
41 protected SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException {
42 return super.engineGenerateSecret(keySpec);
46 protected KeySpec engineGetKeySpec(SecretKey key, Class keySpec)
48 return super.engineGetKeySpec(key, keySpec);
67 KeySpec kspec = null;
  /external/mdnsresponder/mDNSShared/
dnsextd_parser.y 58 typedef struct KeySpec
63 struct KeySpec * next;
64 } KeySpec;
79 static KeySpec * g_keys;
200 KeySpec * keySpec;
202 keySpec = ( KeySpec* ) malloc( sizeof( KeySpec ) );
204 if ( !keySpec )
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
KeyFactorySpi.java 11 import java.security.spec.KeySpec;
57 protected KeySpec engineGetKeySpec(
125 KeySpec keySpec)
128 if (keySpec instanceof ECPrivateKeySpec)
130 return new BCECPrivateKey(algorithm, (ECPrivateKeySpec)keySpec, configuration);
132 else if (keySpec instanceof java.security.spec.ECPrivateKeySpec)
134 return new BCECPrivateKey(algorithm, (java.security.spec.ECPrivateKeySpec)keySpec, configuration);
137 return super.engineGeneratePrivate(keySpec);
141 KeySpec keySpec
    [all...]
  /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...]

Completed in 349 milliseconds

1 2 3 4