diff options
author | Matthew Miller <matthew@millerti.me> | 2020-10-12 13:47:04 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2020-10-12 13:47:04 -0700 |
commit | e25d4fcdd362809ca77cc73c0d21a0282a13941c (patch) | |
tree | 78f6f6b2413d793c1c0936b7e1e70fb66c26716f /packages/server/src/attestation/verifications/verifyAndroidKey.ts | |
parent | 8cd8d877158bec39430f6bce53ae18b0ce2ae539 (diff) |
Update OctetString values to access new `.buffer`
Diffstat (limited to 'packages/server/src/attestation/verifications/verifyAndroidKey.ts')
-rw-r--r-- | packages/server/src/attestation/verifications/verifyAndroidKey.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/server/src/attestation/verifications/verifyAndroidKey.ts b/packages/server/src/attestation/verifications/verifyAndroidKey.ts index dbe6f96..f917fa5 100644 --- a/packages/server/src/attestation/verifications/verifyAndroidKey.ts +++ b/packages/server/src/attestation/verifications/verifyAndroidKey.ts @@ -61,7 +61,7 @@ export default async function verifyAttestationAndroidKey(options: Options): Pro // Verify extKeyStore values const { attestationChallenge, teeEnforced, softwareEnforced } = parsedExtKeyStore; - if (!Buffer.from(attestationChallenge).equals(clientDataHash)) { + if (!Buffer.from(attestationChallenge.buffer).equals(clientDataHash)) { throw new Error('Attestation challenge was not equal to client data hash (AndroidKey)'); } |