@hpke/common
Version:
A Hybrid Public Key Encryption (HPKE) internal-use common module for @hpke family modules.
34 lines • 2.55 kB
TypeScript
export type { AeadEncryptionContext } from "./src/interfaces/aeadEncryptionContext.js";
export type { AeadInterface } from "./src/interfaces/aeadInterface.js";
export type { DhkemPrimitives } from "./src/interfaces/dhkemPrimitives.js";
export type { DhkemInterface } from "./src/interfaces/dhkemInterface.js";
export type { JsonWebKeyExtended } from "./src/interfaces/jsonWebKeyExtended.js";
export type { KdfInterface } from "./src/interfaces/kdfInterface.js";
export type { KemInterface } from "./src/interfaces/kemInterface.js";
export type { KeyScheduleParams } from "./src/interfaces/keyScheduleParams.js";
export type { PreSharedKey } from "./src/interfaces/preSharedKey.js";
export type { RecipientContextParams } from "./src/interfaces/recipientContextParams.js";
export type { SenderContextParams } from "./src/interfaces/senderContextParams.js";
export * from "./src/errors.js";
export { NativeAlgorithm } from "./src/algorithm.js";
export { AeadId, KdfId, KemId, Mode } from "./src/identifiers.js";
export { Dhkem } from "./src/kems/dhkem.js";
export { Ec } from "./src/kems/dhkemPrimitives/ec.js";
export { XCurveDhkemPrimitives } from "./src/kems/dhkemPrimitives/xCurve.js";
export { Hybridkem } from "./src/kems/hybridkem.js";
export { XCryptoKey } from "./src/xCryptoKey.js";
export { HkdfSha256Native, HkdfSha384Native, HkdfSha512Native, toArrayBuffer, toUint8Array, } from "./src/kdfs/hkdf.js";
export { AEAD_USAGES } from "./src/interfaces/aeadEncryptionContext.js";
export { KEM_USAGES } from "./src/interfaces/dhkemPrimitives.js";
export { LABEL_DKP_PRK, LABEL_SK } from "./src/interfaces/dhkemPrimitives.js";
export { SUITE_ID_HEADER_KEM } from "./src/interfaces/kemInterface.js";
export { EMPTY, INFO_LENGTH_LIMIT, INPUT_LENGTH_LIMIT, MINIMUM_PSK_LENGTH, } from "./src/consts.js";
export { base64UrlToBytes, concat, hexToBytes, i2Osp, isCryptoKeyPair, isDeno, isDenoV1, kemToKeyGenAlgorithm, loadCrypto, loadSubtleCrypto, xor, } from "./src/utils/misc.js";
export { abytes, aexists, anumber, aoutput, clean, copyBytes, createView, hexToNumber, isLE, numberToBigint, type TypedArray, u32, } from "./src/utils/noble.js";
export { hmac } from "./src/hash/hmac.js";
export { sha256, sha384, sha512 } from "./src/hash/sha2.js";
export { sha3_256, sha3_384, sha3_512, shake128, shake256, } from "./src/hash/sha3.js";
export type { CHash, CHashXOF } from "./src/hash/hash.js";
export { mod, pow2 } from "./src/curve/modular.js";
export { montgomery, type MontgomeryECDH } from "./src/curve/montgomery.js";
//# sourceMappingURL=mod.d.ts.map