Bitzu

CPSA ยท Cryptography for testers

Asymmetric cryptography and RSA

RSA, public and private keys, key exchange and digital signatures.

Key points

  • Asymmetric crypto: a shareable public key and a secret private key.
  • Encryption: anyone encrypts to your public key, only your private key decrypts.
  • Signatures: sign with the private key, anyone verifies with the public key.
  • RSA: rests on factoring a large modulus; 2048 bits is a common minimum.
  • Slow, so it protects a symmetric session key, not bulk data.
  • Diffie-Hellman: agrees a shared secret over an open channel.

Practice questions

Single choice

Which key does a sender use to create a digital signature?

  1. The recipient's public key
  2. The sender's private key
  3. The sender's public key
  4. A shared symmetric key
Show answer

Answer: B. The sender's private key

Signatures are created with the signer's private key so that anyone holding the matching public key can verify them. Encryption to a recipient is the case that uses the recipient's public key.

Select all that apply

Which of these are asymmetric (public-key) algorithms?

  1. RSA
  2. AES
  3. Diffie-Hellman
  4. RC4
  5. ECDSA
Show answer

Answer: A. RSA, C. Diffie-Hellman, E. ECDSA

RSA, Diffie-Hellman and ECDSA are public-key algorithms. AES and RC4 are symmetric.

True or false

A digital signature keeps the content of a message confidential.

Show answer

Answer: False

False. A signature proves who signed and that the content was not changed, but the message itself stays readable unless it is also encrypted.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More CPSA topics in this module