PublicKey

public struct PublicKey : NISTECPublicKey

Undocumented

P521 + PrivateKey

  • Verifies an ECDSA signature over the P521 elliptic curve.

    Declaration

    Swift

    public func isValidSignature<D>(_ signature: P521.Signing.ECDSASignature, for digest: D) -> Bool where D : Digest

    Parameters

    signature

    The signature to verify

    digest

    The digest that was signed.

    Return Value

    True if the signature is valid, false otherwise.

  • Verifies an ECDSA signature over the P521 elliptic curve. SHA512 is used as the hash function.

    Declaration

    Swift

    public func isValidSignature<D>(_ signature: P521.Signing.ECDSASignature, for data: D) -> Bool where D : DataProtocol

    Parameters

    signature

    The signature to verify

    data

    The data that was signed.

    Return Value

    True if the signature is valid, false otherwise.