summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2022-07-27 22:19:53 -0700
committerMatthew Miller <matthew@millerti.me>2022-07-27 22:19:53 -0700
commit1abb167aa20751f0e783961a6ddc88a2af927318 (patch)
treea3483ef0c30890c620de5cc580720b6d78e25850 /packages/server/src
parent300cf684a9bd0b50d7e88a68860d71b012bd875b (diff)
Export named parsePubArea()
Diffstat (limited to 'packages/server/src')
-rw-r--r--packages/server/src/registration/verifications/tpm/parsePubArea.ts2
-rw-r--r--packages/server/src/registration/verifications/tpm/verifyTPM.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/server/src/registration/verifications/tpm/parsePubArea.ts b/packages/server/src/registration/verifications/tpm/parsePubArea.ts
index 5f0d63b..693f7bb 100644
--- a/packages/server/src/registration/verifications/tpm/parsePubArea.ts
+++ b/packages/server/src/registration/verifications/tpm/parsePubArea.ts
@@ -3,7 +3,7 @@ import { TPM_ALG, TPM_ECC_CURVE } from './constants';
/**
* Break apart a TPM attestation's pubArea buffer
*/
-export default function parsePubArea(pubArea: Buffer): ParsedPubArea {
+export function parsePubArea(pubArea: Buffer): ParsedPubArea {
let pointer = 0;
const typeBuffer = pubArea.slice(pointer, (pointer += 2));
diff --git a/packages/server/src/registration/verifications/tpm/verifyTPM.ts b/packages/server/src/registration/verifications/tpm/verifyTPM.ts
index f5fa414..bd80f02 100644
--- a/packages/server/src/registration/verifications/tpm/verifyTPM.ts
+++ b/packages/server/src/registration/verifications/tpm/verifyTPM.ts
@@ -22,7 +22,7 @@ import { verifyAttestationWithMetadata } from '../../../metadata/verifyAttestati
import { TPM_ECC_CURVE, TPM_MANUFACTURERS } from './constants';
import { parseCertInfo } from './parseCertInfo';
-import parsePubArea from './parsePubArea';
+import { parsePubArea } from './parsePubArea';
export default async function verifyTPM(options: AttestationFormatVerifierOpts): Promise<boolean> {
const { aaguid, attStmt, authData, credentialPublicKey, clientDataHash, rootCertificates } =