Skip to content

Interface: PqHybridProvider

Defined in: core/src/schema/crypto-pq.ts:54

readonly alg: string

Defined in: core/src/schema/crypto-pq.ts:56

Human-readable identifier of the underlying KEM primitive.

wrap(): Promise<{ ct: Uint8Array; key: Uint8Array; }>

Defined in: core/src/schema/crypto-pq.ts:63

Encapsulate a fresh shared secret. wrap returns the KEM ciphertext callers ship in the envelope plus the shared secret used as the AEAD content key. wrap is called once per encrypt.

Promise<{ ct: Uint8Array; key: Uint8Array; }>


unwrap(ct): Promise<Uint8Array<ArrayBufferLike>>

Defined in: core/src/schema/crypto-pq.ts:68

Decapsulate a KEM ciphertext into the shared secret. Called on every decrypt.

Uint8Array

Promise<Uint8Array<ArrayBufferLike>>