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/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.c834 …(uint8_t **pbuf, uint32_t bufUsed, FILE *out, uint32_t layoutFlags, uint64_t appId, uint64_t keyId) in handleKey() argument
837 struct KeyInfo ki = { .data = keyId }; in handleKey()
900 uint64_t keyId = 0; in main() local
935 u64Arg = &keyId; in main()
989 if (layoutId == LAYOUT_KEY && !keyId) in main()
991 if (layoutId == LAYOUT_OS && (keyId || appId)) in main()
1015 ret = handleKey(&buf, bufUsed, out, layoutFlags, appId, keyId); in main()
/device/google/contexthub/firmware/os/core/
DnanohubCommand.c207 static AppSecErr osSecretKeyLookup(uint64_t keyId, void *keyBuf) in osSecretKeyLookup() argument
218 if (sz == sizeof(struct SeosEedataEncrKeyData) && kd.keyID == keyId) { in osSecretKeyLookup()
228 static AppSecErr osSecretKeyDelete(uint64_t keyId) in osSecretKeyDelete() argument
242 if (sz == sizeof(kd) && kd.keyID == keyId) { in osSecretKeyDelete()
251 static AppSecErr osSecretKeyAdd(uint64_t keyId, void *keyBuf) in osSecretKeyAdd() argument
256 if (osSecretKeyLookup(keyId, NULL) != APP_SEC_KEY_NOT_FOUND) in osSecretKeyAdd()
260 kd.keyID = keyId; in osSecretKeyAdd()
359 uint64_t keyId = KEY_ID_MAKE(APP_ID_GET_VENDOR(app->hdr.appId), ki->id); in updateKey() local
364 ret = osSecretKeyDelete(keyId); in updateKey()
368 ret = osSecretKeyAdd(keyId, data); in updateKey()
[all …]