@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
16 lines • 794 B
TypeScript
import { type KeyObject } from "node:crypto";
export interface SecretOpenInput {
/** The recipient's private key: the request key the engine generated. */
readonly privateKey: KeyObject;
/** The recipient's raw public key (`hpkePk`), part of the KEM context. */
readonly recipientPublicKey: Uint8Array;
/** The 32-byte encapsulated key (`enc`). */
readonly enc: Uint8Array;
/** The AEAD output with its 16-byte tag (`ct`). */
readonly ct: Uint8Array;
readonly info: Uint8Array;
readonly aad: Uint8Array;
}
/** HPKE base-mode open; `undefined` for any refusal (weak `enc`, zero shared secret, or an AEAD failure). */
export declare function openSecretAnswer(input: SecretOpenInput): Uint8Array | undefined;
//# sourceMappingURL=secret-sealed-hpke.d.ts.map