Skip to content

Commit 87f42fa

Browse files
authored
Merge pull request #213 from dint-dev/chore/v2.9.0
chore: cryptography v2.9.0
2 parents 67f2d3e + 3788333 commit 87f42fa

File tree

6 files changed

+15
-12
lines changed

6 files changed

+15
-12
lines changed

cryptography/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 2.9.0
2+
* Adds support for Web Crypto Ed25519 signatures.
3+
* Adds support for Web Crypto X25519 key exchange.
4+
* Bug fixes and refactoring.
5+
16
## 2.8.1
27
* Bug fixes.
38

cryptography/README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Android / iOS / Mac OS X operating system APIs whenever possible.
4646
In _pubspec.yaml_:
4747
```yaml
4848
dependencies:
49-
cryptography: ^2.8.1
49+
cryptography: ^2.9.0
5050

5151
# If you are writing a Flutter app/package, also add this:
5252
cryptography_flutter: ^2.3.4
@@ -144,8 +144,6 @@ implementations are available:
144144
145145
* [Ed25519](https://pub.dev/documentation/cryptography/latest/cryptography/Ed25519-class.html) (
146146
curve25519 EdDSA)
147-
* Performance of the pure Dart implementation is around 200 (signatures or verifications) per
148-
second in VM and about 50 in browsers.
149147
* Elliptic curves approved by NIST
150148
* [Ecdsa.p256](https://pub.dev/documentation/cryptography/latest/cryptography/Ecdsa/Ecdsa.p256.html) (
151149
ECDSA P256 / secp256r1 / prime256v1 + SHA256)
@@ -176,7 +174,6 @@ implementations are available:
176174
* We don't have implementations of these in pure Dart.
177175
* [X25519](https://pub.dev/documentation/cryptography/latest/cryptography/X25519-class.html) (
178176
curve25519 Diffie-Hellman)
179-
* Throughput of the pure Dart implementation is around 1000 key agreements per second (in VM).
180177
181178
### Key derivation / password hashing algorithms
182179

cryptography/lib/src/browser/browser_cryptography_when_not_browser.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import 'package:meta/meta.dart';
3939
/// * [Ecdh]
4040
/// * [Ecdsa]
4141
/// * Only when `hash` is [Sha256], [Sha384], or [Sha512].
42+
/// * [Ed25519]
4243
/// * [Hkdf]
4344
/// * Only when `hmac` is [Hmac.sha256], [Hmac.sha384], or [Hmac.sha512].
4445
/// * [Hmac]
@@ -50,6 +51,7 @@ import 'package:meta/meta.dart';
5051
/// * [Sha256]
5152
/// * [Sha384]
5253
/// * [Sha512]
54+
/// * [X25519]
5355
///
5456
/// The class extends [DartCryptography] so other factory methods will return
5557
/// pure Dart implementations.

cryptography/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: cryptography
2-
version: 2.8.1
2+
version: 2.9.0
33
homepage: https://github.com/dint-dev/cryptography
44
description:
55
Cryptographic algorithms for encryption, digital signatures, key agreement, authentication, and

cryptography_flutter/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@ Maintained by [terrier989](https://github.com/terrier989).
1111
Licensed under the [Apache License 2.0](LICENSE).
1212

1313
## Trade-offs of using operating system APIs
14-
### Pros
14+
### Advantages
1515
* __Compliant__.
1616
* Operating system implementations of algorithms are often compliant with various compliance
1717
requirements (such as FIPS 140-2).
18-
* __Speed__.
19-
* For some algorithms, operating system implementations are up to 100 times faster than pure Dart
20-
implementations.
18+
* __Performance__.
19+
* Some operating system implementations are much faster than pure Dart implementations.
2120

22-
### Cons
21+
### Disadvantages
2322
* __Easier to inspect__
2423
* If someone reverse engineers you application, it may be easier to inspect operating system calls
2524
than pure Dart implementations provided by
@@ -57,7 +56,7 @@ In _pubspec.yaml_:
5756

5857
```yaml
5958
dependencies:
60-
cryptography: ^2.8.1g
59+
cryptography: ^2.9.0
6160
cryptography_flutter: ^2.3.4
6261
```
6362

cryptography_flutter/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies:
1818
#
1919
# Packages by github.com/dint-dev:
2020
#
21-
cryptography: ^2.8.1
21+
cryptography: ^2.9.0
2222

2323
flutter:
2424
sdk: flutter

0 commit comments

Comments
 (0)