Registry Mirror
Skip to content

Replace subtle with ctutils? #2275

Open

Description

@newpavlov

See RustCrypto/meta#29

In particular, subtle is part of the digest public API via the CtOutput type. elliptic-curve also uses it as a dependency. We probably should migrate before cutting the next breaking release.

Activity

  1. tarcieri commented on Feb 3, 2026

    @tarcieri
    Member

    It continues to be a big part of the public API of elliptic-curve because ff/group use it: zkcrypto/ff#148

    I was hoping to come to come kind of consensus about what to do there but haven't heard back yet.

  2. newpavlov commented on Feb 3, 2026

    @newpavlov
    MemberAuthor

    WDYT about digest? Should we migrate it before the next release or wait for decision on elliptic-curve?

  3. tarcieri commented on Feb 3, 2026

    @tarcieri
    Member

    Yeah, it's part of the digest public API due to the trait impls on CtOutput. I guess that's where we need to start making calls on this (fortunately we can release cipher first).

    Give me a day or so to see if I can get some clarity on what direction others want to go. Ideally I think we'd have one and only one constant-time library like that to deal with.

  4. tarcieri commented on Feb 5, 2026

    @tarcieri
    Member

    Okay, I've gotten in touch but it seems like things might not get sorted out until next week.

    I don't think it would be the end of the world to release digest with subtle support, then later add ctutils support if we decide to go that direction. We could simply not use the subtle feature ourselves. It's a very small piece of API surface.

    Edit: however, where it would be a problem is if I can actually coordinate a subtle v3 and we want to upgrade, so let me see if I can get clarity on that.

  5. added a commit that references this issue on Nov 10, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions