/external/vboot_reference/firmware/lib/cryptolib/ |
rsa.c | 7 * key for computation. The code extends Android's RSA verification code to 8 * support multiple RSA key lengths and hash digest algorithms. 18 static void subM(const RSAPublicKey *key, uint32_t *a) { 21 for (i = 0; i < key->len; ++i) { 22 A += (uint64_t)a[i] - key->n[i]; 29 static int geM(const RSAPublicKey *key, uint32_t *a) { 31 for (i = key->len; i;) { 33 if (a[i] < key->n[i]) return 0; 34 if (a[i] > key->n[i]) return 1; 40 static void montMulAdd(const RSAPublicKey *key, [all...] |
rsa_utility.c | 16 int key_len; /* Key length in bytes. (int type matches siglen_map) */ 30 RSAPublicKey* key = (RSAPublicKey*) VbExMalloc(sizeof(RSAPublicKey)); local 31 key->n = NULL; 32 key->rr = NULL; 33 key->len = 0; 34 key->algorithm = kNumAlgorithms; 35 return key; 38 void RSAPublicKeyFree(RSAPublicKey* key) { 39 if (key) { 40 if (key->n 49 RSAPublicKey* key = RSAPublicKeyNew(); local [all...] |
/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/ |
ConcurrentHashMap.java | 56 public V putIfAbsent(K key, V value) { 57 if (!containsKey(key)) { 58 return put(key, value); 60 return get(key); 64 public boolean remove(Object key, Object value) { 65 if (containsKey(key) && get(key).equals(value)) { 66 remove(key); 73 public boolean replace(K key, V oldValue, V newValue) { 76 } else if (containsKey(key) && get(key).equals(oldValue)) [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/ |
Thai.java | 63 private static final ExpectedKey THAI_ALPHABET_KEY = key( 67 private static final ExpectedKey CURRENCY_BAHT = key("\u0E3F", 108 key("/", joinMoreKeys("1", "\u0E51")), 110 key("_", joinMoreKeys("2", "\u0E52")), 113 key("\u0E20", joinMoreKeys("3", "\u0E53")), 116 key("\u0E16", joinMoreKeys("4", "\u0E54")), 118 key(" \u0E38", "\u0E38"), 120 key(" \u0E36", "\u0E36"), 123 key("\u0E04", joinMoreKeys("5", "\u0E55")), 126 key("\u0E15", joinMoreKeys("6", "\u0E56")) [all...] |
Mongolian.java | 47 private static final ExpectedKey CURRENCY_TUGRIK = key("\u20AE", 57 key("\u0444", moreKey("1")), 59 key("\u0446", moreKey("2")), 61 key("\u0443", moreKey("3")), 63 key("\u0436", moreKey("4")), 65 key("\u044D", moreKey("5")), 67 key("\u043D", moreKey("6")), 69 key("\u0433", moreKey("7")), 72 key("\u0448", joinMoreKeys("8", "\u0449")), 74 key("\u04AF", moreKey("9")) [all...] |
Sinhala.java | 61 private static final ExpectedKey SINHALA_ALPHABET_KEY = key( 65 private static final ExpectedKey CURRENCY_RUPEE = key("\u0DBB\u0DD4", 83 key("\u0DD4", moreKey("1")), 85 key("\u0D85", moreKey("2")), 87 key("\u0DD0", moreKey("3")), 89 key("\u0DBB", moreKey("4")), 91 key("\u0D91", moreKey("5")), 93 key("\u0DC4", moreKey("6")), 95 key("\u0DB8", moreKey("7")), 97 key("\u0DC3", moreKey("8")) [all...] |
/frameworks/compile/mclinker/unittests/ |
HashTableTest.cpp | 95 int key = 100; local 96 HashTableTy::entry_type* val = hashTable->insert(key, exist); 101 HashTableTy::iterator entry = hashTable->find(key); 114 for (int key = 0; key < 100; ++key) { 115 entry = hashTable->insert(key, exist); 119 EXPECT_TRUE(key == entry->key()); 120 entry->setValue(key + 10) 302 unsigned int key = 0; local [all...] |
/frameworks/base/core/java/android/content/ |
SharedPreferences.java | 62 * @param key The key of the preference that was changed, added, or 65 void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key); 79 * @param key The name of the preference to modify. 82 * this key. 87 Editor putString(String key, @Nullable String value); 93 * @param key The name of the preference to modify. 96 * this key. 100 Editor putStringSet(String key, @Nullable Set<String> values); 106 * @param key The name of the preference to modify [all...] |
/external/apache-xml/src/main/java/org/apache/xalan/templates/ |
OutputProperties.java | 43 * 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) 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, String value 599 String key = (String) keys.nextElement(); local [all...] |
/external/boringssl/src/crypto/evp/ |
scrypt_test.cc | 42 std::vector<uint8_t> password, salt, key; 46 ASSERT_TRUE(t->GetBytes(&key, "Key")); 54 std::vector<uint8_t> result(key.size()); 58 EXPECT_EQ(Bytes(key), Bytes(result)); 67 uint8_t key[64]; local 71 1 /* p */, 0 /* max_mem */, key, sizeof(key))); 78 uint8_t key[64]; local 82 1 /* p */, 0 /* max_mem */, key, sizeof(key))) [all...] |
/external/vboot_reference/firmware/lib21/ |
packed_key.c | 5 * Key unpacking functions 13 int vb2_unpack_key_data(struct vb2_public_key *key, 18 uint32_t expected_key_size = vb2_packed_key_size(key->sig_alg); 22 VB2_DEBUG("Wrong key size for algorithm\n"); 30 key->arrsize = buf32[0]; 32 /* Sanity check key array size */ 33 if (key->arrsize * sizeof(uint32_t) != vb2_rsa_sig_size(key->sig_alg)) 36 key->n0inv = buf32[1]; 38 /* Arrays point inside the key data * [all...] |
/frameworks/support/core/ktx/src/main/java/androidx/core/os/ |
Bundle.kt | 28 * Returns a new [Bundle] with the given key/value pairs as elements. 33 for ((key, value) in pairs) { 35 null -> putString(key, null) // Any nullable type will suffice. 38 is Boolean -> putBoolean(key, value) 39 is Byte -> putByte(key, value) 40 is Char -> putChar(key, value) 41 is Double -> putDouble(key, value) 42 is Float -> putFloat(key, value) 43 is Int -> putInt(key, value) 44 is Long -> putLong(key, value [all...] |
/external/avb/libavb/ |
avb_rsa.c | 31 * key for computation. The code extends libmincrypt RSA verification code to 32 * support multiple RSA key lengths and hash digest algorithms. 49 IAvbKey* key = NULL; local 57 avb_error("Invalid key.\n"); 63 avb_error("Unexpected key length.\n"); 69 avb_error("Key does not match expected length.\n"); 76 /* Store n and rr following the key header so we only have to do one 79 key = (IAvbKey*)(avb_malloc(sizeof(IAvbKey) + 2 * h.key_num_bits / 8)); 80 if (key == NULL) { 84 key->len = h.key_num_bits / 32 [all...] |
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/ |
ZHash.java | 23 * Concrete implementation of ZIndexable. Provides fast element retrieval via hash key. Also provides
44 public ValueType get(KeyType key) {
45 return hash.get(key);
53 * If key already exists within the structure, it's value is replaced with the new value and
55 * @param key
58 public synchronized void addToTop(KeyType key, ValueType value) {
59 if(hash.containsKey(key)) {
60 hash.put(key, value);
61 //throw new IllegalArgumentException("Key already exists in series structure...duplicates not permitted.");
63 hash.put(key, value); [all...] |
/external/libchrome/base/posix/ |
global_descriptors.cc | 14 GlobalDescriptors::Descriptor::Descriptor(Key key, int fd) 15 : key(key), fd(fd), region(base::MemoryMappedFile::Region::kWholeFile) { 18 GlobalDescriptors::Descriptor::Descriptor(Key key, 21 : key(key), fd(fd), region(region) { 32 int GlobalDescriptors::Get(Key key) const [all...] |
global_descriptors.h | 35 // It maps from an abstract key to a descriptor. If independent modules each 44 typedef uint32_t Key; 46 Descriptor(Key key, int fd); 47 Descriptor(Key key, int fd, base::MemoryMappedFile::Region region); 49 // Globally unique key. 50 Key key; member in struct:base::GlobalDescriptors::Descriptor 58 // Often we want a canonical descriptor for a given Key. In this case, we ad [all...] |
/device/linaro/bootloader/arm-trusted-firmware/plat/rockchip/rk3399/drivers/dp/ |
cdn_dp.c | 24 static struct cdn_dp_hdcp_key_1x key; variable in typeref:struct:cdn_dp_hdcp_key_1x 26 int hdcp_handler(struct cdn_dp_hdcp_key_1x *key); 32 memset(&key, 0x00, sizeof(key)); 33 hdcp_key_pdata = (uint64_t *)&key; 36 if (hdcp_key_pdata == (uint64_t *)(&key + 1)) 37 return hdcp_handler(&key); 52 if (hdcp_key_pdata < (uint64_t *)&key || 53 hdcp_key_pdata + 6 > (uint64_t *)(&key + 1))
|
/device/linaro/bootloader/arm-trusted-firmware/tools/cert_create/src/ |
key.c | 25 #include "key.h" 31 * Create a new key container 33 int key_new(key_t *key) 35 /* Create key pair container */ 36 key->key = EVP_PKEY_new(); 37 if (key->key == NULL) { 44 static int key_create_rsa(key_t *key) 62 printf("Cannot create RSA key\n") 188 key_t *key; local 208 key_t *key; local [all...] |
/external/slf4j/log4j-over-slf4j/src/main/java/org/apache/log4j/ |
MDC.java | 24 public static void put(String key, String value) { 25 org.slf4j.MDC.put(key, value); 28 public static void put(String key, Object value) { 30 put(key, value.toString()); 32 put(key, null); 36 public static Object get(String key) { 37 return org.slf4j.MDC.get(key); 40 public static void remove(String key) { 41 org.slf4j.MDC.remove(key);
|
/libcore/luni/src/test/java/tests/security/interfaces/ |
RSAPrivateCrtKeyTest.java | 25 RSAPrivateCrtKey key = null; field in class:RSAPrivateCrtKeyTest 30 key = (RSAPrivateCrtKey) gen.generatePrivate(Util.rsaCrtParam); 39 Util.rsaCrtParam.getCrtCoefficient(), key.getCrtCoefficient()); 48 Util.rsaCrtParam.getPrimeExponentP(), key.getPrimeExponentP()); 57 Util.rsaCrtParam.getPrimeExponentQ(), key.getPrimeExponentQ()); 66 Util.rsaCrtParam.getPrimeP(), key.getPrimeP()); 75 Util.rsaCrtParam.getPrimeQ(), key.getPrimeQ()); 84 Util.rsaCrtParam.getPublicExponent(), key.getPublicExponent()); 88 key = null;
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
TransitionStore.java | 24 public void put(Object key, Object value) { 25 mStorage.put(key, value); 28 public <T> void putIfNotPresent(Object key, T valueIfNull) { 29 mStorage.put(key, get(key, valueIfNull)); 33 public <T> T get(Object key) { 34 return (T) mStorage.get(key); 38 public <T> T get(Object key, T valueIfNull) { 39 T value = (T) mStorage.get(key);
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
AbstractWatchService.java | 42 // special key to indicate that watch service is closed 70 // used by AbstractWatchKey to enqueue key 71 final void enqueueKey(WatchKey key) { 72 pendingKeys.offer(key); 84 * Checks the key isn't the special CLOSE_KEY used to unblock threads when 87 private void checkKey(WatchKey key) { 88 if (key == CLOSE_KEY) { 90 enqueueKey(key); 98 WatchKey key = pendingKeys.poll(); local 99 checkKey(key); 108 WatchKey key = pendingKeys.poll(timeout, unit); local 118 WatchKey key = pendingKeys.take(); local [all...] |
/external/wpa_supplicant_8/src/crypto/ |
crypto_internal-rsa.c | 22 struct crypto_public_key * crypto_public_key_import(const u8 *key, size_t len) 25 crypto_rsa_import_public_key(key, len); 38 struct crypto_private_key * crypto_private_key_import(const u8 *key, 45 res = pkcs8_key_import(key, len); 51 res = pkcs8_enc_key_import(key, len, passwd); 56 /* Not PKCS#8, so try to import PKCS #1 encoded RSA private key */ 58 "key"); 60 crypto_rsa_import_private_key(key, len); 72 int crypto_public_key_encrypt_pkcs1_v15(struct crypto_public_key *key, 76 return pkcs1_encrypt(2, (struct crypto_rsa_key *) key, [all...] |
/external/tensorflow/tensorflow/contrib/nearest_neighbor/kernels/ |
heap.h | 38 KeyType key; member in class:tensorflow::nearest_neighbor::HeapBase::Item 42 Item(const KeyType& k, const DataType& d) : key(k), data(d) {} 44 bool operator<(const Item& i2) const { return key < i2.key; } 47 void ExtractMin(KeyType* key, DataType* data) { 48 *key = v_[0].key; 61 void InsertUnsorted(const KeyType& key, const DataType& data) { 63 v_.push_back(Item(key, data)); 65 v_[num_elements_].key = key [all...] |
/system/libhidl/libhidlcache/ |
HidlCache.h | 24 // A generic cache to map Key to sp<Value>. The cache records are kept with 27 template <class Key, class Value, class Compare = std::less<Key>> 36 HidlCacheLock(sp<HidlCache> cache, const Key& key) : mCache(cache), mKey(key) { 43 const Key mKey; 45 // lock the IMemory refered by key and keep it alive even if there's no 47 virtual bool lock(const Key& key); [all...] |