summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2020-07-12 11:32:15 -0700
committerMatthew Miller <matthew@millerti.me>2020-07-12 11:32:15 -0700
commitcf4d1ce882ff38b995d02f3294863f34f3efb216 (patch)
treed4882d63216d7b6210c390fcefcc2cb6b968a945
parent02d135d7815aee958e9c2b9b134c7b3d1f7a710c (diff)
Add comment to TPM parseCertInfo
-rw-r--r--packages/server/src/attestation/verifications/tpm/parseCertInfo.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/server/src/attestation/verifications/tpm/parseCertInfo.ts b/packages/server/src/attestation/verifications/tpm/parseCertInfo.ts
index af02229..e7c9225 100644
--- a/packages/server/src/attestation/verifications/tpm/parseCertInfo.ts
+++ b/packages/server/src/attestation/verifications/tpm/parseCertInfo.ts
@@ -1,5 +1,8 @@
import { TPM_ST, TPM_ALG } from './constants';
+/**
+ * Cut up a TPM attestation's certInfo into intelligible chunks
+ */
export default function parseCertInfo(certInfo: Buffer): ParsedCertInfo {
let certBuffer = certInfo;