Skip to content

Migrate to use package:boring instead of building native assets in package:webcrypto #471

Open

Description

@jonasfj

We want to use package:boring: https://pub.dev/packages/boring instead of having our own native assets in package:webcrypto.

Package boring is just the ffigen stuff for BoringSSL along with BoringSSL.

The motivation is ensure that all the things we do that uses BoringSSL rely on as few boringssl copies as reasonably possible. So if some other crypto package needs to use BoringSSL use package:boring. That way we only have to update the BoringSSL copy in package:boring.

It also means that different packages that use BoringSSL can share the same binary (reducing size), and that we only have to do prebuilt assets once, and figuring out treeshaking once.


Note: package:boring is not really intended to be an end-user facing package, it's intended to be used by crypto libraries that wrap BoringSSL. It is not the aim that package:boring will ship a pleasant easy to use API, instead it'll ship the raw ffigen wrapped C API. Use package:webcrypto when writing applications.

Activity

  1. added
    enhancement
    on Nov 17, 2026
  2. mosuem commented on Nov 17, 2026

    @mosuem
    Collaborator

    Fixed by #417

  3. jonasfj commented on Nov 17, 2026

    @jonasfj
    MemberAuthor
  4. HamdaanAliQuatil commented on Nov 17, 2026

    @HamdaanAliQuatil
    Collaborator

    awesome!

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

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions