Interface: PqHybridProvider
このコンテンツはまだ日本語訳がありません。
Interface: PqHybridProvider
Section titled “Interface: PqHybridProvider”Defined in: core/src/schema/crypto-pq.ts:54
Properties
Section titled “Properties”
readonlyalg:string
Defined in: core/src/schema/crypto-pq.ts:56
Human-readable identifier of the underlying KEM primitive.
Methods
Section titled “Methods”wrap()
Section titled “wrap()”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.
Returns
Section titled “Returns”Promise<{ ct: Uint8Array; key: Uint8Array; }>
unwrap()
Section titled “unwrap()”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.
Parameters
Section titled “Parameters”Uint8Array
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>