Skip to content

>600ms hangup with RSA signed certs #100

Closed as not planned
Closed as not planned

Description

@pinkforest

made a quick server toy that just prints out UwU anyone connecting to show the 600ms delay

https://github.com/pinkforest/tls_neg_loiter

  1. add loiter.rustcryp.to into your hosts for your 127.0.0.1 loopback
  2. cd certs;make rsa4096
  3. cd ..; cargo run (to run the mock server)
  4. openssl s_client -crlf -servername loiter.rustcryp.to -CAfile certs/ca.rsa4096.crt 127.0.0.1:828 (shows delay after CONNECTED)
  5. connect with firefox with network console and also see (server doesn't multiplex so ensure you close the openssl before)

This only happens with issues signed with rsa but it doesn't happen with prime256v1 etc. these only have 1-3 ms latency

Also doesn't happen with aws-lc-rs with either rsa4096 / prime256v1

Probably good idea to bump RSA...

Activity

  1. pinkforest commented on Nov 29, 2025

    @pinkforest
    ContributorAuthor
  2. stevefan1999-personal commented on Dec 4, 2025

    @stevefan1999-personal
    Contributor

    Looks like finite field operation is not accelerated with SIMD looking at the flamegraph as you see the add_mul_vvw is occupying a huge portion of the plateau. What happen if you run it in release mode?

  3. tarcieri commented on Dec 4, 2025

    @tarcieri
    Member

    I'd be curious to see a similar flame graph for an rsa v0.9 prerelease using crypto-bigint instead of num-bigint

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions