/** * High-level cryptographic operations. * * These functions use the platform-appropriate backend internally. * They provide the same API as the original crypto.ts, but work * in both Node.js and browser environments. */ import type { ProfileConfig } from '../profiles.js'; import { type SLHDSAKeypair, type FormattedKey } from './types.js'; /** * Compute a single Argon2id shard. */ export declare function computeShard(identityHash: Uint8Array, password: Uint8Array, shardIndex: number, generation: number, profile: ProfileConfig): Promise; /** * Process all shards with controlled concurrency. */ export declare function processAllShards(identityHash: Uint8Array, password: Uint8Array, totalShards: number, generation: number, profileConfig: ProfileConfig, onProgress?: (current: number, total: number) => void): Promise; /** * Mix shards into master IKM using SHA3-512. */ export declare function mixShards(shards: Uint8Array[], profileId: string, generation: number, factor: number, totalShards: number): Promise; /** * Derive SLH-DSA seed from master IKM. */ export declare function deriveSLHDSASeed(masterIKM: Uint8Array): Promise; /** * Derive BIP39 mnemonic entropy from master IKM. */ export declare function deriveMnemonicEntropy(masterIKM: Uint8Array): Promise; /** * Derive Base58 password entropy from master IKM. */ export declare function derivePasswordEntropy(masterIKM: Uint8Array): Promise; /** * Generate SLH-DSA-SHAKE-256s keypair from deterministic seed. */ export declare function generateSLHDSAKeypair(seed: Uint8Array): SLHDSAKeypair; export declare function sign(message: Uint8Array, secretKey: Uint8Array): Uint8Array; export declare function verify(signature: Uint8Array, message: Uint8Array, publicKey: Uint8Array): boolean; /** * Compute fingerprint from master IKM. */ export declare function computeFingerprint(masterIKM: Uint8Array): Promise; /** * Convert entropy to BIP39 mnemonic. */ export declare function entropyToMnemonic(entropy: Uint8Array): string; /** * Convert entropy to Base58 password using rejection sampling. */ export declare function entropyToBase58Password(entropy: Uint8Array): Promise; export declare function formatSecretKey(secretKey: Uint8Array, fingerprint: string, version?: string): FormattedKey; export declare function formatPublicKey(publicKey: Uint8Array, fingerprint: string, version?: string): FormattedKey; /** * Constant-time comparison for hex-encoded hashes. */ export declare function constantTimeHexEquals(a: string, b: string): Promise; //# sourceMappingURL=operations.d.ts.map