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: any Decoder) throwsCreates a new instance by decoding from the given decoder.init?(rawValue: String)Creates a new instance with the specified raw value.
Instance Properties
var rawValue: StringTextual representation of the elliptic curve.
Instance Methods
func encode(to: any Encoder) throwsEncodes this value into the given encoder.
Type Properties
static let p256: ECDSACurveRepresents the P-256 elliptic curve.static let p384: ECDSACurveRepresents the P-384 elliptic curve.static let p521: ECDSACurveRepresents the P-521 elliptic curve.
Relationships
Conforms To
Swift.CopyableSwift.DecodableSwift.EncodableSwift.EquatableSwift.EscapableSwift.RawRepresentableSwift.SendableSwift.SendableMetatype