signature(for:)

    Generates an Elliptic Curve Digital Signature Algorithm (ECDSA) signature of the digest you provide over the P-521 elliptic curve.

    ECDSA.swift:468
    func signature<D>(for digest: D) throws -> P521.Signing.ECDSASignature where D : Digest

    Parameters

    digest

    The digest of the data to sign.

    Returns

    The signature corresponding to the digest. The signing algorithm employs randomization to generate a different signature on every call, even for the same data and key.

    Other members in extension

    Type members

    Instance members