pub fn ensure_distinct_ecdsa_seal_key<S, Sig>(
signer: &S,
seal: &SealKey,
) -> Result<()>where
S: Signer<Sig>,
Sig: SignatureBitStringEncoding,Expand description
Prove that the OCSP signer’s key is distinct from the configured seal key (F07).
Signs the domain-separated separation message with the OCSP signer through
the same fallible Signer/SignatureBitStringEncoding bridge bundle
production uses (software P-256 with Sig = p256::ecdsa::DerSignature, or
the PKCS#11 bridge with Sig = hoike_sign::Pkcs11EcdsaSignature), parses
the result as a valid DER P-256 signature, and rejects the configuration
if it verifies under the seal key’s public key — proving the same key
material is configured for both roles even through different file names.
ML-DSA seal keys are algorithm-distinct from ECDSA OCSP signers and always
pass. Any signer or encoding error fails the preflight: this never
silently skips the check.