/system/security/keystore/ |
keyblob_utils.cpp | 22 * to a hardware keymaster implementation, the first 4 bytes of the key_blob 43 uint8_t* add_softkey_header(uint8_t* key_blob, size_t key_blob_length) { 48 memcpy(key_blob, SOFT_KEY_MAGIC, sizeof(SOFT_KEY_MAGIC)); 50 return key_blob + sizeof(SOFT_KEY_MAGIC); 53 bool is_softkey(const uint8_t* key_blob, const size_t key_blob_length) { 58 return !memcmp(key_blob, SOFT_KEY_MAGIC, sizeof(SOFT_KEY_MAGIC));
|
/system/security/keystore/include/keystore/ |
keystore.h | 66 uint8_t* add_softkey_header(uint8_t* key_blob, size_t key_blob_length); 71 bool is_softkey(const uint8_t* key_blob, const size_t key_blob_length);
|
/hardware/libhardware/include/hardware/ |
keymaster.h | 117 uint8_t** key_blob, size_t* key_blob_length); 129 uint8_t** key_blob, size_t* key_blob_length); 139 const uint8_t* key_blob, const size_t key_blob_length, 151 const uint8_t* key_blob, const size_t key_blob_length); 172 const uint8_t* key_blob, const size_t key_blob_length, 184 const uint8_t* key_blob, const size_t key_blob_length,
|
/external/wpa_supplicant_8/src/crypto/ |
crypto_cryptoapi.c | 164 } key_blob; local 167 key_blob.hdr.bType = PLAINTEXTKEYBLOB; 168 key_blob.hdr.bVersion = CUR_BLOB_VERSION; 169 key_blob.hdr.reserved = 0; 170 key_blob.hdr.aiKeyAlg = CALG_DES; 171 key_blob.len = 8; 177 key_blob.key[i] = (tmp >> i) | next | 1; 180 key_blob.key[i] = next | 1; 189 if (!CryptImportKey(prov, (BYTE *) &key_blob, sizeof(key_blob), 0, 0 243 } key_blob; local 361 } key_blob; local 516 } key_blob; local [all...] |
/external/chromium/net/http/ |
des.cc | 186 KeyBlob key_blob; local 187 key_blob.header.bType = PLAINTEXTKEYBLOB; 188 key_blob.header.bVersion = CUR_BLOB_VERSION; 189 key_blob.header.reserved = 0; 190 key_blob.header.aiKeyAlg = CALG_DES; 191 key_blob.key_size = 8; // 64 bits 192 memcpy(key_blob.key_data, key, 8); 196 reinterpret_cast<BYTE*>(&key_blob), 197 sizeof key_blob, 0, 0, key.receive()); 199 SecureZeroMemory(key_blob.key_data, sizeof key_blob.key_data) [all...] |
/external/chromium/crypto/ |
hmac_win.cc | 133 KeyBlob* key_blob = reinterpret_cast<KeyBlob*>(&key_blob_storage[0]); local 134 key_blob->header.bType = PLAINTEXTKEYBLOB; 135 key_blob->header.bVersion = CUR_BLOB_VERSION; 136 key_blob->header.reserved = 0; 137 key_blob->header.aiKeyAlg = CALG_RC2; 138 key_blob->key_size = key_length; 139 memcpy(key_blob->key_data, key, key_length); 149 SecureZeroMemory(key_blob->key_data, key_length);
|
/hardware/qcom/keymaster/ |
keymaster_qcom.h | 77 * (by secure app) is in shared buffer at offset of "key_blob" and is opaque 92 * (by secure app) is in shared buffer at offset of "key_blob" and is opaque 95 * key_blob : key blob data 101 qcom_km_key_blob_t key_blob; member in struct:keymaster_gen_keypair_resp 112 * "key_blob" and is opaque 127 * (by secure app) is in shared buffer at offset of "key_blob" and is opaque 130 * key_blob : key blob data 136 qcom_km_key_blob_t key_blob; member in struct:keymaster_import_keypair_resp 149 * key_blob : Key data information (in shared buffer) 156 qcom_km_key_blob_t key_blob; member in struct:keymaster_sign_data_cmd 195 qcom_km_key_blob_t key_blob; member in struct:keymaster_verify_data_cmd [all...] |
keymaster_qcom.cpp | 366 memcpy(p, (unsigned char *)(&resp->key_blob), resp->key_blob_len); 440 memcpy(p, (unsigned char *)(&resp->key_blob), resp->key_blob_len); 507 memcpy((unsigned char *)(&send_cmd->key_blob), keyBlob, keyBlobLength); 596 memcpy((unsigned char *)(&send_cmd->key_blob), keyBlob, keyBlobLength);
|
/hardware/libhardware/tests/keymaster/ |
keymaster_test.cpp | 357 uint8_t* key_blob; local 361 sDevice->generate_keypair(sDevice, key_type, ¶ms, &key_blob, &key_blob_length)) 363 UniqueKey key(&sDevice, key_blob, key_blob_length); 368 sDevice->get_keypair_public(sDevice, key_blob, key_blob_length, 400 uint8_t* key_blob; local 404 sDevice->generate_keypair(sDevice, key_type, NULL, &key_blob, &key_blob_length)) 411 uint8_t* key_blob; local 415 sDevice->generate_keypair(sDevice, key_type, NULL, &key_blob, &key_blob_length)) 420 uint8_t* key_blob; local 425 &key_blob, &key_blob_length) 456 uint8_t* key_blob; local 466 uint8_t* key_blob; local 476 uint8_t* key_blob; local 498 uint8_t* key_blob; local 511 uint8_t* key_blob; local 530 uint8_t* key_blob; local 544 uint8_t* key_blob; local 660 uint8_t* key_blob; local 700 uint8_t* key_blob; local 750 uint8_t* key_blob; local 778 uint8_t* key_blob; local 809 uint8_t* key_blob; local 840 uint8_t* key_blob; local 884 uint8_t* key_blob; local 909 uint8_t* key_blob; local [all...] |
/device/asus/grouper/keymaster/ |
keymaster_grouper.cpp | 250 static int keyblob_save(ByteArray* objId, uint8_t** key_blob, size_t* key_blob_length) { 263 *key_blob = handleBlob->get(); 332 uint8_t** key_blob, size_t* key_blob_length) { 406 return keyblob_save(objId.get(), key_blob, key_blob_length); 411 uint8_t** key_blob, size_t* key_blob_length) { 610 return keyblob_save(objId.get(), key_blob, key_blob_length); 614 const uint8_t* key_blob, const size_t key_blob_length, 622 if (keyblob_restore(&session, key_blob, key_blob_length, &publicKey, &privateKey)) { 726 const uint8_t* key_blob, const size_t key_blob_length) { 733 if (keyblob_restore(&session, key_blob, key_blob_length, &publicKey, &privateKey)) [all...] |
/device/asus/grouper/self-extractors/nvidia/staging/keymaster/ |
keymaster_grouper.cpp | 250 static int keyblob_save(ByteArray* objId, uint8_t** key_blob, size_t* key_blob_length) { 263 *key_blob = handleBlob->get(); 332 uint8_t** key_blob, size_t* key_blob_length) { 406 return keyblob_save(objId.get(), key_blob, key_blob_length); 411 uint8_t** key_blob, size_t* key_blob_length) { 610 return keyblob_save(objId.get(), key_blob, key_blob_length); 614 const uint8_t* key_blob, const size_t key_blob_length, 622 if (keyblob_restore(&session, key_blob, key_blob_length, &publicKey, &privateKey)) { 726 const uint8_t* key_blob, const size_t key_blob_length) { 733 if (keyblob_restore(&session, key_blob, key_blob_length, &publicKey, &privateKey)) [all...] |
/device/asus/tilapia/self-extractors/nvidia/staging/keymaster/ |
keymaster_grouper.cpp | 250 static int keyblob_save(ByteArray* objId, uint8_t** key_blob, size_t* key_blob_length) { 263 *key_blob = handleBlob->get(); 332 uint8_t** key_blob, size_t* key_blob_length) { 406 return keyblob_save(objId.get(), key_blob, key_blob_length); 411 uint8_t** key_blob, size_t* key_blob_length) { 610 return keyblob_save(objId.get(), key_blob, key_blob_length); 614 const uint8_t* key_blob, const size_t key_blob_length, 622 if (keyblob_restore(&session, key_blob, key_blob_length, &publicKey, &privateKey)) { 726 const uint8_t* key_blob, const size_t key_blob_length) { 733 if (keyblob_restore(&session, key_blob, key_blob_length, &publicKey, &privateKey)) [all...] |
/device/samsung/tuna/keymaster/ |
keymaster_tuna.cpp | 246 static int keyblob_save(ByteArray* objId, uint8_t** key_blob, size_t* key_blob_length) { 259 *key_blob = handleBlob->get(); 328 uint8_t** key_blob, size_t* key_blob_length) { 402 return keyblob_save(objId.get(), key_blob, key_blob_length); 407 uint8_t** key_blob, size_t* key_blob_length) { 606 return keyblob_save(objId.get(), key_blob, key_blob_length); 610 const uint8_t* key_blob, const size_t key_blob_length, 618 if (keyblob_restore(&session, key_blob, key_blob_length, &publicKey, &privateKey)) { 712 const uint8_t* key_blob, const size_t key_blob_length) { 719 if (keyblob_restore(&session, key_blob, key_blob_length, &publicKey, &privateKey)) [all...] |
/hardware/samsung_slsi/exynos5/libkeymaster/ |
keymaster_mobicore.cpp | 138 uint8_t** key_blob, size_t* key_blob_length) { 147 } else if (key_blob == NULL || key_blob_length == NULL) { 227 *key_blob = outPtr.release(); 233 const uint8_t* key_blob, const size_t key_blob_length, 259 ret = TEE_GetPubKey(key_blob, key_blob_length, binModPtr.get(), &bin_mod_len, binExpPtr.get(),
|
/system/security/softkeymaster/ |
keymaster_openssl.cpp | 270 uint8_t** key_blob, size_t* key_blob_length) { 276 } else if (key_blob == NULL || key_blob_length == NULL) { 295 if (wrap_key(pkey.get(), EVP_PKEY_type(pkey->type), key_blob, key_blob_length)) { 303 const uint8_t* key_blob, const size_t key_blob_length, 311 Unique_EVP_PKEY pkey(unwrap_key(key_blob, key_blob_length));
|
/external/openssh/ |
monitor.c | 196 static u_char *key_blob = NULL; variable 618 if (key_blob == NULL || key_bloblen != bloblen || 619 timingsafe_bcmp(key_blob, blob, key_bloblen)) 628 if (key_blob != NULL) 629 xfree(key_blob); 634 key_blob = NULL; 1179 key_blob = blob; [all...] |