Skip to main content

build_p256_component

Function build_p256_component 

Source
pub fn build_p256_component(
    signing_key: &SigningKey,
    message: &[u8],
) -> Result<ComponentSignature, CompositeError>
Expand description

Build a real ECDSA-P256 component signature (NIST P-256 over SHA-256). The signature is DER-encoded per RFC 5480; the public key is SEC1 (uncompressed, 65 bytes).

Sibling to build_ed25519_component. Use both to construct a hybrid classical-classical composite, or pair either with an ML-DSA component for PQ migration.