Searched defs:key (Results 1 - 25 of 27) sorted by relevance

12

/system/core/libmincrypt/tools/
H A DDumpPublicKey.java36 * @param key to perform sanity checks on
37 * @throws Exception if the key has the wrong size or public exponent
39 static void check(RSAPublicKey key) throws Exception { argument
40 BigInteger pubexp = key.getPublicExponent();
41 BigInteger modulus = key.getModulus();
53 * @param key to output
54 * @return a C initializer representing this public key.
56 static String print(RSAPublicKey key) throws Exception { argument
57 check(key);
59 BigInteger N = key
[all...]
/system/core/include/cutils/
H A Dsockets.h49 char key[64] = ANDROID_SOCKET_ENV_PREFIX; local
55 strlcpy(key + sizeof(ANDROID_SOCKET_ENV_PREFIX) - 1,
57 sizeof(key) - sizeof(ANDROID_SOCKET_ENV_PREFIX));
59 strncpy(key + sizeof(ANDROID_SOCKET_ENV_PREFIX) - 1,
61 sizeof(key) - sizeof(ANDROID_SOCKET_ENV_PREFIX));
62 key[sizeof(key)-1] = '\0';
65 val = getenv(key);
/system/core/toolbox/
H A Dgetprop.c9 static void record_prop(const char* key, const char* name, void* opaque) argument
13 snprintf(temp, sizeof temp, "[%s]: [%s]", key, name);
H A Dreadtty.c11 char key; member in struct:__anon454
26 char next_char(char key, char current) argument
31 if(key == map[i].key) {
38 return key;
41 char prev_char(char key, char current) argument
46 if(key == map[i].key) {
53 return key;
/system/security/keystore/
H A Dkeystore_get.h36 * The first two arguments are the key and its length. The third argument
40 static int keystore_get(const char *key, int length, char *value) argument
55 send(sock, key, length, 0) == length && shutdown(sock, SHUT_WR) == 0 &&
/system/core/libpixelflinger/tests/codegen/
H A Dcodegen.cpp28 const AssemblyKey<needs_t>& key() const { return mKey; } function in class:ScanlineAssembly
/system/core/libmincrypt/
H A Drsa.c32 static void subM(const RSAPublicKey *key, uint32_t *a) { argument
35 for (i = 0; i < key->len; ++i) {
36 A += (uint64_t)a[i] - key->n[i];
43 static int geM(const RSAPublicKey *key, const uint32_t *a) { argument
45 for (i = key->len; i;) {
47 if (a[i] < key->n[i]) return 0;
48 if (a[i] > key->n[i]) return 1;
54 static void montMulAdd(const RSAPublicKey *key, argument
59 uint32_t d0 = (uint32_t)A * key->n0inv;
60 uint64_t B = (uint64_t)d0 * key
79 montMul(const RSAPublicKey *key, uint32_t* c, const uint32_t* a, const uint32_t* b) argument
95 modpow3(const RSAPublicKey *key, uint8_t* inout) argument
162 RSA_verify(const RSAPublicKey *key, const uint8_t *signature, const int len, const uint8_t *sha) argument
[all...]
/system/core/libcorkscrew/
H A Dsymbol_table.c40 static int bcompar(const void *key, const void *element) { argument
41 uintptr_t addr = *(const uintptr_t*)key;
/system/core/libcutils/
H A Dproperties.c34 int property_set(const char *key, const char *value) argument
36 return __system_property_set(key, value);
39 int property_get(const char *key, char *value, const char *default_value) argument
43 len = __system_property_get(key, value);
55 int property_list(void (*propfn)(const char *key, const char *value, void *cookie), argument
137 int property_get(const char *key, char *value, const char *default_value) argument
143 //ALOGV("PROPERTY GET [%s]\n", key);
155 if (strlen(key) >= PROPERTY_KEY_MAX) return -1;
160 strcpy(sendBuf+1, key);
198 // recvBuf[0], default_value, len, key, valu
204 property_set(const char *key, const char *value) argument
241 property_list(void (*propfn)(const char *key, const char *value, void *cookie), void *cookie) argument
260 property_get(const char *key, char *value, const char *default_value) argument
294 property_set(const char *key, const char *value) argument
324 property_list(void (*propfn)(const char *key, const char *value, void *cookie), void *cookie) argument
[all...]
H A Dhashmap.c28 void* key; member in struct:Entry
37 int (*hash)(void* key);
44 int (*hash)(void* key), bool (*equals)(void* keyA, void* keyB)) {
78 * Hashes the given key.
80 static inline int hashKey(Hashmap* map, void* key) { argument
81 int h = map->hash(key);
155 int hashmapHash(void* key, size_t keySize) { argument
157 char* data = (char*) key;
166 static Entry* createEntry(void* key, int hash, void* value) { argument
171 entry->key
43 hashmapCreate(size_t initialCapacity, int (*hash)(void* key), bool (*equals)(void* keyA, void* keyB)) argument
189 hashmapPut(Hashmap* map, void* key, void* value) argument
221 hashmapGet(Hashmap* map, void* key) argument
236 hashmapContainsKey(Hashmap* map, void* key) argument
251 hashmapMemoize(Hashmap* map, void* key, void* (*initialValue)(void* key, void* context), void* context) argument
284 hashmapRemove(Hashmap* map, void* key) argument
306 hashmapForEach(Hashmap* map, bool (*callback)(void* key, void* value, void* context), void* context) argument
342 hashmapIntHash(void* key) argument
[all...]
H A Dstr_parms.c75 const char *key; member in struct:remove_ctxt
78 static bool remove_pair(void *key, void *value, void *context) argument
84 * - if key is not supplied, then we are removing all entries,
85 * so remove key and continue (i.e. return true)
86 * - if key is supplied and matches, then remove it and don't
88 * for key.
91 if (!ctxt->key) {
94 } else if (!strcmp(ctxt->key, key)) {
102 hashmapRemove(ctxt->str_parms->map, key);
108 str_parms_del(struct str_parms *str_parms, const char *key) argument
150 char *key; local
192 str_parms_add_str(struct str_parms *str_parms, const char *key, const char *value) argument
214 str_parms_add_int(struct str_parms *str_parms, const char *key, int value) argument
227 str_parms_add_float(struct str_parms *str_parms, const char *key, float value) argument
241 str_parms_get_str(struct str_parms *str_parms, const char *key, char *val, int len) argument
253 str_parms_get_int(struct str_parms *str_parms, const char *key, int *val) argument
269 str_parms_get_float(struct str_parms *str_parms, const char *key, float *val) argument
287 combine_strings(void *key, void *value, void *context) argument
321 dump_entry(void *key, void *value, void *context) argument
[all...]
H A Dmq.c230 static int pidHash(void* key) { argument
231 pid_t* pid = (pid_t*) key;
365 static bool peerProxyRemoveConnection(void* key, void* value, void* context) { argument
1017 // Add this proxy to the map. Make sure the key points to the stable memory
/system/core/libpixelflinger/tinyutils/
H A DKeyedVector.h55 const VALUE& valueFor(const KEY& key) const;
58 ssize_t indexOfKey(const KEY& key) const;
64 VALUE& editValueFor(const KEY& key);
71 ssize_t add(const KEY& key, const VALUE& item);
72 ssize_t replaceValueFor(const KEY& key, const VALUE& item);
79 ssize_t removeItem(const KEY& key);
90 * valueFor() is called with a key that doesn't exist.
97 const VALUE& valueFor(const KEY& key) const;
111 ssize_t KeyedVector<KEY,VALUE>::indexOfKey(const KEY& key) const {
112 return mVector.indexOf( key_value_pair_t<KEY,VALUE>(key) );
133 editValueFor(const KEY& key) argument
145 add(const KEY& key, const VALUE& value) argument
150 replaceValueFor(const KEY& key, const VALUE& value) argument
166 removeItem(const KEY& key) argument
[all...]
H A DTypeHelpers.h206 * a key/value pair
211 KEY key; member in struct:android::key_value_pair_t
214 key_value_pair_t(const key_value_pair_t& o) : key(o.key), value(o.value) { }
215 key_value_pair_t(const KEY& k, const VALUE& v) : key(k), value(v) { }
216 key_value_pair_t(const KEY& k) : key(k) { }
218 return strictly_order_type(key, o.key);
/system/vold/
H A DDevmapper.cpp166 int Devmapper::create(const char *name, const char *loopFile, const char *key, argument
236 "twofish %s 0 %s 0", key, loopFile);
H A DVolumeManager.cpp241 const char *key, const int ownerUid, bool isExternal) {
326 if (strcmp(key, "none")) {
329 if (Devmapper::create(idHash, loopDevice, key, numImgSectors, dmDevice,
861 int VolumeManager::mountAsec(const char *id, const char *key, int ownerUid) { argument
920 if (strcmp(key, "none")) {
922 if (Devmapper::create(idHash, loopDevice, key, nr_sec,
991 int VolumeManager::mountObb(const char *img, const char *key, int ownerUid) { argument
1043 if (strcmp(key, "none")) {
1045 if (Devmapper::create(idHash, loopDevice, key, nr_sec,
240 createAsec(const char *id, unsigned int numSectors, const char *fstype, const char *key, const int ownerUid, bool isExternal) argument
H A Dcryptfs.c18 * 1. Perhaps keep several copies of the encrypted key, in case something
140 /* key or salt can be NULL, in which case just skip writing that value. Useful to
141 * update the failed mount count but not change the key.
144 unsigned char *key, unsigned char *salt)
169 * encryption info footer and key, and plenty of bytes to spare for future
185 SLOGE("Unexpected value for crypto key location\n");
194 if (key) {
201 if ( (cnt = write(fd, key, crypt_ftr->keysize)) != crypt_ftr->keysize) {
202 SLOGE("Cannot write key for real block device %s\n", fname);
210 if (! key)
143 put_crypt_ftr_and_key(char *real_blk_name, struct crypt_mnt_ftr *crypt_ftr, unsigned char *key, unsigned char *salt) argument
242 get_crypt_ftr_and_key(char *real_blk_name, struct crypt_mnt_ftr *crypt_ftr, unsigned char *key, unsigned char *salt) argument
867 unsigned char key[32], salt[32]; local
[all...]
/system/extras/showslab/
H A Dshowslab.c243 * set_sort_func - return the slab_sort_func that matches the given key.
244 * On unrecognizable key, the call returns NULL.
246 static void * set_sort_func(char key) argument
248 switch (tolower(key)) {
/system/extras/tests/bionic/libc/common/
H A Dbench_pthread.c165 /* Used when creating the key */
176 pthread_key_t key; local
177 pthread_key_create(&key, key_destroy);
178 pthread_setspecific(key, (void*)(int)100);
182 BENCH(pthread_getspecific(key));
/system/security/softkeymaster/
H A Dkeymaster_openssl.cpp101 ALOGE("private or public key size was too big");
105 /* int type + int size + private key data + int size + public key data */
111 ALOGE("could not allocate memory for key blob");
119 /* Write key type to allocated buffer */
124 /* Write public key to allocated buffer */
133 /* Write private key to allocated buffer */
154 ALOGE("supplied key blob was NULL");
162 ALOGE("key blob appears to be truncated");
167 ALOGE("cannot read key; i
268 openssl_import_keypair(const keymaster_device_t* dev, const uint8_t* key, const size_t key_length, uint8_t** key_blob, size_t* key_blob_length) argument
[all...]
/system/core/init/
H A Dproperty_service.c416 char *key, *value, *eol, *sol, *tmp; local
420 key = sol;
424 value = strchr(key, '=');
428 while(isspace(*key)) key++;
429 if(*key == '#') continue;
431 while((tmp > key) && isspace(*tmp)) *tmp-- = 0;
437 property_set(key, value);
H A Dinit.c103 /* add_environment - add "key=value" to the current environment */
104 int add_environment(const char *key, const char *val) argument
110 size_t len = strlen(key) + strlen(val) + 2;
112 snprintf(entry, len, "%s=%s", key, val);
146 char key[64] = ANDROID_SOCKET_ENV_PREFIX; local
149 strlcpy(key + sizeof(ANDROID_SOCKET_ENV_PREFIX) - 1,
151 sizeof(key) - sizeof(ANDROID_SOCKET_ENV_PREFIX));
153 add_environment(key, val);
/system/media/camera/src/
H A Dcamera_metadata.c382 camera_metadata_entry_t key; local
383 key.tag = tag;
384 entry = bsearch(&key,
/system/core/charger/
H A Dcharger.c771 * of time the key spent not being pressed is not useful */
777 LOGV("[%lld] key[%d] down\n", now, code);
782 LOGV("[%lld] key[%d] up (was down for %lld.%lldsec)\n", now,
798 struct key_state *key,
801 int64_t then = key->timestamp + timeout;
809 struct key_state *key = &charger->keys[code]; local
813 if (key->down) {
814 int64_t reboot_timeout = key->timestamp + POWER_ON_KEY_TIME;
819 /* if the key is pressed but timeout hasn't expired,
822 set_next_key_check(charger, key, POWER_ON_KEY_TIM
797 set_next_key_check(struct charger *charger, struct key_state *key, int64_t timeout) argument
[all...]
/system/core/libpixelflinger/
H A Dscanline.cpp272 const AssemblyKey<needs_t>& key() const { return mKey; } function in class:android::ScanlineAssembly
367 const AssemblyKey<needs_t> key(c->state.needs);
368 sp<Assembly> assembly = gCodeCache.lookup(key);
381 err = gCodeCache.cache(a->key(), a);

Completed in 8484 milliseconds

12