Skip to main content

sign

Function sign 

Source
pub fn sign(
    card: &IdCard,
    hash: Hash,
    data: &[u8],
    pin2: &str,
) -> Result<Vec<u8>>
Expand description

Sign data with the card’s signing key (PIN2) for a qualified electronic signature.

data is the raw data to be signed and is hashed with hash before signing. The returned ECDSA signature is the raw r || s concatenation as produced by the card.