HomeSort by relevance Sort by last modified time
    Searched refs:Key (Results 51 - 75 of 143) sorted by null

1 23 4 5 6

  /dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
CipherSpiTest.java 33 import java.security.Key;
89 protected void engineInit(int opmode, Key key, SecureRandom random)
91 super.engineInit(opmode, key, random);
95 protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params,
97 super.engineInit(opmode, key, params, random);
101 protected void engineInit(int opmode, Key key, AlgorithmParameters params,
103 super.engineInit(opmode, key, params, random)
    [all...]
MacSpiTest.java 33 import java.security.Key;
64 protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, InvalidAlgorithmParameterException {
65 super.engineInit(key, params);
98 protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, InvalidAlgorithmParameterException {
99 super.engineInit(key, params);
137 protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, InvalidAlgorithmParameterException {
138 super.engineInit(key, params)
    [all...]
KeyAgreementTest.java 361 * Test for the methods: <code>init(Key key)</code>
374 args = {java.security.Key.class}
441 * Test for <code>doPhase(Key key, boolean lastPhase)</code> method
442 * Assertion: throws InvalidKeyException if key is not appropriate
449 args = {java.security.Key.class, boolean.class}
456 args = {java.security.Key.class, boolean.class}
500 * Test for the methods <code>init(Key key)</code
    [all...]
  /dalvik/libcore/security/src/main/java/java/security/
KeyFactory.java 28 * public and private key objects and convert keys between their external
54 * the concrete key factory service.
168 * Generates a instance of {@code PublicKey} from the given key
172 * the specification of the public key
173 * @return the public key
183 * Generates a instance of {@code PrivateKey} from the given key
187 * the specification of the private key.
188 * @return the private key.
198 * Returns the key specification for the specified key
    [all...]
  /dalvik/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
MyKeyStoreSpi.java 29 import java.security.Key;
48 public Key engineGetKey(String alias, char[] password)
68 public void engineSetKeyEntry(String alias, Key key, char[] password,
74 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain)
163 public void verify(PublicKey key) {
167 public void verify(PublicKey key, String sigProvider) {
MyKeyStore.java 29 import java.security.Key;
63 public Key engineGetKey(String alias, char[] password)
66 return (Key) Keys.get(alias);
92 public void engineSetKeyEntry(String alias, Key key, char[] password,
97 Keys.put(alias, key);
104 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain)
106 if (key == null) {
107 throw new KeyStoreException("Not Supported for null key");
116 alias, alias, key);
    [all...]
  /external/stlport/test/unit/
find_test.cpp 51 struct Key
90 Key keys[10] = { {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0}, {0} };
91 Key const* k = find(keys + 0, keys + 10, 5);
  /dalvik/libcore/security/src/main/java/org/apache/harmony/security/provider/crypto/
DSAKeyFactoryImpl.java 22 import java.security.Key;
41 * This method generates a DSAPrivateKey object from the provided key specification.
44 * keySpec - the specification (key material) for the DSAPrivateKey.
69 * This method generates a DSAPublicKey object from the provided key specification.
72 * keySpec - the specification (key material) for the DSAPublicKey.
97 * This method returns a specification for the supplied key.
102 * @param key -
113 protected <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpec)
118 if (key != null)
    [all...]
  /dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/
KeyFactoryTest.java 12 import java.security.Key;
214 TestPublicKey key = new TestPublicKey(); local
215 TestPublicKeySpec keySpec = new TestPublicKeySpec(key);
218 assertTrue(Arrays.equals(key.encoded, publicKey.getEncoded()));
268 TestPrivateKey key = new TestPrivateKey(); local
269 TestPrivateKeySpec keySpec = new TestPrivateKeySpec(key);
272 assertTrue(Arrays.equals(key.getEncoded(), privateKey.getEncoded()));
308 args={Key.class, Class.class}
321 Key[] keys = {
336 Key key = keys[i] local
372 Key key = keys[i]; local
419 Key key = keys[i]; local
443 Key key = keys[i]; local
    [all...]
KeyFactory2Test.java 25 import java.security.Key;
158 "generatePrivate generated different key for algorithm "
164 fail("invalid key spec for algorithm " + keyfactAlgs[i]);
205 "generatePublic generated different key for algorithm "
212 fail("invalid key spec for algorithm " + keyfactAlgs[i]);
346 * @tests java.security.KeyFactory#getKeySpec(java.security.Key,
353 args = {java.security.Key.class, java.lang.Class.class}
357 // java.security.KeyFactory.getKeySpec(java.security.Key,
385 "generatePrivate generated different key for algorithm "
388 "generatePublic generated different key for algorithm
    [all...]
  /external/opencore/oscl/oscl/osclbase/src/
oscl_tree.h 326 template <class Key, class Value, class KeyOfValue, class Compare, class Alloc>
331 typedef Key key_type;
363 Oscl_Rb_Tree(const Oscl_Rb_Tree<Key, Value, KeyOfValue, Compare, Alloc>& x)
389 Oscl_Rb_Tree<Key, Value, KeyOfValue, Compare, Alloc>&
390 operator=(const Oscl_Rb_Tree<Key, Value, KeyOfValue, Compare, Alloc>& x)
453 comp = key_compare(KeyOfValue()(v), key(x));
464 if (key_compare(key(j.node), KeyOfValue()(v)))
474 if (size() > 0 && key_compare(KeyOfValue()(v), key(position.node)))
482 if (key_compare(key(rightmost()), KeyOfValue()(v)))
491 if (key_compare(key(before.node), KeyOfValue()(v)
707 const Key& key(link_type x) const function in class:Oscl_Rb_Tree
728 const Key& key(base_link_type x) const function in class:Oscl_Rb_Tree
    [all...]
  /frameworks/base/core/java/android/inputmethodservice/
Keyboard.java 49 * &lt;Key android:keyLabel="A" /&gt;
67 private static final String TAG_KEY = "Key";
87 /** Default key width */
90 /** Default key height */
99 /** Key instance for the shift key, if present */
100 private Key mShiftKey;
102 /** Key index for the shift key, if present */
105 /** Current key width, while loading the keyboard *
564 final Key key = new Key(row); local
665 final Key key = mKeys.get(i); local
715 Key key = null; local
    [all...]
KeyboardView.java 30 import android.inputmethodservice.Keyboard.Key;
54 * detecting key presses and touch movements.
73 * Called when the user presses a key. This is sent before the {@link #onKey} is called.
75 * @param primaryCode the unicode of the key being pressed. If the touch is not on a valid
76 * key, the value will be zero.
81 * Called when the user releases a key. This is sent after the {@link #onKey} is called.
83 * @param primaryCode the code of the key that was released
88 * Send a key press to the listener.
89 * @param primaryCode this is the key that was pressed
91 * with the primary code being the first. If the primary key code i
597 Key key = keys[i]; local
662 final Key key = keys[i]; local
744 final Key key = keys[nearestKeyIndices[i]]; local
788 final Key key = mKeys[index]; local
971 final Key key = mKeys[keyIndex]; local
1271 Key key = mKeys[mRepeatKeyIndex]; local
    [all...]
  /dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
CipherSymmetricKeyThread.java 19 import java.security.Key;
44 Key key = kg.generateKey(); local
56 cip.init(Cipher.ENCRYPT_MODE, key, ivspec);
61 cip.init(Cipher.DECRYPT_MODE, key, ivspec);
64 cip.init(Cipher.ENCRYPT_MODE, key);
67 cip.init(Cipher.DECRYPT_MODE, key);
  /external/v8/src/
zone-inl.h 72 bool ZoneSplayTree<C>::Insert(const Key& key, Locator* locator) {
75 root_ = new Node(key, C::kNoValue);
77 // Splay on the key to move the last node on the search path
78 // for the key to the root of the tree.
79 Splay(key);
80 // Ignore repeated insertions with the same key.
81 int cmp = C::Compare(key, root_->key_);
87 Node* node = new Node(key, C::kNoValue);
105 bool ZoneSplayTree<C>::Find(const Key& key, Locator* locator)
    [all...]
  /frameworks/base/core/java/com/android/internal/widget/
PasswordEntryKeyboard.java 39 * an additional keyboard with symbols. In numeric mode, it shows a 12-key DTMF dialer-like
55 private Key mShiftKey;
56 private Key mEnterKey;
57 private Key mF1Key;
58 private Key mSpaceKey;
91 protected Key createKeyFromXml(Resources res, Row parent, int x, int y,
93 LatinKey key = new LatinKey(res, parent, x, y, parser); local
94 final int code = key.codes[0];
96 // Log.w(TAG, "Key code for " + key.label + " is not latin-1")
    [all...]
  /dalvik/libcore/security/src/main/java/org/bouncycastle/jce/provider/
WrapCipherSpi.java 6 import java.security.Key;
91 Key key)
93 return key.getEncoded().length;
123 Key key,
130 if (key instanceof JCEPBEKey)
132 JCEPBEKey k = (JCEPBEKey)key;
149 param = new KeyParameter(key.getEncoded());
177 Key key
    [all...]
JCEIESCipher.java 7 import java.security.Key;
68 Key key)
70 IESKey ieKey = (IESKey)key;
87 throw new IllegalArgumentException("not an IE key!");
145 Key key,
150 if (!(key instanceof IESKey))
152 throw new InvalidKeyException("must be passed IE key");
179 IESKey ieKey = (IESKey)key;
    [all...]
JCEStreamCipher.java 6 import java.security.Key;
88 Key key)
90 return key.getEncoded().length * 8;
149 Key key,
162 // basic key check
164 if (!(key instanceof SecretKey))
166 throw new InvalidKeyException("Key for algorithm " + key.getAlgorithm() + " not suitable for symmetric enryption.")
    [all...]
BrokenJCEBlockCipher.java 6 import java.security.Key;
105 Key key)
107 return key.getEncoded().length;
224 Key key,
234 if (key instanceof JCEPBEKey)
236 param = BrokenPBE.Util.makePBEParameters((JCEPBEKey)key, params, pbeType, pbeHash,
246 param = new KeyParameter(key.getEncoded());
252 param = new ParametersWithIV(new KeyParameter(key.getEncoded()), ((IvParameterSpec)params).getIV())
    [all...]
  /frameworks/base/libs/ui/
KeyLayoutMap.cpp 125 if (token == "key") {
128 LOGE("%s:%d: expected key, got '%s'\n", filename, line,
155 if (token == "key") {
157 //LOGI("got key decl scancode=%d keycode=%d"
159 Key k = { keycode, flags };
180 //LOGI("got key decl scancode=%d keycode=%d"
182 Key k = { keycode, flags };
207 const Key& k = m_keys.valueAt(index);
  /frameworks/base/services/java/com/android/server/am/
PendingIntentRecord.java 34 final Key key; field in class:PendingIntentRecord
42 final static class Key {
55 Key(int _t, String _p, HistoryRecord _a, String _w,
93 Key other = (Key)otherObj;
147 return "Key{" + typeName() + " pkg=" + packageName
168 PendingIntentRecord(ActivityManagerService _owner, Key _k, int _u) {
170 key = _k;
188 if ((key.flags&PendingIntent.FLAG_ONE_SHOT) != 0)
    [all...]
  /dalvik/libcore/security/src/test/java/tests/targets/security/
KeyFactoryTest.java 24 import java.security.Key;
70 args = {Key.class, Class.class}
  /frameworks/base/awt/java/awt/
Graphics2D.java 255 * Gets the value of single preference for specified key.
257 * @param key
258 * the specified key of the rendering hint.
259 * @return the value of rendering hint for specified key.
261 public abstract Object getRenderingHint(RenderingHints.Key key);
264 * Gets the set of the rendering preferences as a collection of key/value
367 * Sets a key-value pair in the current RenderingHints map.
369 * @param key
370 * the key of the rendering hint to set
    [all...]
  /dalvik/libcore/crypto/src/main/java/javax/crypto/
Cipher.java 25 import java.security.Key;
78 * Constant indicating that the key to be unwrapped is a private key.
83 * Constant indicating that the key to be unwrapped is a public key.
88 * Constant indicating that the key to be unwrapped is a secret key.
93 * Constant for key unwrapping operation mode.
98 * Constant for key wrapping operation mode.
442 * Initializes this cipher instance with the specified key
    [all...]

Completed in 884 milliseconds

1 23 4 5 6