Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
29 changes: 24 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,31 @@ see `doc/design-rationale-md`.

## System dependencies

When you have a dependency on `package:webcrypto`, it will use
[hooks](https://dart.dev/tools/hooks) to build BoringSSL. Thus, your system
must have:
On native platforms, `package:webcrypto` uses BoringSSL from
[`package:boring`](https://pub.dev/packages/boring), which uses
[hooks](https://dart.dev/tools/hooks) to bundle it. By default it downloads a
prebuilt library for Linux, macOS, Windows, Android, and iOS. Release builds
link a smaller library with only the BoringSSL functions that are used, which
requires a C toolchain (like `gcc`, `clang`, Xcode, MSVC, or the Android NDK).
Without one, the prebuilt library is bundled as is.

The prebuilt Linux libraries require glibc 2.34 or later (for example Ubuntu
22.04, Debian 12, or RHEL 9). On older Linux distributions, or on ones with
another C library, such as musl on Alpine Linux, build BoringSSL from source by
adding this to the `pubspec.yaml` of your application:

```yaml
hooks:
user_defines:
boring:
buildMode: checkout
```

This requires CMake, Ninja, and a C compiler.

* `cmake`, and,
* a C compiler (like `gcc` or `clang`)
To build BoringSSL from source for other reasons, or for other targets, see the
[build modes](https://pub.dev/packages/boring#native-asset-build-modes) of
`package:boring`.

## Limitations
This package has a few limitations compared to the
Expand Down
4 changes: 2 additions & 2 deletions example/webcrypto_demo_flutter_app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ hash of user provided string.
Additionally, this example application provides integration tests for devices.

`integration_test/rsa_key_generation_test.dart` runs RSA-OAEP key generation
with a 2048-bit modulus and exponent 65537. It is separate from the ARM32-only
`bn_word_abi_32_test.dart` so it can run on every Android ABI.
with a 2048-bit modulus and exponent 65537. On 32-bit targets, such as Android
ARM32, it checks that the public exponent is passed to BoringSSL correctly.

This file was deleted.

54 changes: 31 additions & 23 deletions example/webcrypto_demo_flutter_app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.2"
boring:
dependency: transitive
description:
name: boring
sha256: "82d3b79a85dd84ed4b9d935f71fa51884b2e72387eb4c181cdab822f4d723e0f"
url: "https://pub.dev"
source: hosted
version: "0.4.2"
change_case:
dependency: transitive
description:
Expand Down Expand Up @@ -45,10 +53,10 @@ packages:
dependency: transitive
description:
name: code_assets
sha256: "83ccdaa064c980b5596c35dd64a8d3ecc68620174ab9b90b6343b753aa721687"
sha256: "1ef22a0be3af9370bd9481ac76db114db92bfe75d5ca2b2d7bc911764478a4d9"
url: "https://pub.dev"
source: hosted
version: "1.0.0"
version: "2.2.0"
collection:
dependency: transitive
description:
Expand Down Expand Up @@ -89,14 +97,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.3.3"
ffi:
dependency: transitive
description:
name: ffi
sha256: "6d7fd89431262d8f3125e81b50d3847a091d846eafcd4fdb88dd06f36d705a45"
url: "https://pub.dev"
source: hosted
version: "2.2.0"
file:
dependency: transitive
description:
Expand Down Expand Up @@ -145,10 +145,10 @@ packages:
dependency: transitive
description:
name: hooks
sha256: "025f060e86d2d4c3c47b56e33caf7f93bf9283340f26d23424ebcfccf34f621e"
sha256: eaac480a35ec0814146c2c48d96aaa829e0e44a7662c88ae84c9edf4bc35651f
url: "https://pub.dev"
source: hosted
version: "1.0.3"
version: "2.2.0"
integration_test:
dependency: "direct dev"
description: flutter
Expand Down Expand Up @@ -214,18 +214,26 @@ packages:
dependency: transitive
description:
name: meta
sha256: df0c643f44ad098eb37988027a8e2b2b5a031fd3977f06bbfd3a76637e8df739
sha256: "307249ce4ff29d58a18e97f6345f539382eb9c9c29ecda628900f31de0443dd9"
url: "https://pub.dev"
source: hosted
version: "1.19.0"
native_toolchain_c:
dependency: transitive
description:
name: native_toolchain_c
sha256: "120b6fc66acd8a5ddeaeb1e59b78836bb3ec9919bd9d9dfb1e2401985710c2c0"
url: "https://pub.dev"
source: hosted
version: "1.18.2"
version: "0.19.6"
native_toolchain_cmake:
dependency: transitive
description:
name: native_toolchain_cmake
sha256: cd4865568c57f03c7ab1f138cc5032c5f77825d27083d6f5a3e9bbb3e8014a87
sha256: "8ba223410102665483e873b83d2156720233a6a0181c07f9dc41cb2e961336b0"
url: "https://pub.dev"
source: hosted
version: "0.2.5"
version: "0.3.2"
path:
dependency: transitive
description:
Expand Down Expand Up @@ -262,10 +270,10 @@ packages:
dependency: transitive
description:
name: record_use
sha256: "2551bd8eecfe95d14ae75f6021ad0248be5c27f138c2ec12fcb52b500b3ba1ed"
sha256: "1cb8564af8d43b464294411db9217f5ec04891c6f22ee2c32d73ae05e88a6bd2"
url: "https://pub.dev"
source: hosted
version: "0.6.0"
version: "1.1.1"
sky_engine:
dependency: transitive
description: flutter
Expand Down Expand Up @@ -339,10 +347,10 @@ packages:
dependency: transitive
description:
name: vector_math
sha256: "47a1b32ee755c3fcffa33db52a7258c137f97bdb2209a1075be847809fac4ccf"
sha256: fa49e1674cb84acb900141714e6c6e1f9ae099827c24d141430ff6819db4e1bc
url: "https://pub.dev"
source: hosted
version: "2.3.0"
version: "2.4.4"
vm_service:
dependency: transitive
description:
Expand All @@ -354,10 +362,10 @@ packages:
webcrypto:
dependency: "direct main"
description:
path: ".."
path: "../.."
relative: true
source: path
version: "0.6.0"
version: "0.6.2"
webdriver:
dependency: transitive
description:
Expand All @@ -375,5 +383,5 @@ packages:
source: hosted
version: "3.1.3"
sdks:
dart: ">=3.10.0 <4.0.0"
dart: ">=3.13.3 <4.0.0"
flutter: ">=3.18.0-18.0.pre.54"
1 change: 0 additions & 1 deletion example/webcrypto_demo_flutter_app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@ dev_dependencies:
sdk: flutter
flutter_lints: ^6.0.0


flutter:
uses-material-design: true
110 changes: 0 additions & 110 deletions hook/build.dart

This file was deleted.

22 changes: 0 additions & 22 deletions lib/src/boringssl/README.md

This file was deleted.

29 changes: 0 additions & 29 deletions lib/src/boringssl/bindings/generated_bindings.dart

This file was deleted.

Loading
Loading