/system/security/keystore-engine/ |
D | android_engine.cpp | 61 char *key_id = reinterpret_cast<char *>(*from_d); in key_id_dup() local 62 if (key_id != nullptr) { in key_id_dup() 63 *from_d = strdup(key_id); in key_id_dup() 75 char *key_id = reinterpret_cast<char *>(ptr); in key_id_free() local 76 free(key_id); in key_id_free() 96 const char *key_id = rsa_get_key_id(rsa); in rsa_private_transform() local 97 if (key_id == nullptr) { in rsa_private_transform() 104 int32_t ret = g_keystore_backend->sign(key_id, in, len, &reply, &reply_len); in rsa_private_transform() 150 const char *key_id = ecdsa_get_key_id(ec_key); in ecdsa_sign() local 151 if (key_id == nullptr) { in ecdsa_sign() [all …]
|
D | keystore_backend_hidl.cpp | 34 const char *key_id, const uint8_t* in, size_t len, uint8_t** reply, in sign() argument 36 if (key_id == nullptr || in == nullptr || reply == nullptr || reply_len == nullptr) { in sign() 57 key_id, std::vector<uint8_t>(in, in + len), cb); in sign() 65 const char *key_id, uint8_t** pubkey, size_t* pubkey_len) { in get_pubkey() argument 66 if (key_id == nullptr || pubkey == nullptr || pubkey_len == nullptr) { in get_pubkey() 86 Return<void> ret = service->getPublicKey(key_id, cb); in get_pubkey()
|
D | keystore_backend.h | 31 virtual int32_t sign(const char *key_id, const uint8_t* in, size_t len, 33 virtual int32_t get_pubkey(const char *key_id, uint8_t** pubkey,
|
D | keystore_backend_hidl.h | 32 int32_t sign(const char *key_id, const uint8_t* in, size_t len, 34 int32_t get_pubkey(const char *key_id, uint8_t** pubkey,
|
D | keystore_backend_binder.h | 32 int32_t sign(const char *key_id, const uint8_t* in, size_t len, 34 int32_t get_pubkey(const char *key_id, uint8_t** pubkey,
|
D | keystore_backend_binder.cpp | 96 int32_t KeystoreBackendBinder::sign(const char* key_id, const uint8_t* in, size_t len, in sign() argument 107 String16 key_name16(key_id); in sign() 245 int32_t KeystoreBackendBinder::get_pubkey(const char* key_id, uint8_t** pubkey, in get_pubkey() argument 260 promise, String16(key_id), static_cast<int32_t>(KeyFormat::X509), in get_pubkey()
|
/system/keymaster/tests/ |
D | keymaster_enforcement_test.cpp | 91 static const km_id_t key_id = 0xa; member in keymaster::test::KeymasterBaseTest 104 kmen.AuthorizeOperation(KM_PURPOSE_SIGN, key_id, AuthProxy(single_auth_set, empty)); in TEST_F() 117 kmen.AuthorizeOperation(KM_PURPOSE_SIGN, key_id, AuthProxy(auth_set, empty))); in TEST_F() 121 kmen.AuthorizeOperation(KM_PURPOSE_VERIFY, key_id, AuthProxy(auth_set, empty))); in TEST_F() 132 kmen.AuthorizeOperation(KM_PURPOSE_SIGN, key_id, AuthProxy(auth_set, empty)); in TEST_F() 145 kmen.AuthorizeOperation(KM_PURPOSE_SIGN, key_id, AuthProxy(auth_set, empty))); in TEST_F() 149 kmen.AuthorizeOperation(KM_PURPOSE_VERIFY, key_id, AuthProxy(auth_set, empty))); in TEST_F() 161 kmen.AuthorizeOperation(KM_PURPOSE_VERIFY, key_id, AuthProxy(auth_set, empty)); in TEST_F() 174 kmen.AuthorizeOperation(KM_PURPOSE_SIGN, key_id, AuthProxy(auth_set, empty)); in TEST_F() 188 kmen.AuthorizeOperation(KM_PURPOSE_VERIFY, key_id, AuthProxy(auth_set, empty)); in TEST_F() [all …]
|
/system/bt/stack/crypto_toolbox/ |
D | crypto_toolbox.cc | 56 uint8_t* key_id, const Octet16& n1, in calculate_mac_key_or_ltk() argument 70 it = std::copy(key_id, key_id + 4, it); in calculate_mac_key_or_ltk() 89 uint8_t key_id[4] = {0x65, 0x6c, 0x74, 0x62}; /* 0x62746c65 */ in f5() local 92 *mac_key = calculate_mac_key_or_ltk(t, 0, key_id, n1, n2, a1, a2, length); in f5() 94 *ltk = calculate_mac_key_or_ltk(t, 1, key_id, n1, n2, a1, a2, length); in f5()
|
/system/keymaster/include/keymaster/ |
D | operation.h | 101 void set_key_id(uint64_t key_id) { key_id_ = key_id; } in set_key_id() argument 102 uint64_t key_id() const { return key_id_; } in key_id() function
|
/system/vold/ |
D | KeyUtil.cpp | 113 key_serial_t key_id = in installKey() local 115 if (key_id == -1) { in installKey() 119 LOG(DEBUG) << "Added key " << key_id << " (" << ref << ") to keyring " << device_keyring in installKey()
|
/system/core/libkeyutils/ |
D | mini_keyctl_utils.cpp | 74 std::string key_id = tokens[0]; in GetKeyringId() local 83 *keyring_id = std::stoi(key_id, nullptr, 16); in GetKeyringId()
|
/system/keymaster/android_keymaster/ |
D | android_keymaster.cpp | 283 km_id_t key_id; in BeginOperation() local 285 if (!context_->enforcement_policy()->CreateKeyId(request.key_blob, &key_id)) return; in BeginOperation() 286 operation->set_key_id(key_id); in BeginOperation() 288 request.purpose, key_id, operation->authorizations(), request.additional_params, in BeginOperation() 314 operation->purpose(), operation->key_id(), operation->authorizations(), in UpdateOperation() 343 operation->purpose(), operation->key_id(), operation->authorizations(), in FinishOperation()
|