Use this when choosing or troubleshooting public-key algorithms for TLS, SSH, signing or key exchange.
Asymmetric Cryptography
Asymmetric cryptography uses a key pair — a public key anyone may have and a private key kept secret — for encryption, key exchange and digital signatures. RSA and elliptic-curve algorithms are the common families.
key pair → sign/verify or key agreement
Context & applicabilityCommon mistakes · platform/version boundaries
- RSA with PKCS#1 v1.5 encryption padding (Bleichenbacher attacks) — use OAEP.
- RSA keys below 2048 bits.
- Reusing the same key for signing and encryption.
- Ignoring the post-quantum migration for data that must stay secret for 10+ years ("harvest now, decrypt later").
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
RSA is the classic public-key algorithm based on factoring large numbers, used for signatures and key transport.
Subtopic ECCECC (elliptic-curve cryptography) gives the same security as RSA with much shorter keys — a 256-bit curve roughly matches 3072-bit RSA — so it is faster and used in TLS, SSH and modern certificates.
Subtopic ECDSAECDSA is the elliptic-curve digital signature algorithm, used in TLS certificates, SSH keys and code signing with curves such as P-256 and P-384.
Subtopic ECDHECDH (elliptic-curve Diffie-Hellman) lets two parties derive a shared secret over an open channel using their EC key pairs.
Subtopic Public KeyA public key is the shareable half of a key pair, published in certificates or authorized_keys.
Subtopic Private KeyA private key is the secret half of a key pair, used to decrypt and sign.
Subtopic Key PairA key pair is a mathematically linked public and private key generated together, for example with openssl genpkey or ssh-keygen.
Subtopic Digital SignaturesA digital signature is created with a private key over a hash of data, and anyone with the public key can verify that the data is unchanged and came from the key holder.
Subtopic Asymmetric Cryptography TroubleshootingTroubleshoot asymmetric crypto by checking key type and size match, the private key is present and readable, certificate and key pair correspond (compare moduli), the correct padding or curve is used, and that clocks are right for certificates.
- The private key must never leave its owner.
- RSA needs at least 2048 bits; ECC gives the same strength with shorter keys.
- Asymmetric crypto is slow, so it usually protects a symmetric session key.
openssl genpkey -algorithm ED25519 -out key.pem— generate keyopenssl pkey -in key.pem -noout -text— inspectssh-keygen -l -f— /.ssh/id_ed25519.pub~SSH key fingerprint and type
ReferenceWhy it matters1 section · depth on demand
What this area covers
| Topic | Answers |
|---|---|
| RSA / ECC | Key types and sizes |
| ECDH | Key agreement |
| Public / private key, key pair | What each part is and how to protect it |
| Digital signatures | Integrity and origin evidence |
Asymmetric cryptography solves key distribution and authentication; bulk data is still encrypted symmetrically.
ReferenceHow it works1 section · depth on demand
In depth
Asymmetric cryptography uses a key pair: a public key that can be shared and a private key that must stay secret. What one key does, only the other can undo. This solves the key-distribution problem of symmetric encryption and enables digital signatures, key exchange and certificates.
| Use | How |
|---|---|
| Key exchange | (EC)DH derives a shared secret over an insecure channel |
| Digital signatures | Sign with private key, verify with public key |
| Encryption | Encrypt with public key, decrypt with private key (small data, e.g. key wrapping) |
Common algorithms: RSA (2048+ bits, 3072 for long-term), ECDSA/ECDH (P-256, P-384), Ed25519/X25519. Asymmetric operations are slow, so protocols such as TLS use them to establish symmetric keys for the bulk data.
ReferenceImportant terms & boundaries1 section · depth on demand
Algorithms at a glance
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Asymmetric Cryptography. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/fips/186-5/final · confidence 94%