/system/core/libmincrypt/ |
D | rsa_e_3.c | 32 static void subM(const RSAPublicKey *key, uint32_t *a) { in subM() argument 35 for (i = 0; i < key->len; ++i) { in subM() 36 A += (uint64_t)a[i] - key->n[i]; in subM() 43 static int geM(const RSAPublicKey *key, const uint32_t *a) { in geM() argument 45 for (i = key->len; i;) { in geM() 47 if (a[i] < key->n[i]) return 0; in geM() 48 if (a[i] > key->n[i]) return 1; in geM() 54 static void montMulAdd(const RSAPublicKey *key, in montMulAdd() argument 59 uint32_t d0 = (uint32_t)A * key->n0inv; in montMulAdd() 60 uint64_t B = (uint64_t)d0 * key->n[0] + (uint32_t)A; in montMulAdd() [all …]
|
D | rsa_e_f4.c | 32 static void subM(const RSAPublicKey* key, in subM() argument 36 for (i = 0; i < key->len; ++i) { in subM() 37 A += (uint64_t)a[i] - key->n[i]; in subM() 44 static int geM(const RSAPublicKey* key, in geM() argument 47 for (i = key->len; i;) { in geM() 49 if (a[i] < key->n[i]) return 0; in geM() 50 if (a[i] > key->n[i]) return 1; in geM() 56 static void montMulAdd(const RSAPublicKey* key, in montMulAdd() argument 61 uint32_t d0 = (uint32_t)A * key->n0inv; in montMulAdd() 62 uint64_t B = (uint64_t)d0 * key->n[0] + (uint32_t)A; in montMulAdd() [all …]
|
D | rsa.c | 30 int RSA_e_f4_verify(const RSAPublicKey* key, 35 int RSA_e_3_verify(const RSAPublicKey *key, 40 int RSA_verify(const RSAPublicKey *key, in RSA_verify() argument 44 switch (key->exponent) { in RSA_verify() 46 return RSA_e_3_verify(key, signature, len, sha); in RSA_verify() 49 return RSA_e_f4_verify(key, signature, len, sha); in RSA_verify()
|
/system/core/adb/ |
D | adb_auth_client.c | 34 RSAPublicKey key; member 53 struct adb_public_key *key; in read_keys() local 67 key = calloc(1, sizeof(*key) + 4); in read_keys() 68 if (!key) { in read_keys() 77 ret = __b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4); in read_keys() 78 if (ret != sizeof(key->key)) { in read_keys() 80 free(key); in read_keys() 84 if (key->key.len != RSANUMWORDS) { in read_keys() 85 D("%s: Invalid key len %d\n", file, key->key.len); in read_keys() 86 free(key); in read_keys() [all …]
|
D | adb_auth_host.c | 228 struct adb_private_key *key; in read_key() local 239 key = malloc(sizeof(*key)); in read_key() 240 if (!key) { in read_key() 245 key->rsa = RSA_new(); in read_key() 247 if (!PEM_read_RSAPrivateKey(f, &key->rsa, NULL, NULL)) { in read_key() 250 RSA_free(key->rsa); in read_key() 251 free(key); in read_key() 256 list_add_tail(list, &key->node); in read_key() 349 struct adb_private_key *key = node_to_item(node, struct adb_private_key, node); in adb_auth_sign() local 351 if (!RSA_sign(NID_sha1, token, token_size, sig, &len, key->rsa)) { in adb_auth_sign()
|
D | adb_auth.h | 34 int adb_auth_sign(void *key, void *token, size_t token_size, void *sig); 44 static inline int adb_auth_sign(void* key, void *token, size_t token_size, void *sig) { return 0; } in adb_auth_sign() argument
|
/system/core/libcutils/ |
D | str_parms.c | 75 const char *key; member 78 static bool remove_pair(void *key, void *value, void *context) in remove_pair() argument 91 if (!ctxt->key) { in remove_pair() 94 } else if (!strcmp(ctxt->key, key)) { in remove_pair() 102 hashmapRemove(ctxt->str_parms->map, key); in remove_pair() 103 free(key); in remove_pair() 108 void str_parms_del(struct str_parms *str_parms, const char *key) in str_parms_del() argument 112 .key = key, in str_parms_del() 150 char *key; in str_parms_create_str() local 157 key = strndup(kvpair, eq - kvpair); in str_parms_create_str() [all …]
|
D | hashmap.c | 28 void* key; member 37 int (*hash)(void* key); 44 int (*hash)(void* key), bool (*equals)(void* keyA, void* keyB)) { in hashmapCreate() argument 80 static inline int hashKey(Hashmap* map, void* key) { in hashKey() argument 81 int h = map->hash(key); in hashKey() 155 int hashmapHash(void* key, size_t keySize) { in hashmapHash() argument 157 char* data = (char*) key; in hashmapHash() 166 static Entry* createEntry(void* key, int hash, void* value) { in createEntry() argument 171 entry->key = key; in createEntry() 189 void* hashmapPut(Hashmap* map, void* key, void* value) { in hashmapPut() argument [all …]
|
D | properties.c | 34 int property_set(const char *key, const char *value) in property_set() argument 36 return __system_property_set(key, value); in property_set() 39 int property_get(const char *key, char *value, const char *default_value) in property_get() argument 43 len = __system_property_get(key, value); in property_get() 55 int property_list(void (*propfn)(const char *key, const char *value, void *cookie), in property_list() argument 137 int property_get(const char *key, char *value, const char *default_value) in property_get() argument 155 if (strlen(key) >= PROPERTY_KEY_MAX) return -1; in property_get() 160 strcpy(sendBuf+1, key); in property_get() 204 int property_set(const char *key, const char *value) in property_set() argument 216 if (strlen(key) >= PROPERTY_KEY_MAX) return -1; in property_set() [all …]
|
/system/core/include/cutils/ |
D | hashmap.h | 42 int (*hash)(void* key), bool (*equals)(void* keyA, void* keyB)); 53 int hashmapHash(void* key, size_t keySize); 62 void* hashmapPut(Hashmap* map, void* key, void* value); 68 void* hashmapGet(Hashmap* map, void* key); 73 bool hashmapContainsKey(Hashmap* map, void* key); 82 void* hashmapMemoize(Hashmap* map, void* key, 83 void* (*initialValue)(void* key, void* context), void* context); 89 void* hashmapRemove(Hashmap* map, void* key); 101 bool (*callback)(void* key, void* value, void* context), 125 int hashmapIntHash(void* key);
|
D | str_parms.h | 28 void str_parms_del(struct str_parms *str_parms, const char *key); 30 int str_parms_add_str(struct str_parms *str_parms, const char *key, 32 int str_parms_add_int(struct str_parms *str_parms, const char *key, int value); 34 int str_parms_add_float(struct str_parms *str_parms, const char *key, 37 int str_parms_get_str(struct str_parms *str_parms, const char *key, 39 int str_parms_get_int(struct str_parms *str_parms, const char *key, 41 int str_parms_get_float(struct str_parms *str_parms, const char *key,
|
D | sockets.h | 49 char key[64] = ANDROID_SOCKET_ENV_PREFIX; in android_get_control_socket() local 55 strlcpy(key + sizeof(ANDROID_SOCKET_ENV_PREFIX) - 1, in android_get_control_socket() 57 sizeof(key) - sizeof(ANDROID_SOCKET_ENV_PREFIX)); in android_get_control_socket() 59 strncpy(key + sizeof(ANDROID_SOCKET_ENV_PREFIX) - 1, in android_get_control_socket() 61 sizeof(key) - sizeof(ANDROID_SOCKET_ENV_PREFIX)); in android_get_control_socket() 62 key[sizeof(key)-1] = '\0'; in android_get_control_socket() 65 val = getenv(key); in android_get_control_socket()
|
D | properties.h | 41 int property_get(const char *key, char *value, const char *default_value); 45 int property_set(const char *key, const char *value); 47 int property_list(void (*propfn)(const char *key, const char *value, void *cookie), void *cookie); …
|
/system/core/libpixelflinger/codeflinger/tinyutils/ |
D | KeyedVector.h | 64 const VALUE& valueFor(const KEY& key) const; 67 ssize_t indexOfKey(const KEY& key) const; 73 VALUE& editValueFor(const KEY& key); 80 ssize_t add(const KEY& key, const VALUE& item); 81 ssize_t replaceValueFor(const KEY& key, const VALUE& item); 88 ssize_t removeItem(const KEY& key); 106 const VALUE& valueFor(const KEY& key) const; 120 ssize_t KeyedVector<KEY,VALUE>::indexOfKey(const KEY& key) const { in indexOfKey() argument 121 return mVector.indexOf( key_value_pair_t<KEY,VALUE>(key) ); in indexOfKey() 125 const VALUE& KeyedVector<KEY,VALUE>::valueFor(const KEY& key) const { in valueFor() argument [all …]
|
D | TypeHelpers.h | 221 KEY key; 224 key_value_pair_t(const key_value_pair_t& o) : key(o.key), value(o.value) { } 225 key_value_pair_t(const KEY& k, const VALUE& v) : key(k), value(v) { } 226 key_value_pair_t(const KEY& k) : key(k) { } 228 return strictly_order_type(key, o.key);
|
/system/core/toolbox/ |
D | readtty.c | 11 char key; member 26 char next_char(char key, char current) in next_char() argument 31 if(key == map[i].key) { in next_char() 38 return key; in next_char() 41 char prev_char(char key, char current) in prev_char() argument 46 if(key == map[i].key) { in prev_char() 53 return key; in prev_char()
|
D | getprop.c | 9 static void record_prop(const char* key, const char* name, void* opaque) in record_prop() argument 13 snprintf(temp, sizeof temp, "[%s]: [%s]", key, name); in record_prop()
|
/system/core/libmincrypt/tools/ |
D | DumpPublicKey.java | 42 static int check(RSAPublicKey key) throws Exception { in check() argument 43 BigInteger pubexp = key.getPublicExponent(); in check() 44 BigInteger modulus = key.getModulus(); in check() 70 static String print(RSAPublicKey key) throws Exception { in print() argument 71 int version = check(key); in print() 73 BigInteger N = key.getModulus(); in print() 139 RSAPublicKey key = (RSAPublicKey) (cert.getPublicKey()); in main() local 140 check(key); in main() 141 System.out.print(print(key)); in main()
|
/system/core/libpixelflinger/codeflinger/ |
D | CodeCache.h | 38 virtual int compare_type(const AssemblyKeyBase& key) const = 0; 46 virtual int compare_type(const AssemblyKeyBase& key) const { in compare_type() argument 47 const T& rhs = static_cast<const AssemblyKey&>(key).mKey; in compare_type() 86 sp<Assembly> lookup(const AssemblyKeyBase& key) const; 88 int cache( const AssemblyKeyBase& key, 128 return lhs.key.mKey->compare_type(*(rhs.key.mKey)); in compare_type()
|
/system/core/rootdir/etc/ |
D | init.testmenu | 86 echo Got key -$c- 101 echo Got key -$c- 129 echo Got key -$c- 159 echo Got key -$c- 194 echo Got key -$c- 219 echo Got key -$c- 281 echo Got key -$c-
|
/system/security/keystore/ |
D | keystore_get.cpp | 24 ssize_t keystore_get(const char *key, size_t keyLength, uint8_t** value) { in keystore_get() argument 34 int32_t ret = service->get(String16(key, keyLength), value, &valueLength); in keystore_get()
|
/system/extras/tests/bionic/libc/common/ |
D | bench_pthread.c | 176 pthread_key_t key; in main() local 177 pthread_key_create(&key, key_destroy); in main() 178 pthread_setspecific(key, (void*)(int)100); in main() 182 BENCH(pthread_getspecific(key)); in main()
|
/system/vold/ |
D | VolumeManager.h | 93 const char *key, const int ownerUid, bool isExternal); 108 int mountAsec(const char *id, const char *key, int ownerUid); 116 int mountObb(const char *fileName, const char *key, int ownerUid);
|
/system/core/init/ |
D | property_service.c | 480 char *key, *value, *eol, *sol, *tmp; in load_properties() local 484 key = sol; in load_properties() 488 value = strchr(key, '='); in load_properties() 492 while(isspace(*key)) key++; in load_properties() 493 if(*key == '#') continue; in load_properties() 495 while((tmp > key) && isspace(*tmp)) *tmp-- = 0; in load_properties() 501 property_set(key, value); in load_properties()
|
/system/security/softkeymaster/ |
D | keymaster_openssl.cpp | 269 const uint8_t* key, const size_t key_length, in openssl_import_keypair() argument 273 if (key == NULL) { in openssl_import_keypair() 281 Unique_PKCS8_PRIV_KEY_INFO pkcs8(d2i_PKCS8_PRIV_KEY_INFO(NULL, &key, key_length)); in openssl_import_keypair() 322 UniquePtr<uint8_t> key(static_cast<uint8_t*>(malloc(len))); in openssl_get_keypair_public() local 323 if (key.get() == NULL) { in openssl_get_keypair_public() 328 unsigned char* tmp = reinterpret_cast<unsigned char*>(key.get()); in openssl_get_keypair_public() 336 *x509_data = key.release(); in openssl_get_keypair_public()
|