import type { MlDsaExports, Sha3Exports, MlDsaKeyPair } from './types.js'; import type { MlDsaParams } from './params.js'; /** * ML-DSA.KeyGen_internal, FIPS 204 Algorithm 6. * * Input ξ (32 bytes): the keygen seed. Produced internally by `keygen()` * via `randomBytes(32)`, or supplied by `keygenDerand`. * Output (pk, sk) byte-encoded per Alg 22 (pkEncode) and Alg 24 (skEncode). * * Wipe contract on return: every WASM region that held a secret or * secret-derived intermediate is zeroed. Public regions (matrix Â, t₁, * pk, ρ) are deliberately not wiped, they can be re-derived from the * returned pk/sk anyway. The caller is expected to wipe the local ξ * buffer it allocated; this function does not own that buffer. */ export declare function mldsaKeygenInternal(mx: MlDsaExports, sx: Sha3Exports, params: MlDsaParams, xi: Uint8Array): MlDsaKeyPair;