Instance Methodswift-crypto 3.12.2CryptoBoringWrapper
makeUnsafeOwnedECKey
EllipticCurve.swift:47- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
@usableFromInline func makeUnsafeOwnedECKey() throws -> OpaquePointer
@usableFromInline func makeUnsafeOwnedECKey() throws -> OpaquePointer
s19CryptoBoringWrapper0B21SSLEllipticCurveGroupC20makeUnsafeOwnedECKeys13OpaquePointerVyKF
What are these?43413
import CryptoBoringWrapper
@usableFromInline final class BoringSSLEllipticCurveGroup
A wrapper around BoringSSL’s EC_GROUP object that handles reference counting and liveness.
@frozen struct OpaquePointer
A wrapper around an opaque C pointer.
@usableFromInline init(_ curve: CurveName) throws
@usableFromInline var coordinateByteCount: Int { get }
@usableFromInline var generator: EllipticCurvePoint { get throws }
@usableFromInline var order: ArbitraryPrecisionInteger { get }
@usableFromInline var weierstrassCoefficients: (field: ArbitraryPrecisionInteger, a: ArbitraryPrecisionInteger, b: ArbitraryPrecisionInteger) { get }
An elliptic curve can be represented in a Weierstrass form: y² = x³ + ax + b
. This property provides the values of a and b on the curve.
@usableFromInline func makeUnsafeOwnedECPoint() throws -> OpaquePointer
func withUnsafeGroupPointer<T>(_ body: (OpaquePointer) throws -> T) rethrows -> T
@usableFromInline enum CurveName