Skip to content

std.crypto: Add public RSA module #19776

Open

Description

@clickingbuttons

RSA is still widely used for general cryptography. As such, it deserves a public module.

  1. Move RSA functions from Certificate and tls.Client to new rsa module.
  2. Add serialization
  3. Fix side channel vulnerabilities
  4. Add key generation

Activity

  1. voidastro4 commented on May 9, 2024

    @voidastro4

    RSA-KEM[1] is useful to have, and due to arbitrary RSA key length it can serve as a hedge against PQC algos breaking by pushing quantum computer requirements higher.

    [1] https://datatracker.ietf.org/doc/html/rfc5990

  2. jedisct1 commented on May 9, 2024

    @jedisct1
    Contributor

    RSA-KEM[1] is useful to have, and due to arbitrary RSA key length it can serve as a hedge against PQC algos breaking by pushing quantum computer requirements higher.

    Post-quantum safe RSA would require 1 terabyte keys. https://cr.yp.to/papers/pqrsa-20170419.pdf

    Not exactly practical.

  3. voidastro4 commented on May 11, 2024

    @voidastro4

    RSA-KEM[1] is useful to have, and due to arbitrary RSA key length it can serve as a hedge against PQC algos breaking by pushing quantum computer requirements higher.

    Post-quantum safe RSA would require 1 terabyte keys. https://cr.yp.to/papers/pqrsa-20170419.pdf

    Not exactly practical.

    On the premise that no quantum computer could ever be constructed to crack them.

    With MP-RSA and 1-10 MB keys you can buy decades at the very least.

  4. added
    standard library
    proposal
    on May 31, 2024
  5. added this to the 0.15.0 milestone on May 31, 2024
  6. added a commit that references this issue on Jun 24, 2024
  7. modified the milestones: urgent, upcoming on Jun 26, 2025
  8. added
    enhancement
    and removed
    proposal
    on Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementstandard library

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions