/** * Look up a content-encryption descriptor. Throws * {@link ErrorCode.UNSUPPORTED_ENCRYPTION} for anything not in the table. * * @param {string} enc * @returns {ContentEncryptionDescriptor} */ export function lookup(enc: string): ContentEncryptionDescriptor; /** Every JWE `enc` identifier this package supports. */ export const SUPPORTED: readonly string[]; export type ContentEncryptionDescriptor = { /** * The JOSE `enc` identifier. */ enc: string; /** * AEAD construction. */ kind: "gcm" | "cbc-hs"; /** * Total Content Encryption Key length in bytes. */ cekBytes: number; /** * Initialization Vector length in bytes. */ ivBytes: number; /** * Authentication Tag length in bytes. */ tagBytes: number; /** * node:crypto cipher name for the AES step. */ cipher: string; /** * HMAC hash (AES-CBC-HMAC only). */ hash?: "sha256" | "sha512" | undefined; };