Interface: UpgradeKemKeyInput
Defined in: migrate.ts:36
Input to Upgrader.upgradeKemKey: an existing classical KEM key pair and the post-quantum KEM to add.
Properties
classicalAlgorithm?
optionalclassicalAlgorithm?:"P-256"|"P-384"|"X25519"
Defined in: migrate.ts:42
The classical algorithm of the key. Default X25519.
classicalPublic
classicalPublic:
Uint8Array
Defined in: migrate.ts:40
Raw classical public key. X25519: 32 bytes. P-256: 65-byte, P-384: 97-byte uncompressed SEC1 point.
classicalSecret
classicalSecret:
Uint8Array
Defined in: migrate.ts:38
Raw classical secret. X25519: 32 bytes. P-256 and P-384: the PKCS#8 PEM text bytes (quantum-safe-py's layout).
targetPqc?
optionaltargetPqc?:"ML-KEM-512"|"ML-KEM-768"|"ML-KEM-1024"
Defined in: migrate.ts:44
Post-quantum KEM to add. Default ML-KEM-768.