Home
last modified time | relevance | path

Searched refs:keyId (Results 1 – 4 of 4) sorted by relevance

/device/google/contexthub/util/nanoapp_encr/
Dnanoapp_encr.c56 static int handleEncrypt(uint8_t **pbuf, uint32_t bufUsed, FILE *out, uint64_t keyId, uint32_t *key) in handleEncrypt() argument
68 encr.keyID = keyId; in handleEncrypt()
255 uint64_t keyId = 0; in main() local
282 u64Arg = &keyId; in main()
325 if (encrypt && !keyId) in main()
343 ret = handleEncrypt(&buf, bufUsed, out, keyId, key); in main()
/device/google/contexthub/firmware/os/core/
DnanohubCommand.c198 static AppSecErr osSecretKeyLookup(uint64_t keyId, void *keyBuf) in osSecretKeyLookup() argument
209 if (sz == sizeof(struct SeosEedataEncrKeyData) && kd.keyID == keyId) { in osSecretKeyLookup()
219 static AppSecErr osSecretKeyDelete(uint64_t keyId) in osSecretKeyDelete() argument
233 if (sz == sizeof(kd) && kd.keyID == keyId) { in osSecretKeyDelete()
242 static AppSecErr osSecretKeyAdd(uint64_t keyId, void *keyBuf) in osSecretKeyAdd() argument
247 if (osSecretKeyLookup(keyId, NULL) != APP_SEC_KEY_NOT_FOUND) in osSecretKeyAdd()
251 kd.keyID = keyId; in osSecretKeyAdd()
347 uint64_t keyId = KEY_ID_MAKE(APP_ID_GET_VENDOR(app->hdr.appId), ki->id); in updateKey() local
352 ret = osSecretKeyDelete(keyId); in updateKey()
356 ret = osSecretKeyAdd(keyId, data); in updateKey()
[all …]
/device/google/contexthub/util/nanoapp_postprocess/
Dpostprocess.c573 …(uint8_t **pbuf, uint32_t bufUsed, FILE *out, uint32_t layoutFlags, uint64_t appId, uint64_t keyId) in handleKey() argument
576 struct KeyInfo ki = { .data = keyId }; in handleKey()
639 uint64_t keyId = 0; in main() local
668 u64Arg = &keyId; in main()
719 if (layoutId == LAYOUT_KEY && !keyId) in main()
721 if (layoutId == LAYOUT_OS && (keyId || appId)) in main()
742 ret = handleKey(&buf, bufUsed, out, layoutFlags, appId, keyId); in main()
Dpostprocess_elf.c831 …(uint8_t **pbuf, uint32_t bufUsed, FILE *out, uint32_t layoutFlags, uint64_t appId, uint64_t keyId) in handleKey() argument
834 struct KeyInfo ki = { .data = keyId }; in handleKey()
897 uint64_t keyId = 0; in main() local
929 u64Arg = &keyId; in main()
983 if (layoutId == LAYOUT_KEY && !keyId) in main()
985 if (layoutId == LAYOUT_OS && (keyId || appId)) in main()
1009 ret = handleKey(&buf, bufUsed, out, layoutFlags, appId, keyId); in main()