Home
last modified time | relevance | path

Searched refs:credentialKeys (Results 1 – 2 of 2) sorted by relevance

/hardware/interfaces/identity/aidl/default/libeic/
DEicProvisioning.c46 uint8_t credentialKeys[EIC_CREDENTIAL_KEYS_CBOR_SIZE_FEATURE_VERSION_202101]; in eicProvisioningInitForUpdate() local
75 (const uint8_t*)docType, docTypeLength, credentialKeys)) { in eicProvisioningInitForUpdate()
100 if (credentialKeys[0] != (expectPopSha256 ? 0x83 : 0x82) || // array of two or three elements in eicProvisioningInitForUpdate()
101 credentialKeys[1] != 0x50 || // 16-byte bstr in eicProvisioningInitForUpdate()
102 credentialKeys[18] != 0x58 || credentialKeys[19] != 0x20) { // 32-byte bstr in eicProvisioningInitForUpdate()
107 if (credentialKeys[52] != 0x58 || credentialKeys[53] != 0x20) { // 32-byte bstr in eicProvisioningInitForUpdate()
112 eicMemCpy(ctx->storageKey, credentialKeys + 2, EIC_AES_128_KEY_SIZE); in eicProvisioningInitForUpdate()
113 eicMemCpy(ctx->credentialPrivateKey, credentialKeys + 20, EIC_P256_PRIV_KEY_SIZE); in eicProvisioningInitForUpdate()
DEicPresentation.c31 uint8_t credentialKeys[EIC_CREDENTIAL_KEYS_CBOR_SIZE_FEATURE_VERSION_202101]; in eicPresentationInit() local
59 (const uint8_t*)docType, docTypeLength, credentialKeys)) { in eicPresentationInit()
84 if (credentialKeys[0] != (expectPopSha256 ? 0x83 : 0x82) || // array of two or three elements in eicPresentationInit()
85 credentialKeys[1] != 0x50 || // 16-byte bstr in eicPresentationInit()
86 credentialKeys[18] != 0x58 || credentialKeys[19] != 0x20) { // 32-byte bstr in eicPresentationInit()
91 if (credentialKeys[52] != 0x58 || credentialKeys[53] != 0x20) { // 32-byte bstr in eicPresentationInit()
96 eicMemCpy(ctx->storageKey, credentialKeys + 2, EIC_AES_128_KEY_SIZE); in eicPresentationInit()
97 eicMemCpy(ctx->credentialPrivateKey, credentialKeys + 20, EIC_P256_PRIV_KEY_SIZE); in eicPresentationInit()
100 eicMemCpy(ctx->proofOfProvisioningSha256, credentialKeys + 54, EIC_SHA256_DIGEST_SIZE); in eicPresentationInit()