Skip to content

Public-key cryptography

Written by GPT-6 Luna from the web 17 of 54 sentences cited

An AI wrote this article, and it can be wrong.

Public-key cryptography, also called asymmetric cryptography, is a family of cryptographic methods that uses mathematically related public and private keys to protect information and verify its origin. A public key can be distributed openly, while its corresponding private key is kept secret; depending on the method, the pair can support encryption, digital signatures or the establishment of shared secret keys.1

The approach changed how parties could communicate securely without first exchanging a secret key through a protected channel. It is now used in systems such as internet security protocols, digital certificates and signed software, usually alongside faster symmetric-key cryptography. Its security depends not only on mathematical algorithms but also on correct implementation, safe handling of private keys and reliable ways to associate public keys with their owners.23

Origins

For much of the history of cryptography, communicating parties needed to share a secret key before they could use a conventional cipher. Delivering that key securely could be difficult, especially when users had not met or when communications took place over a large network. In 1976, Whitfield Diffie and Martin Hellman’s paper “New Directions in Cryptography” described ways to reduce this key-distribution problem and proposed methods that could also provide the equivalent of a written signature.2

The history also includes classified work at Britain’s Government Communications Headquarters (GCHQ). GCHQ credits James Ellis with conceiving “non-secret encryption,” and reports that Clifford Cocks and Malcolm Williamson developed related techniques. The National Security Agency’s historical account says Ellis proposed the idea by 1970, devised a factoring-based system in 1973, and that Williamson and Cocks contributed to its development. This work was not publicly disclosed until 1997; public academic work developed independently.45

How it works

A public-key system generates a related pair of keys. The public key may be shared, but the private key must remain under its owner’s control. The relationship is designed so that performing certain operations with one key is practical, while deriving the private key from the public key is intended to be computationally infeasible. NIST describes public-key cryptography as using separate keys for operations such as encryption and decryption, or signing and signature verification.1

The keys are not simply interchangeable, and not every public-key algorithm performs every function. In a basic public-key encryption scheme, a sender encrypts using the recipient’s public key, and the recipient decrypts with the corresponding private key. In a digital-signature scheme, the signer uses a private key to generate a signature, which others can check with the public key. Key-agreement schemes instead let parties derive a shared secret using information exchanged over a public channel.67

Principal uses

Public-key encryption can let a sender protect information for a recipient without first sharing a secret key with them. In practice, systems commonly use public-key techniques to establish or protect a symmetric key, then use symmetric algorithms for the main data transfer. This hybrid approach combines public-key methods for tasks such as key establishment with symmetric cryptography for ongoing communication.68

Digital signatures provide a different service: they enable a recipient to check whether signed data has been altered and whether the signature corresponds to a particular public key. They do not, by themselves, conceal the data. NIST’s Digital Signature Standard describes signatures as a way to detect unauthorized modifications and authenticate the signatory; determining who controls a key requires a trustworthy link between that key and an identity.9

Algorithms

RSA, named for Ron Rivest, Adi Shamir and Leonard Adleman, was publicly described in their 1978 paper on public-key cryptosystems and digital signatures. The paper set out how a publicly revealed encryption key could be used without revealing the corresponding decryption key. RSA’s security is associated with the difficulty of factoring large integers, although the security of a practical system also depends on how the algorithm is used and implemented.610

Diffie–Hellman key agreement, introduced in the 1976 paper, allows two parties to derive a common secret from exchanged public information without sending that secret itself. Later systems have used both finite-field and elliptic-curve versions of discrete-logarithm-based methods. Elliptic-curve cryptography also supports digital signatures: NIST’s 2023 Digital Signature Standard specifies RSA, the Elliptic Curve Digital Signature Algorithm (ECDSA) and the Edwards Curve Digital Signature Algorithm (EdDSA) for signature generation and verification.2711

Certificates and trust

A public key alone does not establish whose key it is. If a user receives a key while believing it belongs to a particular person or website, an attacker who substitutes another key could undermine the security of the exchange. Public-key infrastructures address this problem by using certificates: electronic records that associate a public key with an identity or other information and are digitally signed by an issuer.12

In a common certificate system, a relying party checks the certificate’s signature and its place in a chain leading to a trusted certificate authority or other trust anchor. The Internet’s X.509 certificate profile sets out certificate and certification-path validation rules. This system makes it possible to use public keys across networks, but the identity assurance depends on the trust policy, the issuer and the correct validation of the certificate chain.1213

Use in networks

Transport Layer Security (TLS), the protocol used to secure many internet connections, combines several cryptographic functions. In TLS 1.3, a handshake can use Diffie–Hellman key shares to establish connection keys and digital signatures to authenticate a server, and optionally a client. The data carried after the handshake is then protected using symmetric cryptography. Thus, public-key methods help set up and authenticate a connection rather than encrypting every application message directly.3

The same general techniques support other networked tasks, including signing electronic documents and software and establishing keys for encrypted messaging. Their role is significant because users and systems can verify data or set up protected communications across networks without sharing one long-term secret with every correspondent. However, cryptographic verification establishes facts about keys and data under a particular system; the broader meaning of a signature or certificate can depend on the governing policy and context.91

Security and transition

Public-key security is conditional, not absolute. Algorithms can become vulnerable as mathematical methods and computing capabilities advance, while software flaws, poor randomness, side-channel leakage or theft of a private key can compromise a system even if its underlying mathematics remains sound. NIST’s key-management guidance states that protected information depends both on algorithm strength and on keys not being compromised; it also recommends revoking compromised private keys and replacing them when continued use is needed.14

Large-scale quantum computers pose a longer-term concern because known quantum algorithms could undermine widely used public-key systems based on integer factorization or discrete logarithms, including RSA and elliptic-curve methods. No such computer has been publicly demonstrated at a scale that breaks deployed public keys, but captured encrypted information could be stored in hopes of decrypting it later. This possibility is one reason standards bodies are preparing replacement methods.1516

In August 2024, NIST published three post-quantum cryptography standards: ML-KEM for key establishment, and ML-DSA and SLH-DSA for digital signatures. NIST describes these standards as designed to resist attacks by quantum computers, while continuing to support migration and evaluation. An October 2026 NIST draft proposed deprecating quantum-vulnerable cryptography after 2030 and disallowing it under NIST standards and guidelines after 2035; because that document is a draft, those dates are proposed transition guidance rather than a final standard.171819

References

19 sources
  1. James Ellisgchq.gov.uk

  2. people.csail.mit.edu/rivest/pubs/RSA78.pdfpeople.csail.mit.edu· cited 3×

  3. What Is Post-Quantum Cryptography?nist.govAug 13, 2024