Skip to content

Structure

ECDSACurve

A struct representing an Elliptic Curve used in Elliptic Curve Digital Signature Algorithm (ECDSA).
struct ECDSACurve

Overview

ECDSACurve encapsulates the different types of elliptic curves used in cryptographic operations, particularly in signing and verifying digital signatures with ECDSA. Each instance of ECDSACurve represents a specific elliptic curve, identified by its standardized curve name.

The struct provides predefined static properties for common elliptic curves, such as P-256, P-384, P-521, and others. These are widely used curves, each offering different levels of security and performance characteristics.

The use of ECDSACurve in cryptographic operations allows for easy specification and interchange of the elliptic curves based on security requirements and application needs.

Topics

Initializers

  • init(from:)
    Creates a new instance by decoding from the given decoder.
  • init(rawValue:)
    Creates a new instance with the specified raw value.

Instance Properties

  • rawValue
    Textual representation of the elliptic curve.

Instance Methods

  • encode(to:)
    Encodes this value into the given encoder.

Type Properties

  • p256
    Represents the P-256 elliptic curve.
  • p384
    Represents the P-384 elliptic curve.
  • p521
    Represents the P-521 elliptic curve.

Relationships

Conforms To

  • Swift.Copyable
  • Swift.Decodable
  • Swift.Encodable
  • Swift.Equatable
  • Swift.Escapable
  • Swift.RawRepresentable
  • Swift.Sendable
  • Swift.SendableMetatype