[][src]Crate curve25519_parser

Structs

KeyPair
PublicKey

A PublicKey is the corresponding public key converted from an EphemeralSecret or a StaticSecret key.

StaticSecret

A StaticSecret is a static Diffie-Hellman secret key that can be saved and loaded to create a SharedSecret when given their PublicKey.

Enums

Curve25519ParserError

Functions

generate_keypair

Generate a keypair, in DER format

parse_openssl_25519_privkey_der

Parse a DER ED25519 or X25519 private key, and return the corresponding x25519_dalek::StaticSecret

parse_openssl_25519_pubkey_der

Parse a DER Ed25519 or X25519 public key, and return the corresponding x25519_dalek::PublicKey

parse_openssl_25519_pubkey

Parse an OpenSSL Ed25519 or X25519 public key, either in PEM or DER format

parse_openssl_25519_privkey

Parse an OpenSSL Ed25519 or X25519 private key, either in PEM or DER format

parse_openssl_25519_pubkeys_pem_many

Parse several contiguous OpenSSL Ed25519 org X25519 public keys in PEM format