Skip to content

Client authenticationΒ #3

Closed
Closed

Description

@tekjar

Hi. If I use this library for writing a client. Can I set client certificate in the API for third party servers to do client authentication ?

To be more specific, I'm trying to write client code using your library (Thanks πŸ˜„ ) . I'm able to authenticate server by providing the CA (root_store .add_pem_file(ca.crt)). Can I also simultaneously add client certificate for 3rd party servers to authenticate this client?

(Didn't use tls much before. Plz let me know if my question itself doesn't make sense)

Activity

  1. ctz commented on Jul 4, 2016

    @ctz
    Member

    At the minute client auth isn't supported. Can I ask what API you're using that requires it?

  2. tekjar commented on Jul 4, 2016

    @tekjar
    Author

    I'm writing a mqtt client library where client authentication is pretty common

  3. ctz commented on Jul 10, 2016

    @ctz
    Member

    (copying and pasting my explanation from elsewhere)

    Why is client authentication found in the list of (..) things (in the docs?)

    There's a few problems with it.

    1. client auth in TLS1.2 and earlier is done at the wrong time in the handshake. As a result the client's identity (which unlike the server identity usually identifies a user so is PII) is sent in the clear. That's a big privacy failure.
    2. to work around (1), some implementations do an initial server-auth handshake, then immediately renegotiate up to mutual-auth (renegotiations are encrypted). Renegotiation has quite a dismal history, and I definitely want to avoid it.
    3. as a follow on from (2), the standard never described what implementations are expected to do if client/server identities change during renegotiation. This (partially) resulted in https://mitls.org/pages/attacks/3SHAKE

    All of these are fixed in TLS1.3: client identities are encrypted and renegotiation is dropped.

    Actually implementing client auth is quite a minor amount of work. It's probably best to do as a opt-in feature.

  4. tekjar commented on Jul 10, 2016

    @tekjar
    Author

    Even as an opt in is awesome. Will wait for this feature :)

  5. sciyoshi commented on Jul 18, 2016

    @sciyoshi
    Contributor

    @ctz I've started taking a look at how you would implement TLS 1.2 client authentication. You can see the initial changes are here. The main issue I've run into now is that the CertificateVerify message requires computing a signature of all previous handshake messages - however, ring's API doesn't support passing a pre-computed digest. That means that computing a signature from a running digest as messages are exchanged won't work without some changes to ring.

    Any thoughts on how you would approach that?

  6. briansmith commented on Jul 18, 2016

    @briansmith
    Contributor

    ring's API doesn't support passing a pre-computed digest. That means that computing a signature from a running digest

    I would be happy for somebody to add this functionality to ring. It is needed for many reasons and it would be easy to do.

  7. ctz commented on Jul 18, 2016

    @ctz
    Member

    I've also been working on-and-off on client auth. I ought to push my in-progress branch. But I could use a lot of your progress so far, so thanks!

    Any thoughts on how you would approach that?

    At the minute I've made HandshakeHash keep the input when compiled with the clientauth feature.

    The ideal solution is to have HandshakeHash compute all supported hashes in parallel, which would also obviate the need to buffer the whole ClientHello at the layer above as we do currently. As noted, that needs ring support for client auth.

  8. sciyoshi commented on Jul 18, 2016

    @sciyoshi
    Contributor

    @ctz if you push up your branch I can compare our approaches and see what still needs work. I've opened an issue in ring here: briansmith/ring#253.

  9. sciyoshi commented on Jul 18, 2016

    @sciyoshi
    Contributor

    @ctz got client auth working from your branch! Thanks for the work in implementing this. Are you also planning on adding client auth support from the server end?

    There's also a small issue where the signature/hash algorithm for the CertificateVerify message is calculated based on the selected ciphersuite, and not based on the capabilities of the selected certificate.

  10. ctz commented on Jul 19, 2016

    @ctz
    Member

    Are you also planning on adding client auth support from the server end?

    Yes that should be easier.

    There's also a small issue where the signature/hash algorithm for the CertificateVerify message is calculated based on the selected ciphersuite, and not based on the capabilities of the selected certificate.

    Yes, that issue is also present in the normal server authentication. There and here rustls treats certificates as opaque, so will happily use a key with a cert not containing appropriate key usages, expired certs, etc. That kind of misconfiguration is hopefully rare, but I agree it's not ideal for rustls to plough on regardless. In any case, that information is mostly for the relyer.

  11. samscott89 commented on Jul 26, 2016

    @samscott89

    Since supporting EdDSA signatures would require maintaining the full message transcript anyway, is the idea that certain configs could disable EdDSA and hence only need to store one (or several) rolling hashes?

  12. tekjar commented on Jul 31, 2016

    @tekjar
    Author

    Hi. I see a client auth branch πŸ˜„ Thanks a lot. Is this ready to be merged to master? (Also any plans for adding rustls to crates.io?)

  13. ctz commented on Aug 4, 2016

    @ctz
    Member

    It's close to done for client auth by clients, but not for servers yet. It's still in progress, but it'll be a week or so before there's more progress due to travel and stuff :)

  14. self-assigned this
    on Aug 13, 2016
  15. ctz commented on Aug 14, 2016

    @ctz
    Member

    Now pushed.

  16. tekjar commented on Aug 29, 2016

    @tekjar
    Author

    Thanks :)

  17. salmankhalid-plt commented on Jul 16, 2023

    @salmankhalid-plt

    I know this has been closed by any chance to having Server side client authentication as well ?

  18. djc commented on Jul 16, 2023

    @djc
    Member

    @salmankhalid-plt what do you mean? As I understand it, only servers can authenticate clients, so that's naturally what we already support. What use case do you have in mind that you think rustls doesn't yet support?

  19. mouse07410 commented on Jul 16, 2023

    @mouse07410

    I've no idea what the OP meant. However:

    As I understand it, only servers can authenticate clients

    This does not come even close to the specification of TLS. Of course, both ends can authenticate each other - search for "mutual TLS" (which will also explain why there is no separate spec for mTLS).

  20. djc commented on Jul 17, 2023

    @djc
    Member

    I think that matches what I said? Servers can authenticate clients, and clients authenticate servers.

  21. ctz commented on Jul 17, 2023

    @ctz
    Member

    The current state is client auth is supported on both the client- and server-side.

  22. mouse07410 commented on Jul 17, 2023

    @mouse07410

    I think that matches what I said? Servers can authenticate clients, and clients authenticate servers.

    The way I understood your reply was that only server authenticates client, while the OP asked for the client to authenticate server:

    As I understand it, only servers can authenticate clients

    Otherwise, we seem to be on the same page.

  23. added a commit that references this issue on Feb 9, 2024
    53d7dc0
  24. rustls-benchmarking commented on Jan 20, 2026

    @rustls-benchmarking

    Benchmark results

    Instruction counts

    Significant differences

    ⚠️ There are significant instruction count differences

    Click to expand
    Scenario Baseline Candidate Diff Threshold
    handshake_no_resume_aws_lc_rs_1.3_rsa_chacha_client 2674136 2634192 βœ… -39944 (-1.49%) 0.20%
    handshake_no_resume_aws_lc_rs_1.3_ecdsap256_chacha_server 1490664 1510797 ⚠️ 20133 (1.35%) 0.20%
    handshake_no_resume_aws_lc_rs_1.3_ecdsap256_chacha_client 3806644 3845359 ⚠️ 38715 (1.02%) 0.23%
    handshake_session_id_1.3_no_crypto_server 2309403 2332770 ⚠️ 23367 (1.01%) 0.84%

    Other differences

    Click to expand
    Scenario Baseline Candidate Diff Threshold
    handshake_session_id_1.2_no_crypto_server 1133206 1138965 5759 (0.51%) 1.67%
    handshake_no_resume_1.2_no_crypto_server 43833 43653 -180 (-0.41%) 0.97%
    handshake_no_resume_aws_lc_rs_1.3_ecdsap384_aes_client 9044138 9007926 -36212 (-0.40%) 1.00%
    handshake_tickets_ring_1.2_rsa_aes_server 4000352 4014014 13662 (0.34%) 0.36%
    handshake_session_id_ring_1.2_rsa_aes_server 3433967 3424012 -9955 (-0.29%) 0.32%
    handshake_no_resume_aws_lc_rs_1.3_rsa_chacha_server 11092565 11060439 -32126 (-0.29%) 1.72%
    handshake_tickets_1.2_no_crypto_server 1297259 1293730 -3529 (-0.27%) 0.90%
    handshake_session_id_aws_lc_rs_1.3_ecdsap384_chacha_server 41701617 41811345 109728 (0.26%) 0.27%
    handshake_session_id_aws_lc_rs_1.3_ecdsap256_aes_server 41802573 41895205 92632 (0.22%) 0.24%
    handshake_no_resume_1.3_no_crypto_server 65260 65122 -138 (-0.21%) 0.77%
    handshake_session_id_aws_lc_rs_1.3_ecdsap384_aes_server 41815230 41890179 74949 (0.18%) 0.25%
    handshake_session_id_aws_lc_rs_1.3_ecdsap256_aes_client 50224066 50313972 89906 (0.18%) 0.42%
    handshake_session_id_aws_lc_rs_1.3_rsa_chacha_server 41637762 41710657 72895 (0.18%) 0.30%
    handshake_session_id_aws_lc_rs_1.3_rsa_aes_server 41776958 41849798 72840 (0.17%) 0.44%
    handshake_tickets_aws_lc_rs_1.3_ecdsap384_aes_client 50475484 50392804 -82680 (-0.16%) 0.62%
    handshake_tickets_aws_lc_rs_1.3_rsa_aes_client 50490795 50409420 -81375 (-0.16%) 0.48%
    handshake_no_resume_aws_lc_rs_1.3_ecdsap384_chacha_client 9024747 9038519 13772 (0.15%) 0.79%
    handshake_tickets_1.3_no_crypto_server 2249023 2245631 -3392 (-0.15%) 0.90%
    handshake_session_id_ring_1.3_rsa_chacha_server 31742867 31790700 47833 (0.15%) 0.20%
    handshake_session_id_ring_1.3_rsa_aes_server 31865057 31912890 47833 (0.15%) 0.20%
    handshake_session_id_ring_1.3_ecdsap256_chacha_server 31761074 31795515 34441 (0.11%) 0.20%
    handshake_session_id_ring_1.3_ecdsap256_aes_server 31883264 31917705 34441 (0.11%) 0.20%
    handshake_session_id_aws_lc_rs_1.3_ecdsap256_chacha_server 41749039 41790957 41918 (0.10%) 0.50%
    handshake_session_id_ring_1.3_ecdsap384_chacha_server 31758546 31788080 29534 (0.09%) 0.20%
    handshake_session_id_ring_1.3_ecdsap384_aes_server 31880736 31910270 29534 (0.09%) 0.20%
    handshake_no_resume_aws_lc_rs_1.3_rsa_aes_server 11087531 11077951 -9580 (-0.09%) 1.09%
    handshake_tickets_aws_lc_rs_1.3_ecdsap384_chacha_client 50414733 50371595 -43138 (-0.09%) 0.41%
    handshake_session_id_aws_lc_rs_1.3_ecdsap384_aes_client 50293915 50252572 -41343 (-0.08%) 0.48%
    handshake_session_id_aws_lc_rs_1.3_rsa_chacha_client 50169195 50208744 39549 (0.08%) 0.60%
    handshake_session_id_aws_lc_rs_1.3_rsa_aes_client 50349531 50388800 39269 (0.08%) 0.57%
    handshake_tickets_aws_lc_rs_1.3_rsa_chacha_client 50380697 50419213 38516 (0.08%) 0.48%
    handshake_tickets_aws_lc_rs_1.3_rsa_aes_server 43065599 43033524 -32075 (-0.07%) 0.44%
    handshake_tickets_aws_lc_rs_1.3_ecdsap384_aes_server 43165823 43134397 -31426 (-0.07%) 0.28%
    handshake_tickets_aws_lc_rs_1.3_ecdsap256_aes_client 50436260 50470729 34469 (0.07%) 0.69%
    handshake_session_id_1.3_no_crypto_client 2441126 2439476 -1650 (-0.07%) 1.26%
    handshake_tickets_1.3_no_crypto_client 2456678 2455028 -1650 (-0.07%) 1.45%
    handshake_tickets_aws_lc_rs_1.3_ecdsap256_chacha_server 43051527 43023763 -27764 (-0.06%) 0.36%
    handshake_session_id_1.2_no_crypto_client 1242613 1241893 -720 (-0.06%) 1.81%
    handshake_session_id_aws_lc_rs_1.3_ecdsap384_chacha_client 50164883 50193152 28269 (0.06%) 0.41%
    handshake_tickets_aws_lc_rs_1.3_rsa_chacha_server 42963576 42987685 24109 (0.06%) 0.43%
    handshake_tickets_1.2_no_crypto_client 1328366 1327646 -720 (-0.05%) 1.27%
    handshake_tickets_aws_lc_rs_1.2_rsa_aes_server 4984739 4982807 -1932 (-0.04%) 0.32%
    handshake_tickets_aws_lc_rs_1.3_ecdsap384_chacha_server 43107102 43095231 -11871 (-0.03%) 0.26%
    handshake_tickets_ring_1.3_ecdsap256_chacha_server 32059596 32067868 8272 (0.03%) 0.20%
    handshake_tickets_ring_1.3_ecdsap256_aes_server 32162616 32170888 8272 (0.03%) 0.20%
    handshake_no_resume_aws_lc_rs_1.2_rsa_aes_server 10408370 10405876 -2494 (-0.02%) 1.28%
    handshake_session_id_aws_lc_rs_1.3_ecdsap256_chacha_client 50224859 50213689 -11170 (-0.02%) 0.67%
    handshake_tickets_ring_1.3_rsa_chacha_server 32053648 32060592 6944 (0.02%) 0.20%
    handshake_tickets_ring_1.3_rsa_aes_server 32156668 32163612 6944 (0.02%) 0.20%
    handshake_session_id_ring_1.2_rsa_aes_client 3548605 3547885 -720 (-0.02%) 0.64%
    handshake_no_resume_aws_lc_rs_1.3_ecdsap384_aes_server 2411010 2411492 482 (0.02%) 0.20%
    handshake_tickets_ring_1.2_rsa_aes_client 3943924 3943204 -720 (-0.02%) 0.56%
    handshake_tickets_aws_lc_rs_1.3_ecdsap256_aes_server 43094486 43086622 -7864 (-0.02%) 0.41%
    handshake_session_id_aws_lc_rs_1.2_rsa_aes_client 3985388 3984668 -720 (-0.02%) 0.29%
    handshake_tickets_aws_lc_rs_1.2_rsa_aes_client 4376777 4376057 -720 (-0.02%) 0.27%
    handshake_session_id_aws_lc_rs_1.2_rsa_aes_server 3864016 3864517 501 (0.01%) 0.90%
    handshake_no_resume_aws_lc_rs_1.3_ecdsap256_aes_client 3803946 3803550 -396 (-0.01%) 0.27%
    handshake_no_resume_aws_lc_rs_1.3_ecdsap256_aes_server 1488473 1488618 145 (0.01%) 0.20%
    transfer_no_resume_aws_lc_rs_1.2_rsa_aes_server 46029069 46033490 4421 (0.01%) 0.20%
    handshake_tickets_ring_1.3_ecdsap384_chacha_server 32054535 32057173 2638 (0.01%) 0.20%
    handshake_tickets_ring_1.3_ecdsap384_aes_server 32157555 32160193 2638 (0.01%) 0.20%
    handshake_no_resume_ring_1.3_ecdsap256_aes_client 3274468 3274235 -233 (-0.01%) 0.23%
    handshake_no_resume_aws_lc_rs_1.3_ecdsap384_chacha_server 2414244 2414410 166 (0.01%) 0.20%
    handshake_no_resume_1.3_no_crypto_client 74144 74139 -5 (-0.01%) 0.64%
    handshake_no_resume_ring_1.3_ecdsap256_chacha_client 3275493 3275692 199 (0.01%) 0.23%
    handshake_session_id_ring_1.3_ecdsap256_chacha_client 30645260 30643610 -1650 (-0.01%) 0.20%
    handshake_session_id_ring_1.3_rsa_chacha_client 30656946 30655296 -1650 (-0.01%) 0.20%
    handshake_session_id_ring_1.3_ecdsap384_chacha_client 30665126 30663476 -1650 (-0.01%) 0.20%
    handshake_session_id_ring_1.3_ecdsap256_aes_client 30736985 30735335 -1650 (-0.01%) 0.20%
    handshake_no_resume_aws_lc_rs_1.3_rsa_aes_client 2627484 2627343 -141 (-0.01%) 1.55%
    handshake_session_id_ring_1.3_rsa_aes_client 30748641 30746991 -1650 (-0.01%) 0.20%
    handshake_tickets_ring_1.3_ecdsap384_chacha_client 30754060 30752410 -1650 (-0.01%) 0.20%
    handshake_session_id_ring_1.3_ecdsap384_aes_client 30756821 30755171 -1650 (-0.01%) 0.20%
    handshake_tickets_ring_1.3_ecdsap256_chacha_client 30758178 30756528 -1650 (-0.01%) 0.20%
    handshake_tickets_ring_1.3_rsa_chacha_client 30772090 30770440 -1650 (-0.01%) 0.20%
    handshake_tickets_ring_1.3_ecdsap384_aes_client 30826315 30824665 -1650 (-0.01%) 0.20%
    handshake_tickets_ring_1.3_ecdsap256_aes_client 30830463 30828813 -1650 (-0.01%) 0.20%
    handshake_tickets_ring_1.3_rsa_aes_client 30844345 30842695 -1650 (-0.01%) 0.20%
    transfer_no_resume_aws_lc_rs_1.3_ecdsap384_aes_server 46085807 46083499 -2308 (-0.01%) 0.20%
    handshake_no_resume_ring_1.3_ecdsap256_aes_server 1238682 1238621 -61 (-0.00%) 0.20%
    handshake_no_resume_1.2_no_crypto_client 62029 62026 -3 (-0.00%) 0.32%
    handshake_no_resume_ring_1.3_ecdsap256_chacha_server 1239859 1239801 -58 (-0.00%) 0.20%
    transfer_no_resume_ring_1.3_ecdsap256_aes_server 45911062 45912375 1313 (0.00%) 0.20%
    handshake_no_resume_ring_1.3_ecdsap384_aes_server 7186648 7186824 176 (0.00%) 0.20%
    handshake_no_resume_ring_1.3_ecdsap384_chacha_server 7188609 7188778 169 (0.00%) 0.20%
    transfer_no_resume_ring_1.3_ecdsap384_aes_server 45912029 45912684 655 (0.00%) 0.20%
    transfer_no_resume_aws_lc_rs_1.3_ecdsap384_chacha_server 80266287 80265259 -1028 (-0.00%) 0.20%
    handshake_tickets_aws_lc_rs_1.3_ecdsap256_chacha_client 50402019 50401445 -574 (-0.00%) 0.55%
    handshake_no_resume_ring_1.2_rsa_aes_server 10928302 10928373 71 (0.00%) 0.20%
    handshake_no_resume_ring_1.3_rsa_aes_client 2303982 2303973 -9 (-0.00%) 0.20%
    handshake_no_resume_ring_1.3_rsa_chacha_client 2309636 2309627 -9 (-0.00%) 0.20%
    handshake_no_resume_ring_1.3_rsa_aes_server 11085845 11085886 41 (0.00%) 0.20%
    handshake_no_resume_ring_1.3_rsa_chacha_server 11091601 11091642 41 (0.00%) 0.20%
    handshake_no_resume_ring_1.2_rsa_aes_client 2176093 2176086 -7 (-0.00%) 0.20%
    transfer_no_resume_aws_lc_rs_1.3_rsa_aes_server 46074354 46074456 102 (0.00%) 0.20%
    handshake_no_resume_aws_lc_rs_1.2_rsa_aes_client 1686694 1686691 -3 (-0.00%) 0.20%
    transfer_no_resume_1.2_no_crypto_server 104818963 104819139 176 (0.00%) 0.20%
    transfer_no_resume_aws_lc_rs_1.3_ecdsap256_aes_server 46085956 46085888 -68 (-0.00%) 0.20%
    transfer_no_resume_aws_lc_rs_1.3_rsa_chacha_server 80256114 80256216 102 (0.00%) 0.20%
    transfer_no_resume_aws_lc_rs_1.3_ecdsap256_chacha_server 80266436 80266368 -68 (-0.00%) 0.20%
    transfer_no_resume_1.3_no_crypto_server 104858439 104858381 -58 (-0.00%) 0.20%
    transfer_no_resume_ring_1.3_ecdsap256_chacha_server 80147862 80147895 33 (0.00%) 0.20%
    transfer_no_resume_ring_1.3_ecdsap384_chacha_server 80147549 80147564 15 (0.00%) 0.20%
    handshake_no_resume_ring_1.3_ecdsap384_aes_client 34715338 34715343 5 (0.00%) 0.20%
    handshake_no_resume_ring_1.3_ecdsap384_chacha_client 34717067 34717062 -5 (-0.00%) 0.20%
    transfer_no_resume_ring_1.3_rsa_chacha_server 80147952 80147952 0 (0.00%) 0.20%
    transfer_no_resume_ring_1.3_rsa_chacha_client 92469406 92469406 0 (0.00%) 0.20%
    transfer_no_resume_ring_1.3_ecdsap256_aes_client 57943315 57943315 0 (0.00%) 0.20%
    transfer_no_resume_aws_lc_rs_1.2_rsa_aes_client 57986785 57986785 0 (0.00%) 0.20%
    transfer_no_resume_aws_lc_rs_1.3_rsa_chacha_client 92522781 92522781 0 (0.00%) 0.20%
    transfer_no_resume_ring_1.2_rsa_aes_client 57799952 57799952 0 (0.00%) 0.20%
    transfer_no_resume_ring_1.3_rsa_aes_client 57943326 57943326 0 (0.00%) 0.20%
    transfer_no_resume_ring_1.3_ecdsap256_chacha_client 92469395 92469395 0 (0.00%) 0.20%
    transfer_no_resume_ring_1.2_rsa_aes_server 45844764 45844764 0 (0.00%) 0.20%
    transfer_no_resume_ring_1.3_ecdsap384_chacha_client 92469395 92469395 0 (0.00%) 0.20%
    transfer_no_resume_aws_lc_rs_1.3_ecdsap256_aes_client 58055138 58055138 0 (0.00%) 0.20%
    transfer_no_resume_aws_lc_rs_1.3_rsa_aes_client 58061341 58061341 0 (0.00%) 0.20%
    transfer_no_resume_aws_lc_rs_1.3_ecdsap256_chacha_client 92515219 92515219 0 (0.00%) 0.20%
    transfer_no_resume_ring_1.3_rsa_aes_server 45913072 45913072 0 (0.00%) 0.20%
    transfer_no_resume_aws_lc_rs_1.3_ecdsap384_chacha_client 92515138 92515138 0 (0.00%) 0.20%
    transfer_no_resume_1.3_no_crypto_client 117067155 117067155 0 (0.00%) 0.20%
    transfer_no_resume_1.2_no_crypto_client 117026631 117026631 0 (0.00%) 0.20%
    transfer_no_resume_ring_1.3_ecdsap384_aes_client 57942035 57942035 0 (0.00%) 0.20%
    transfer_no_resume_aws_lc_rs_1.3_ecdsap384_aes_client 58054978 58054978 0 (0.00%) 0.20%

    Wall-time

    Significant differences

    There are no significant wall-time differences

    Other differences

    Click to expand
    Scenario Baseline Candidate Diff Threshold
    handshake_session_id_1.3_no_crypto 744.16 Β΅s 763.72 Β΅s 19.56 Β΅s (2.63%) 4.97%
    handshake_no_resume_1.3_no_crypto 87.14 Β΅s 85.74 Β΅s -1.39 Β΅s (-1.60%) 11.87%
    transfer_no_resume_1.3_no_crypto 12.19 ms 12.04 ms -0.16 ms (-1.28%) 2.69%
    handshake_no_resume_1.2_no_crypto 78.13 Β΅s 77.17 Β΅s -0.96 Β΅s (-1.23%) 13.96%
    transfer_no_resume_1.2_no_crypto 12.12 ms 11.99 ms -0.13 ms (-1.06%) 2.70%
    handshake_tickets_ring_1.2_rsa_aes 1.57 ms 1.56 ms -0.01 ms (-0.88%) 2.92%
    handshake_tickets_aws_lc_rs_1.3_rsa_chacha 8.34 ms 8.28 ms -0.06 ms (-0.75%) 1.31%
    handshake_tickets_aws_lc_rs_1.3_ecdsap256_chacha 7.67 ms 7.62 ms -0.05 ms (-0.72%) 1.79%
    handshake_tickets_aws_lc_rs_1.3_rsa_aes 8.36 ms 8.31 ms -0.06 ms (-0.70%) 1.60%
    handshake_tickets_aws_lc_rs_1.3_ecdsap384_aes 8.40 ms 8.34 ms -0.06 ms (-0.67%) 2.06%
    handshake_tickets_aws_lc_rs_1.3_ecdsap384_chacha 8.36 ms 8.31 ms -0.05 ms (-0.66%) 1.45%
    handshake_session_id_1.2_no_crypto 379.92 Β΅s 382.30 Β΅s 2.38 Β΅s (0.63%) 8.22%
    handshake_no_resume_ring_1.3_ecdsap256_chacha 464.16 Β΅s 461.29 Β΅s -2.87 Β΅s (-0.62%) 3.33%
    handshake_tickets_1.3_no_crypto 714.43 Β΅s 718.60 Β΅s 4.17 Β΅s (0.58%) 6.29%
    handshake_tickets_aws_lc_rs_1.3_ecdsap256_aes 7.70 ms 7.65 ms -0.04 ms (-0.56%) 1.68%
    handshake_no_resume_ring_1.3_ecdsap256_aes 466.02 Β΅s 463.70 Β΅s -2.33 Β΅s (-0.50%) 3.05%
    transfer_no_resume_aws_lc_rs_1.3_ecdsap256_aes 4.87 ms 4.85 ms -0.02 ms (-0.48%) 6.04%
    handshake_tickets_aws_lc_rs_1.2_rsa_aes 1.83 ms 1.82 ms -0.01 ms (-0.44%) 2.68%
    transfer_no_resume_ring_1.2_rsa_aes 6.05 ms 6.07 ms 0.03 ms (0.42%) 4.73%
    handshake_tickets_1.2_no_crypto 415.28 Β΅s 416.98 Β΅s 1.71 Β΅s (0.41%) 8.61%
    handshake_no_resume_aws_lc_rs_1.3_rsa_chacha 1.18 ms 1.18 ms -0.00 ms (-0.38%) 1.47%
    handshake_no_resume_aws_lc_rs_1.3_ecdsap256_aes 548.09 Β΅s 546.08 Β΅s -2.02 Β΅s (-0.37%) 3.18%
    handshake_tickets_ring_1.3_rsa_aes 6.13 ms 6.11 ms -0.02 ms (-0.33%) 2.38%
    handshake_tickets_ring_1.3_rsa_chacha 6.09 ms 6.07 ms -0.02 ms (-0.32%) 2.13%
    transfer_no_resume_aws_lc_rs_1.3_rsa_aes 5.51 ms 5.49 ms -0.02 ms (-0.32%) 5.37%
    handshake_session_id_ring_1.2_rsa_aes 1.47 ms 1.47 ms -0.00 ms (-0.29%) 2.96%
    handshake_tickets_ring_1.3_ecdsap256_aes 5.63 ms 5.61 ms -0.02 ms (-0.29%) 2.62%
    handshake_tickets_ring_1.3_ecdsap256_chacha 5.58 ms 5.57 ms -0.02 ms (-0.28%) 2.23%
    handshake_no_resume_ring_1.3_ecdsap384_chacha 3.57 ms 3.56 ms -0.01 ms (-0.27%) 2.38%
    handshake_no_resume_ring_1.3_ecdsap384_aes 3.57 ms 3.56 ms -0.01 ms (-0.27%) 2.64%
    handshake_tickets_ring_1.3_ecdsap384_aes 8.73 ms 8.71 ms -0.02 ms (-0.26%) 2.03%
    handshake_session_id_aws_lc_rs_1.3_rsa_chacha 8.12 ms 8.10 ms -0.02 ms (-0.26%) 1.50%
    handshake_tickets_ring_1.3_ecdsap384_chacha 8.69 ms 8.67 ms -0.02 ms (-0.26%) 1.73%
    transfer_no_resume_aws_lc_rs_1.2_rsa_aes 5.32 ms 5.30 ms -0.01 ms (-0.22%) 5.17%
    transfer_no_resume_aws_lc_rs_1.3_ecdsap384_aes 5.56 ms 5.55 ms -0.01 ms (-0.22%) 5.28%
    handshake_session_id_aws_lc_rs_1.2_rsa_aes 1.65 ms 1.66 ms 0.00 ms (0.21%) 2.02%
    handshake_no_resume_ring_1.3_rsa_aes 956.09 Β΅s 954.14 Β΅s -1.95 Β΅s (-0.20%) 1.17%
    handshake_session_id_aws_lc_rs_1.3_ecdsap256_chacha 7.46 ms 7.44 ms -0.01 ms (-0.19%) 1.78%
    transfer_no_resume_ring_1.3_ecdsap384_chacha 16.35 ms 16.32 ms -0.03 ms (-0.18%) 1.60%
    handshake_session_id_aws_lc_rs_1.3_ecdsap384_chacha 8.14 ms 8.13 ms -0.01 ms (-0.15%) 1.43%
    handshake_no_resume_aws_lc_rs_1.3_ecdsap384_aes 1.23 ms 1.23 ms -0.00 ms (-0.14%) 1.58%
    handshake_session_id_ring_1.3_rsa_chacha 6.04 ms 6.03 ms -0.01 ms (-0.14%) 1.75%
    handshake_session_id_ring_1.3_ecdsap384_chacha 8.64 ms 8.62 ms -0.01 ms (-0.14%) 1.66%
    transfer_no_resume_ring_1.3_ecdsap256_aes 5.66 ms 5.65 ms -0.01 ms (-0.13%) 4.79%
    transfer_no_resume_ring_1.3_rsa_chacha 13.74 ms 13.72 ms -0.02 ms (-0.13%) 1.80%
    handshake_session_id_aws_lc_rs_1.3_ecdsap384_aes 8.17 ms 8.16 ms -0.01 ms (-0.12%) 1.78%
    handshake_no_resume_aws_lc_rs_1.2_rsa_aes 1.06 ms 1.06 ms 0.00 ms (0.12%) 1.56%
    handshake_no_resume_aws_lc_rs_1.3_ecdsap384_chacha 1.23 ms 1.23 ms 0.00 ms (0.12%) 1.46%
    transfer_no_resume_ring_1.3_rsa_aes 6.14 ms 6.15 ms 0.01 ms (0.11%) 4.01%
    transfer_no_resume_ring_1.3_ecdsap256_chacha 13.25 ms 13.23 ms -0.01 ms (-0.11%) 1.91%
    transfer_no_resume_aws_lc_rs_1.3_rsa_chacha 13.99 ms 13.97 ms -0.02 ms (-0.11%) 2.06%
    handshake_no_resume_aws_lc_rs_1.3_ecdsap256_chacha 546.47 Β΅s 545.86 Β΅s -0.60 Β΅s (-0.11%) 3.98%
    handshake_session_id_aws_lc_rs_1.3_rsa_aes 8.16 ms 8.15 ms -0.01 ms (-0.10%) 1.91%
    handshake_no_resume_ring_1.2_rsa_aes 947.51 Β΅s 946.63 Β΅s -0.88 Β΅s (-0.09%) 1.46%
    handshake_session_id_ring_1.3_ecdsap384_aes 8.67 ms 8.66 ms -0.01 ms (-0.09%) 1.82%
    handshake_session_id_ring_1.3_ecdsap256_chacha 5.54 ms 5.53 ms -0.00 ms (-0.08%) 2.13%
    handshake_session_id_ring_1.3_ecdsap256_aes 5.57 ms 5.58 ms 0.00 ms (0.07%) 1.99%
    transfer_no_resume_ring_1.3_ecdsap384_aes 8.76 ms 8.75 ms -0.01 ms (-0.07%) 2.78%
    transfer_no_resume_aws_lc_rs_1.3_ecdsap256_chacha 13.35 ms 13.34 ms -0.01 ms (-0.06%) 2.19%
    handshake_session_id_ring_1.3_rsa_aes 6.08 ms 6.08 ms -0.00 ms (-0.06%) 1.93%
    handshake_no_resume_aws_lc_rs_1.3_rsa_aes 1.18 ms 1.18 ms 0.00 ms (0.05%) 1.34%
    transfer_no_resume_aws_lc_rs_1.3_ecdsap384_chacha 14.03 ms 14.03 ms -0.00 ms (-0.03%) 1.92%
    handshake_no_resume_ring_1.3_rsa_chacha 957.58 Β΅s 957.34 Β΅s -0.24 Β΅s (-0.03%) 1.29%
    handshake_session_id_aws_lc_rs_1.3_ecdsap256_aes 7.48 ms 7.48 ms -0.00 ms (-0.01%) 1.88%

    Memory usage

    Key:

    • βˆ‘: sum usage for entire benchmark run
    • πŸ”: peak usage
    • B: bytes
    • a: allocations

    Significant differences

    ⚠️ There are significant memory usage differences

    Click to expand
    Scenario Baseline Candidate Diff Threshold
    handshake_session_id_1.2_no_crypto_server βˆ‘ 146545B 556a
    πŸ” 70599B 189a
    βˆ‘ 142841B 562a
    πŸ” 66815B 193a
    βœ… βˆ‘ -3704B +6a
    πŸ” -3784B +4a (-2.53%)
    0.10%
    handshake_session_id_1.3_no_crypto_server βˆ‘ 149744B 649a
    πŸ” 70599B 189a
    βˆ‘ 146184B 659a
    πŸ” 66815B 193a
    βœ… βˆ‘ -3560B +10a
    πŸ” -3784B +4a (-2.38%)
    0.10%
    handshake_no_resume_1.2_no_crypto_server βˆ‘ 120962B 493a
    πŸ” 54879B 187a
    βˆ‘ 118402B 495a
    πŸ” 52319B 189a
    βœ… βˆ‘ -2560B +2a
    πŸ” -2560B +2a (-2.12%)
    0.10%
    handshake_session_id_ring_1.3_ecdsap256_aes_server βˆ‘ 168856B 675a
    πŸ” 72276B 194a
    βˆ‘ 165293B 685a
    πŸ” 68492B 198a
    βœ… βˆ‘ -3563B +10a
    πŸ” -3784B +4a (-2.11%)
    0.10%
    handshake_session_id_ring_1.3_ecdsap256_chacha_server βˆ‘ 168858B 675a
    πŸ” 72276B 194a
    βˆ‘ 165295B 685a
    πŸ” 68492B 198a
    βœ… βˆ‘ -3563B +10a
    πŸ” -3784B +4a (-2.11%)
    0.10%
    handshake_no_resume_1.3_no_crypto_server βˆ‘ 121459B 518a
    πŸ” 54879B 187a
    βˆ‘ 118899B 520a
    πŸ” 52319B 189a
    βœ… βˆ‘ -2560B +2a
    πŸ” -2560B +2a (-2.11%)
    0.10%
    handshake_session_id_ring_1.2_rsa_aes_server βˆ‘ 175939B 607a
    πŸ” 75128B 204a
    βˆ‘ 172235B 613a
    πŸ” 71344B 208a
    βœ… βˆ‘ -3704B +6a
    πŸ” -3784B +4a (-2.11%)
    0.10%
    handshake_session_id_ring_1.3_ecdsap384_aes_server βˆ‘ 170078B 675a
    πŸ” 72456B 194a
    βˆ‘ 166515B 685a
    πŸ” 68672B 198a
    βœ… βˆ‘ -3563B +10a
    πŸ” -3784B +4a (-2.09%)
    0.10%
    handshake_session_id_ring_1.3_ecdsap384_chacha_server βˆ‘ 170075B 675a
    πŸ” 72456B 194a
    βˆ‘ 166515B 685a
    πŸ” 68672B 198a
    βœ… βˆ‘ -3560B +10a
    πŸ” -3784B +4a (-2.09%)
    0.10%
    handshake_session_id_ring_1.3_rsa_aes_server βˆ‘ 186138B 699a
    πŸ” 75128B 204a
    βˆ‘ 182578B 709a
    πŸ” 71344B 208a
    βœ… βˆ‘ -3560B +10a
    πŸ” -3784B +4a (-1.91%)
    0.10%
    handshake_session_id_ring_1.3_rsa_chacha_server βˆ‘ 186140B 699a
    πŸ” 75128B 204a
    βˆ‘ 182580B 709a
    πŸ” 71344B 208a
    βœ… βˆ‘ -3560B +10a
    πŸ” -3784B +4a (-1.91%)
    0.10%
    handshake_no_resume_ring_1.3_ecdsap256_aes_server βˆ‘ 134432B 538a
    πŸ” 56556B 192a
    βˆ‘ 131872B 540a
    πŸ” 53996B 194a
    βœ… βˆ‘ -2560B +2a
    πŸ” -2560B +2a (-1.90%)
    0.10%
    handshake_no_resume_ring_1.3_ecdsap256_chacha_server βˆ‘ 134434B 538a
    πŸ” 56556B 192a
    βˆ‘ 131877B 540a
    πŸ” 53996B 194a
    βœ… βˆ‘ -2557B +2a
    πŸ” -2560B +2a (-1.90%)
    0.10%
    handshake_tickets_1.3_no_crypto_server βˆ‘ 135032B 644a
    πŸ” 63993B 209a
    βˆ‘ 132472B 646a
    πŸ” 61433B 211a
    βœ… βˆ‘ -2560B +2a
    πŸ” -2560B +2a (-1.90%)
    0.10%
    handshake_no_resume_ring_1.3_ecdsap384_chacha_server βˆ‘ 135654B 538a
    πŸ” 56736B 192a
    βˆ‘ 133091B 540a
    πŸ” 54176B 194a
    βœ… βˆ‘ -2563B +2a
    πŸ” -2560B +2a (-1.89%)
    0.10%
    handshake_no_resume_ring_1.3_ecdsap384_aes_server βˆ‘ 135657B 538a
    πŸ” 56736B 192a
    βˆ‘ 133097B 540a
    πŸ” 54176B 194a
    βœ… βˆ‘ -2560B +2a
    πŸ” -2560B +2a (-1.89%)
    0.10%
    handshake_tickets_1.2_no_crypto_server βˆ‘ 132315B 581a
    πŸ” 63835B 203a
    βˆ‘ 129835B 585a
    πŸ” 61275B 205a
    βœ… βˆ‘ -2480B +4a
    πŸ” -2560B +2a (-1.87%)
    0.10%
    handshake_no_resume_ring_1.2_rsa_aes_server βˆ‘ 148556B 539a
    πŸ” 59408B 202a
    βˆ‘ 145996B 541a
    πŸ” 56848B 204a
    βœ… βˆ‘ -2560B +2a
    πŸ” -2560B +2a (-1.72%)
    0.10%
    handshake_no_resume_ring_1.3_rsa_aes_server βˆ‘ 151701B 562a
    πŸ” 59408B 202a
    βˆ‘ 149141B 564a
    πŸ” 56848B 204a
    βœ… βˆ‘ -2560B +2a
    πŸ” -2560B +2a (-1.69%)
    0.10%
    handshake_no_resume_ring_1.3_rsa_chacha_server βˆ‘ 151703B 562a
    πŸ” 59408B 202a
    βˆ‘ 149143B 564a
    πŸ” 56848B 204a
    βœ… βˆ‘ -2560B +2a
    πŸ” -2560B +2a (-1.69%)
    0.10%
    handshake_tickets_ring_1.3_ecdsap256_aes_server βˆ‘ 155395B 671a
    πŸ” 69831B 218a
    βˆ‘ 152832B 673a
    πŸ” 67270B 220a
    βœ… βˆ‘ -2563B +2a
    πŸ” -2561B +2a (-1.65%)
    0.10%
    handshake_tickets_ring_1.3_ecdsap256_chacha_server βˆ‘ 155392B 671a
    πŸ” 69830B 218a
    βˆ‘ 152835B 673a
    πŸ” 67271B 220a
    βœ… βˆ‘ -2557B +2a
    πŸ” -2559B +2a (-1.65%)
    0.10%
    handshake_tickets_ring_1.3_ecdsap384_aes_server βˆ‘ 156615B 671a
    πŸ” 70463B 218a
    βˆ‘ 154055B 673a
    πŸ” 67903B 220a
    βœ… βˆ‘ -2560B +2a
    πŸ” -2560B +2a (-1.63%)
    0.10%
    handshake_tickets_ring_1.3_ecdsap384_chacha_server βˆ‘ 156615B 671a
    πŸ” 70463B 218a
    βˆ‘ 154055B 673a
    πŸ” 67903B 220a
    βœ… βˆ‘ -2560B +2a
    πŸ” -2560B +2a (-1.63%)
    0.10%
    handshake_tickets_ring_1.2_rsa_aes_server βˆ‘ 162801B 633a
    πŸ” 74512B 221a
    βˆ‘ 160321B 637a
    πŸ” 71952B 223a
    βœ… βˆ‘ -2480B +4a
    πŸ” -2560B +2a (-1.52%)
    0.10%
    handshake_tickets_ring_1.3_rsa_aes_server βˆ‘ 172678B 695a
    πŸ” 75621B 228a
    βˆ‘ 170118B 697a
    πŸ” 73061B 230a
    βœ… βˆ‘ -2560B +2a
    πŸ” -2560B +2a (-1.48%)
    0.10%
    handshake_tickets_ring_1.3_rsa_chacha_server βˆ‘ 172680B 695a
    πŸ” 75621B 228a
    βˆ‘ 170120B 697a
    πŸ” 73061B 230a
    βœ… βˆ‘ -2560B +2a
    πŸ” -2560B +2a (-1.48%)
    0.10%
    handshake_session_id_aws_lc_rs_1.3_rsa_aes_server βˆ‘ 513075B 987a
    πŸ” 208144B 221a
    βˆ‘ 508403B 989a
    πŸ” 204360B 225a
    βœ… βˆ‘ -4672B +2a
    πŸ” -3784B +4a (-0.91%)
    0.87%
    handshake_session_id_aws_lc_rs_1.3_ecdsap256_chacha_server βˆ‘ 483676B 903a
    πŸ” 205421B 207a
    βˆ‘ 480116B 913a
    πŸ” 201637B 211a
    βœ… βˆ‘ -3560B +10a
    πŸ” -3784B +4a (-0.74%)
    0.10%
    handshake_session_id_aws_lc_rs_1.3_ecdsap256_aes_server βˆ‘ 483752B 903a
    πŸ” 205421B 207a
    βˆ‘ 480192B 913a
    πŸ” 201637B 211a
    βœ… βˆ‘ -3560B +10a
    πŸ” -3784B +4a (-0.74%)
    0.10%
    handshake_session_id_aws_lc_rs_1.3_ecdsap384_chacha_server βˆ‘ 485828B 909a
    πŸ” 205633B 207a
    βˆ‘ 482268B 919a
    πŸ” 201849B 211a
    βœ… βˆ‘ -3560B +10a
    πŸ” -3784B +4a (-0.73%)
    0.10%
    handshake_session_id_aws_lc_rs_1.3_ecdsap384_aes_server βˆ‘ 485900B 909a
    πŸ” 205633B 207a
    βˆ‘ 482340B 919a
    πŸ” 201849B 211a
    βœ… βˆ‘ -3560B +10a
    πŸ” -3784B +4a (-0.73%)
    0.10%
    handshake_no_resume_aws_lc_rs_1.3_ecdsap256_chacha_server βˆ‘ 428591B 665a
    πŸ” 189701B 205a
    βˆ‘ 426027B 667a
    πŸ” 187141B 207a
    βœ… βˆ‘ -2564B +2a
    πŸ” -2560B +2a (-0.60%)
    0.10%
    handshake_no_resume_aws_lc_rs_1.3_ecdsap384_chacha_server βˆ‘ 430739B 671a
    πŸ” 189913B 205a
    βˆ‘ 428175B 673a
    πŸ” 187353B 207a
    βœ… βˆ‘ -2564B +2a
    πŸ” -2560B +2a (-0.60%)
    0.10%
    handshake_no_resume_aws_lc_rs_1.3_ecdsap384_aes_server βˆ‘ 430767B 671a
    πŸ” 189913B 205a
    βˆ‘ 428211B 673a
    πŸ” 187353B 207a
    βœ… βˆ‘ -2556B +2a
    πŸ” -2560B +2a (-0.59%)
    0.10%
    handshake_no_resume_aws_lc_rs_1.3_ecdsap256_aes_server βˆ‘ 428555B 664a
    πŸ” 189701B 205a
    βˆ‘ 426059B 667a
    πŸ” 187141B 207a
    βœ… βˆ‘ -2496B +3a
    πŸ” -2560B +2a (-0.58%)
    0.10%
    handshake_tickets_aws_lc_rs_1.3_ecdsap384_aes_server βˆ‘ 477656B 923a
    πŸ” 208188B 239a
    βˆ‘ 474996B 924a
    πŸ” 205629B 241a
    βœ… βˆ‘ -2660B +1a
    πŸ” -2559B +2a (-0.56%)
    0.10%
    handshake_tickets_aws_lc_rs_1.3_ecdsap256_aes_server βˆ‘ 475508B 917a
    πŸ” 207524B 239a
    βˆ‘ 472880B 918a
    πŸ” 204965B 241a
    βœ… βˆ‘ -2628B +1a
    πŸ” -2559B +2a (-0.55%)
    0.10%
    handshake_tickets_aws_lc_rs_1.3_ecdsap384_chacha_server βˆ‘ 477584B 923a
    πŸ” 208172B 239a
    βˆ‘ 475020B 925a
    πŸ” 205611B 241a
    βœ… βˆ‘ -2564B +2a
    πŸ” -2561B +2a (-0.54%)
    0.10%
    handshake_tickets_aws_lc_rs_1.3_ecdsap256_chacha_server βˆ‘ 475368B 916a
    πŸ” 207509B 239a
    βˆ‘ 472872B 919a
    πŸ” 204947B 241a
    βœ… βˆ‘ -2496B +3a
    πŸ” -2562B +2a (-0.53%)
    0.10%

    Additional information

    Historical results

    Checkout details:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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