@hpke/dhkem-x448
Version:
A Hybrid Public Key Encryption (HPKE) module extension for X448
41 lines • 1.07 kB
TypeScript
import { Dhkem, KemId } from "@hpke/common";
/**
* The DHKEM(X448, HKDF-SHA512) for HPKE KEM implementing {@link KemInterface}.
*
* This class is implemented using
* {@link https://github.com/paulmillr/noble-curves | @noble/curves}.
*
* The instance of this class can be specified to the
* {@link https://jsr.io/@hpke/core/doc/~/CipherSuiteParams | CipherSuiteParams} as follows:
*
* @example Use with `@hpke/core`:
*
* ```ts
* import {
* Aes256Gcm,
* CipherSuite,
* HkdfSha512,
* } from "@hpke/core";
* import { DhkemX448HkdfSha512 } from "@hpke/dhkem-x448";
*
* const suite = new CipherSuite({
* kem: new DhkemX448HkdfSha512(),
* kdf: new HkdfSha512(),
* aead: new Aes256Gcm(),
* });
* ```
*/
export declare class DhkemX448HkdfSha512 extends Dhkem {
/** KemId.DhkemX448HkdfSha512 (0x0021) */
id: KemId;
/** 64 */
secretSize: number;
/** 56 */
encSize: number;
/** 56 */
publicKeySize: number;
/** 56 */
privateKeySize: number;
constructor();
}
//# sourceMappingURL=dhkemX448.d.ts.map