init(pem:)

Creates an ECDSA.PrivateKey instance from a PEM encoded private key data.

ECDSA.swift:167
init(pem data: some DataProtocol) throws

Parameters

pem

The PEM encoded private key data.

Returns

A new ECDSA.PrivateKey instance with the private key.

Throws

If there is a problem parsing the private key.