Skip to content

Commit aa0004e

Browse files
committed
upgraded version with no panic
1 parent aa5f180 commit aa0004e

23 files changed

+2966
-957
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.3.3
2+
3+
- Fixed panic when invalid keys are used https://github.com/jerson/flutter-rsa/issues/13
4+
15
## 1.3.2
26

37
- Tests CI and github actions for drive
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.

example/lib/hash.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ class _HashState extends State<Hash> {
4141
key: Key("encode"),
4242
result: _encrypted,
4343
onPressed: (controller) async {
44-
var encrypted = await RSA.hash(controller.text, pb.Hash.HASH_SHA512);
44+
var encrypted =
45+
await RSA.hash(controller.text, pb.Hash.HASH_SHA512);
4546
setState(() {
4647
_encrypted = encrypted;
4748
});

example/lib/main_desktop.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ import 'package:fast_rsa/rsa.dart';
44
void main() {
55
RSA.bindingEnabled = false;
66
original_main.main();
7-
}
7+
}

example/lib/shared/button_widget.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ class _ButtonWidgetState extends State<ButtonWidget> {
4040
),
4141
(_loading)
4242
? Text(
43-
widget.result,
44-
key: Key("loading"),
45-
)
43+
widget.result,
44+
key: Key("loading"),
45+
)
4646
: Text(
47-
widget.result,
48-
key: Key("result"),
49-
)
47+
widget.result,
48+
key: Key("result"),
49+
)
5050
],
5151
),
5252
);

example/lib/shared/input_widget.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ class _InputWidgetState extends State<InputWidget> {
6464
),
6565
(_loading)
6666
? Text(
67-
widget.result,
68-
key: Key("loading"),
69-
)
67+
widget.result,
68+
key: Key("loading"),
69+
)
7070
: Text(
71-
widget.result,
72-
key: Key("result"),
73-
)
71+
widget.result,
72+
key: Key("result"),
73+
)
7474
],
7575
),
7676
);

example/pubspec.lock

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ packages:
119119
path: ".."
120120
relative: true
121121
source: path
122-
version: "1.3.1"
122+
version: "1.3.3"
123123
ffi:
124124
dependency: transitive
125125
description:
@@ -208,13 +208,6 @@ packages:
208208
url: "https://pub.dartlang.org"
209209
source: hosted
210210
version: "0.6.3-nullsafety.3"
211-
json_rpc_2:
212-
dependency: transitive
213-
description:
214-
name: json_rpc_2
215-
url: "https://pub.dartlang.org"
216-
source: hosted
217-
version: "2.2.2"
218211
logging:
219212
dependency: transitive
220213
description:
@@ -312,7 +305,7 @@ packages:
312305
name: protobuf
313306
url: "https://pub.dartlang.org"
314307
source: hosted
315-
version: "1.1.0"
308+
version: "1.1.1"
316309
pub_semver:
317310
dependency: transitive
318311
description:

ios/librsa_bridge.a

15.5 MB
Binary file not shown.

ios/librsa_bridge.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
7474
extern "C" {
7575
#endif
7676

77-
extern BytesReturn* RSABridgeCall(char* name, void* payload, int payloadSize);
77+
78+
extern BytesReturn* RSABridgeCall(char* p0, void* p1, int p2);
7879

7980
#ifdef __cplusplus
8081
}

0 commit comments

Comments
 (0)