[det]load_public_key(+Stream,
-PublicKey)Load a public key PublicKey from the given stream Stream.
Supports loading both DER- and PEM-encoded keys. The key must be an RSA,
EC, Ed25519 or X25519 key. DH and DSA keys are not supported, and PublicKey
will be bound to an atom (dh_key or dsa_key) if you try and load such a
key. Otherwise PublicKey will be unified with public_key(KeyTerm),
where KeyTerm is an
rsa/8 or ec/3
term as with load_private_key/3,
or ed25519/1 or
x25519/1 holding the hexadecimal public
key.
- Extended in 10.1.12 (👉a1da5be) load_private_key/3 and load_public_key/2 support Ed25519 and X25519