Erlang -- public_key

public_key

Reference Manual

Version 1.5.2

- User's Guide
- Reference Manual
- Release Notes
- PDF
- Top

- Expand All
- Contract All

### Table of Contents

- public_key (App)
- public_key
  - Top of manual page
  - compute_key/2
  - compute_key/3
  - decrypt_private/2
  - decrypt_private/3
  - decrypt_public/2
  - decrypt_public/3
  - der_decode/2
  - der_encode/2
  - dh_gex_group/4
  - encrypt_private/2
  - encrypt_public/2
  - generate_key/1
  - pem_decode/1
  - pem_encode/1
  - pem_entry_decode/1
  - pem_entry_decode/2
  - pem_entry_encode/2
  - pem_entry_encode/3
  - pkix_crl_issuer/1
  - pkix_crl_verify/2
  - pkix_crls_validate/3
  - pkix_decode_cert/2
  - pkix_dist_point/1
  - pkix_dist_points/1
  - pkix_encode/3
  - pkix_is_fixed_dh_cert/1
  - pkix_is_issuer/2
  - pkix_is_self_signed/1
  - pkix_issuer_id/2
  - pkix_match_dist_point/2
  - pkix_normalize_name/1
  - pkix_path_validation/3
  - pkix_sign/2
  - pkix_sign_types/1
  - pkix_test_data/1
  - pkix_test_data/1
  - pkix_test_root_cert/2
  - pkix_verify/2
  - pkix_verify_hostname/2
  - pkix_verify_hostname/3
  - short_name_hash/1
  - sign/3
  - sign/4
  - ssh_decode/2
  - ssh_encode/2
  - ssh_hostkey_fingerprint/1
  - ssh_hostkey_fingerprint/2
  - ssh_hostkey_fingerprint/2
  - verify/4
  - verify/5

# public_key

### Application

public_key

### Application Summary

Provides functions to handle public-key infrastructure.

### Description

Provides encode/decode of different file formats (PEM, OpenSSH), digital signature and verification functions, validation of certificate paths and certificate revocation lists (CRLs) and other functions for handling of certificates, keys and CRLs.

- Supports RFC 5280 - Internet X.509 Public-Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile. Certificate policies are currently not supported.
- Supports PKCS-1 - RSA Cryptography Standard
- Supports DSS - Digital Signature Standard (DSA - Digital Signature Algorithm)
- Supports PKCS-3 - Diffie-Hellman Key Agreement Standard
- Supports PKCS-5 - Password-Based Cryptography Standard
- Supports PKCS-8 - Private-Key Information Syntax Standard
- Supports PKCS-10 - Certification Request Syntax Standard

### DEPENDENCIES

The public_key application uses the Crypto application to perform cryptographic operations and the ASN-1 application to handle PKIX-ASN-1 specifications, hence these applications must be loaded for the public_key application to work. In an embedded environment this means they must be started with application:start/[1,2] before the public_key application is started.

### ERROR LOGGER AND EVENT HANDLERS

The public_key application is a library application and does not use the error logger. The functions will either succeed or fail with a runtime error.

### SEE ALSO

application(3)