Crate x25519_parser

Source

Structs§

KeyPair
PublicKey
A Diffie-Hellman public key
StaticSecret
A Diffie-Hellman secret key that can be used to compute multiple SharedSecrets.

Enums§

Curve25519ParserError

Functions§

generate_keypair
Generate a keypair, in DER format
parse_openssl_25519_privkey
Parse an OpenSSL Ed25519 or X25519 private key, either in PEM or 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
Parse an OpenSSL Ed25519 or X25519 public key, either in PEM or DER format
parse_openssl_25519_pubkey_der
Parse a DER Ed25519 or X25519 public key, and return the corresponding x25519_dalek::PublicKey
parse_openssl_25519_pubkeys_pem_many
Parse several contiguous OpenSSL Ed25519 org X25519 public keys in PEM format