Searched refs:key (Results 1 - 25 of 312) sorted by relevance

1234567891011>>

/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/params/
H A DRC2Parameters.java8 private byte[] key; field in class:RC2Parameters
12 byte[] key)
14 this(key, (key.length > 128) ? 1024 : (key.length * 8));
18 byte[] key,
21 this.key = new byte[key.length];
24 System.arraycopy(key, 0, this.key,
11 RC2Parameters( byte[] key) argument
17 RC2Parameters( byte[] key, int bits) argument
[all...]
H A DKeyParameter.java8 private byte[] key; field in class:KeyParameter
11 byte[] key)
13 this(key, 0, key.length);
17 byte[] key,
21 this.key = new byte[keyLen];
23 System.arraycopy(key, keyOff, this.key, 0, keyLen);
28 return key;
10 KeyParameter( byte[] key) argument
16 KeyParameter( byte[] key, int keyOff, int keyLen) argument
H A DRC5Parameters.java8 private byte[] key; field in class:RC5Parameters
12 byte[] key,
15 if (key.length > 255)
17 throw new IllegalArgumentException("RC5 key length can be no greater than 255");
20 this.key = new byte[key.length];
23 System.arraycopy(key, 0, this.key, 0, key.length);
28 return key;
11 RC5Parameters( byte[] key, int rounds) argument
[all...]
H A DDESedeParameters.java12 byte[] key)
14 super(key);
16 if (isWeakKey(key, 0, 0))
18 throw new IllegalArgumentException("attempt to create weak DESede key");
23 * return true if the passed in key is a DES-EDE weak key.
25 * @param key bytes making up the key
26 * @param offset offset into the byte array the key starts at
27 * @param length number of bytes making up the key
11 DESedeParameters( byte[] key) argument
29 isWeakKey( byte[] key, int offset, int length) argument
51 isWeakKey( byte[] key, int offset) argument
[all...]
H A DCCMParameters.java10 private KeyParameter key; field in class:CCMParameters
16 * @param key key to be used by underlying cipher
21 public CCMParameters(KeyParameter key, int macSize, byte[] nonce, byte[] associatedText) argument
23 this.key = key;
31 return key;
/dalvik/libcore/security/src/main/java/org/bouncycastle/i18n/
H A DMissingEntryException.java7 protected final String key; field in class:MissingEntryException
9 public MissingEntryException(String message, String resource, String key) argument
13 this.key = key;
18 return key;
/dalvik/libcore/crypto/src/main/java/javax/crypto/spec/
H A DDESedeKeySpec.java26 * The key specification for a triple-DES (DES-EDE) key.
31 * The length of a DES-EDE key in bytes.
35 private final byte[] key; field in class:DESedeKeySpec
39 * {@link #DES_EDE_KEY_LEN}) bytes of the specified key data.
41 * @param key
42 * the key data.
44 * if the length of the key data is less than 24.
46 * if the key data is null.
48 public DESedeKeySpec(byte[] key) argument
76 DESedeKeySpec(byte[] key, int offset) argument
114 isParityAdjusted(byte[] key, int offset) argument
[all...]
H A DSecretKeySpec.java33 * A key specification for a <code>SecretKey</code> and also a secret key
44 private final byte[] key; field in class:SecretKeySpec
49 * Creates a new <code>SecretKeySpec</code> for the specified key data and
52 * @param key
53 * the key data.
57 * if the key data or the algorithm name is null or if the key
60 public SecretKeySpec(byte[] key, String algorithm) { argument
61 if (key
96 SecretKeySpec(byte[] key, int offset, int len, String algorithm) argument
[all...]
/dalvik/libcore/xml/src/main/java/org/apache/xalan/templates/
H A DOutputProperties.java43 * its "defaults"; this second property list is searched if the property key
114 * @param key the key to be placed into the property list.
115 * @param value the value corresponding to <tt>key</tt>.
118 public void setProperty(QName key, String value) argument
120 setProperty(key.toNamespacedString(), value);
126 * @param key the key to be placed into the property list.
127 * @param value the value corresponding to <tt>key</tt>.
130 public void setProperty(String key, Strin argument
153 getProperty(QName key) argument
167 getProperty(String key) argument
182 setBooleanProperty(QName key, boolean value) argument
194 setBooleanProperty(String key, boolean value) argument
210 getBooleanProperty(QName key) argument
226 getBooleanProperty(String key) argument
238 setIntProperty(QName key, int value) argument
250 setIntProperty(String key, int value) argument
266 getIntProperty(QName key) argument
282 getIntProperty(String key) argument
296 setQNameProperty(QName key, QName value) argument
339 setQNameProperty(String key, QName value) argument
354 getQNameProperty(QName key) argument
369 getQNameProperty(String key) argument
385 getQNameProperty(String key, Properties props) argument
404 setQNameProperties(QName key, Vector v) argument
417 setQNameProperties(String key, Vector v) argument
449 getQNameProperties(QName key) argument
465 getQNameProperties(String key) argument
482 getQNameProperties(String key, Properties props) argument
646 isLegalPropertyKey(String key) argument
[all...]
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/
H A DConcurrentMap.java20 * {@code ConcurrentMap} as a key or value
32 * If the specified key is not already associated
36 * if (!map.containsKey(key))
37 * return map.put(key, value);
39 * return map.get(key);</pre>
42 * @param key key with which the specified value is to be associated
43 * @param value value to be associated with the specified key
44 * @return the previous value associated with the specified key, or
45 * <tt>null</tt> if there was no mapping for the key
59 putIfAbsent(K key, V value) argument
81 remove(Object key, Object value) argument
106 replace(K key, V oldValue, V newValue) argument
133 replace(K key, V value) argument
[all...]
/dalvik/libcore/luni/src/test/java/tests/api/java/util/support/
H A DI.java4 String find(String key); argument
/dalvik/libcore/xml/src/main/java/org/apache/xml/serializer/
H A DOutputPropertyUtils.java38 * Searches for the boolean property with the specified key in the property list.
39 * If the key is not found in this property list, the default property list,
44 * @param key the property key.
49 public static boolean getBooleanProperty(String key, Properties props) argument
52 String s = props.getProperty(key);
61 * Searches for the int property with the specified key in the property list.
62 * If the key is not found in this property list, the default property list,
67 * @param key the property key
72 getIntProperty(String key, Properties props) argument
[all...]
/dalvik/libcore/luni/src/main/java/java/util/
H A DDictionary.java49 * Returns the value which is associated with {@code key}.
51 * @param key
52 * the key of the value returned.
53 * @return the value associated with {@code key}, or {@code null} if the
54 * specified key does not exist.
57 public abstract V get(Object key); argument
60 * Returns true if this dictionary has no key/value pairs.
62 * @return {@code true} if this dictionary has no key/value pairs,
79 * Associate {@code key} with {@code value} in this dictionary. If {@code
80 * key} exist
93 put(K key, V value) argument
106 remove(Object key) argument
[all...]
H A DMissingResourceException.java33 String className, key; field in class:MissingResourceException
51 key = resourceName;
72 return key;
H A DMapEntry.java25 K key; field in class:MapEntry
33 key = theKey;
37 key = theKey;
57 return (key == null ? entry.getKey() == null : key.equals(entry
66 return key;
75 return (key == null ? 0 : key.hashCode())
87 return key + "=" + value;
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/
H A DCipherKeyGenerator.java6 * The base class for symmetric, or secret, cipher key generators.
14 * initialise the key generator.
16 * @param param the parameters to be used for key generation
26 * generate a secret key.
28 * @return a byte array containing the key value.
32 byte[] key = new byte[strength];
34 random.nextBytes(key);
36 return key;
/dalvik/libcore/dom/src/test/java/org/w3c/domts/
H A DUserDataNotification.java23 private final String key; field in class:UserDataNotification
33 String key,
38 this.key = key;
54 * Gets value of key parameter
56 * @return value of key parameter
59 return key;
32 UserDataNotification(short operation, String key, Object data, Node src, Node dst) argument
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DExemptionMechanismSpiTest.java72 protected void engineInit(Key key) throws InvalidKeyException, ExemptionMechanismException { argument
73 super.engineInit(key);
78 protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, InvalidAlgorithmParameterException, ExemptionMechanismException { argument
79 super.engineInit(key, params);
84 protected void engineInit(Key key, AlgorithmParameters params) throws InvalidKeyException, InvalidAlgorithmParameterException, ExemptionMechanismException { argument
85 super.engineInit(key, params);
110 Key key = null;
114 emSpi.engineInit(key);
119 emSpi.engineInit(key, params);
124 emSpi.engineInit(key, parSpe
[all...]
/dalvik/libcore/nio/src/main/java/java/nio/channels/spi/
H A DAbstractSelectableChannel.java41 * The collection of key.
87 * Gets this channel's selection key for the specified selector.
91 * @return the selection key for the channel or {@code null} if this channel
97 SelectionKey key = keyList.get(i);
98 if (null != key && key.selector() == selector) {
99 return key;
109 * the corresponding selection key is returned. If the channel is not yet
111 * {@code selector} and adds the selection key to this channel's key se
[all...]
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/
H A DSystemScope.java45 // Identities hash: key is the identity name
48 // Identities hash: key is the public key
93 public synchronized Identity getIdentity(PublicKey key) { argument
94 if (key == null) {
97 return (Identity) keys.get(key);
114 PublicKey key = identity.getPublicKey();
115 if (key != null && keys.containsKey(key)) {
116 throw new KeyManagementException(Messages.getString("security.94", key)); //
[all...]
/dalvik/libcore/xml/src/main/java/org/apache/xml/serializer/utils/
H A DStringToIntTable.java97 * @param key String to append
100 public final void put(String key, int value) argument
120 m_map[m_firstFree] = key;
129 * @param key String to look for
134 public final int get(String key) argument
139 if (m_map[i].equals(key))
149 * @param key String to look for
153 public final int getIgnoreCase(String key) argument
156 if (null == key)
161 if (m_map[i].equalsIgnoreCase(key))
175 contains(String key) argument
[all...]
/dalvik/libcore/xml/src/main/java/org/apache/xml/utils/
H A DStringToIntTable.java90 * @param key String to append
93 public final void put(String key, int value) argument
113 m_map[m_firstFree] = key;
122 * @param key String to look for
127 public final int get(String key) argument
132 if (m_map[i].equals(key))
142 * @param key String to look for
146 public final int getIgnoreCase(String key) argument
149 if (null == key)
154 if (m_map[i].equalsIgnoreCase(key))
168 contains(String key) argument
[all...]
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/provider/
H A DJCERSAPrivateCrtKey.java19 * A provider representation for a RSA private key, with CRT factors included.
33 * construct a private key from it's org.bouncycastle.crypto equivalent.
35 * @param key the parameters object representing the private key.
38 RSAPrivateCrtKeyParameters key)
40 super(key);
42 this.publicExponent = key.getPublicExponent();
43 this.primeP = key.getP();
44 this.primeQ = key.getQ();
45 this.primeExponentP = key
37 JCERSAPrivateCrtKey( RSAPrivateCrtKeyParameters key) argument
73 JCERSAPrivateCrtKey( RSAPrivateCrtKey key) argument
98 JCERSAPrivateCrtKey( RSAPrivateKeyStructure key) argument
[all...]
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/interfaces/
H A DPBEKeyTest.java53 checkPBEKey key = new checkPBEKey();
55 key.getSerVerUID(), //PBEKey.serialVersionUID
65 checkPBEKey key = new checkPBEKey();
67 key.getIterationCount();
76 checkPBEKey key = new checkPBEKey();
78 key.getPassword();
87 checkPBEKey key = new checkPBEKey();
89 key.getSalt();
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
H A DSecretKeySpecTest.java44 * SecretKeySpec(byte[] key, String algorithm) method testing. Tests that
56 byte[] key = new byte[] {1, 2, 3, 4, 5};
62 + "in the case of empty key.");
69 + "in the case of null key.");
74 new SecretKeySpec(key, null);
80 SecretKeySpec ks = new SecretKeySpec(key, algorithm);
81 key[0] ++;
82 assertFalse("The change of key specified in the constructor "
84 key[0] == ks.getEncoded()[0]);
88 * SecretKeySpec(byte[] key, in
[all...]

Completed in 918 milliseconds

1234567891011>>