summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src/helpers/index.ts
blob: 09b2f33bbb9f5d5676da5e7051d4347af34dd858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import { convertAAGUIDToString } from './convertAAGUIDToString.ts';
import { convertCertBufferToPEM } from './convertCertBufferToPEM.ts';
import { convertCOSEtoPKCS } from './convertCOSEtoPKCS.ts';
import { decodeAttestationObject } from './decodeAttestationObject.ts';
import { decodeClientDataJSON } from './decodeClientDataJSON.ts';
import { decodeCredentialPublicKey } from './decodeCredentialPublicKey.ts';
import { generateChallenge } from './generateChallenge.ts';
import { generateUserID } from './generateUserID.ts';
import { getCertificateInfo } from './getCertificateInfo.ts';
import { isCertRevoked } from './isCertRevoked.ts';
import { parseAuthenticatorData } from './parseAuthenticatorData.ts';
import { toHash } from './toHash.ts';
import { validateCertificatePath } from './validateCertificatePath.ts';
import { verifySignature } from './verifySignature.ts';
import { isoBase64URL, isoCBOR, isoCrypto, isoUint8Array } from './iso/index.ts';
import * as cose from './cose.ts';

export {
  convertAAGUIDToString,
  convertCertBufferToPEM,
  convertCOSEtoPKCS,
  cose,
  decodeAttestationObject,
  decodeClientDataJSON,
  decodeCredentialPublicKey,
  generateChallenge,
  generateUserID,
  getCertificateInfo,
  isCertRevoked,
  isoBase64URL,
  isoCBOR,
  isoCrypto,
  isoUint8Array,
  parseAuthenticatorData,
  toHash,
  validateCertificatePath,
  verifySignature,
};

import type {
  AttestationFormat,
  AttestationObject,
  AttestationStatement,
} from './decodeAttestationObject.ts';
import type { CertificateInfo } from './getCertificateInfo.ts';
import type { ClientDataJSON } from './decodeClientDataJSON.ts';
import type {
  COSEPublicKey,
  COSEPublicKeyEC2,
  COSEPublicKeyOKP,
  COSEPublicKeyRSA,
} from './cose.ts';
import type { ParsedAuthenticatorData } from './parseAuthenticatorData.ts';

export type {
  AttestationFormat,
  AttestationObject,
  AttestationStatement,
  CertificateInfo,
  ClientDataJSON,
  COSEPublicKey,
  COSEPublicKeyEC2,
  COSEPublicKeyOKP,
  COSEPublicKeyRSA,
  ParsedAuthenticatorData,
};