import * as simplewebauthn from "https://deno.land/x/simplewebauthn@v8.3.2/packages/server/src/helpers/index.ts";
Enums
COSE Algorithms | |
COSE Curves | |
COSE Keys | |
COSE Key Types |
Functions
Convert the aaguid buffer in authData into a UUID string | |
Convert buffer to an OpenSSL-compatible PEM text format. | |
Takes COSE-encoded public key and converts it to PKCS key | |
Convert an AttestationObject buffer to a proper object | |
Decode an authenticator's base64url-encoded clientDataJSON to JSON | |
Generate a suitably random value to be used as an attestation or assertion challenge | |
Extract PEM certificate info | |
A method to pull a CRL from a certificate and compare its serial number to the list of revoked certificate serial numbers within the CRL. | |
Encode the given array buffer into a Base64URL-encoded string. Ideal for converting various credential response ArrayBuffers to string for sending back to the server as JSON. | |
Encode a string to base64url | |
Confirm that the string is encoded into base64 | |
Confirm that the string is encoded into base64url, with support for optional padding | |
Convert a base64url string into base64 | |
Decode from a Base64URL-encoded string to an ArrayBuffer. Best used when converting a credential ID from a JSON string to an ArrayBuffer, like in allowCredentials or excludeCredentials. | |
Decode a base64url string into its original string | |
Decode and return the first item in a sequence of CBOR-encoded values | |
Encode data to CBOR | |
Generate a digest of the provided data. | |
Fill up the provided bytes array with random bytes equal to its length. | |
Verify signatures with their public key. Supports EC2 and RSA public keys. | |
Make sure two Uint8Arrays are deeply equivalent | |
Combine multiple Uint8Arrays into a single Uint8Array | |
Convert an ASCII string to Uint8Array | |
Convert a hexadecimal string to isoUint8Array. | |
Convert a UTF-8 string back into bytes | |
Prepare a DataView we can slice our way around in as we parse the bytes in a Uint8Array | |
Convert a Uint8Array to Hexadecimal. | |
Convert bytes into a UTF-8 string | |
Make sense of the authData buffer contained in an Attestation | |
Returns hash digest of the given data, using the given algorithm when provided. Defaults to using SHA-256. | |
Traverse an array of PEM certificates and ensure they form a proper chain | |
Verify an authenticator's signature |
Type Aliases
| |
Fundamental values that are needed to discern the more specific COSE public key types below. | |
Fundamental values that are needed to discern the more specific COSE public key types below. | |