init(compactRepresentable:)

    Creates a random P-384 private key for signing.

    ECDH.swift:579
    init(compactRepresentable: Bool = true)

    Parameters

    compactRepresentable

    A Boolean value that indicates whether CryptoKit creates the key with the structure to enable compact point encoding.

    Keys that use a compact point encoding enable shorter public keys, but aren’t compliant with FIPS certification. If your app requires FIPS certification, create a key with init(rawRepresentation:).

    Other members in extension

    Type members

    Instance members