PqForgeCryptographyExtensions extension

Hybrid combining for the modern package:cryptography crypto.SecretKey type.

The receiver is treated as the classical shared secret (placed first in the IETF ordering); postQuantumSecret is the post-quantum share placed second. Both keys are read asynchronously, handed to the pure PqForgeCombiner core, and the result is returned as a fresh crypto.SecretKeyData ready to drive an AesGcm (or any other) cipher.

on
  • SecretKey

Methods

deriveHybridSecretKey({required SecretKey postQuantumSecret, required Uint8List info, Uint8List? salt, PqHybridProfile profile = PqHybridProfile.balanced, int length = PqForgeCombiner.defaultLength}) Future<SecretKeyData>

Available on SecretKey, provided by the PqForgeCryptographyExtensions extension

Derives a hybrid session key from this classical secret and a post-quantum secret.