Contents

exportBytes(completion:)

Exports the data that represents a public key.

Declaration

func exportBytes(completion handler: @escaping  @Sendable (Data?, (any Error)?) -> Void)
var bytes: Data { get async throws }

Parameters

  • handler:

    A completion handler to call when the export operation completes.

    data

    The data that represents the public key.

    error

    An error object that indicates why the export operation failed, or nil if it succeeded.

Discussion

See Also

Performing cryptographic operations