File tree 3 files changed +7
-4
lines changed 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.1.3
2
+ - Update deprecated PointyCastle features
3
+
1
4
## 1.1.2
2
5
- Update dependencies
3
6
- Update tests
Original file line number Diff line number Diff line change @@ -133,12 +133,12 @@ class RSAPrivateKey implements PrivateKey {
133
133
var privateKeySeq = ASN1Sequence ();
134
134
var modulus = ASN1Integer (_privateKey.n);
135
135
var publicExponent = ASN1Integer (BigInt .parse ('65537' ));
136
- var privateExponent = ASN1Integer (_privateKey.d );
136
+ var privateExponent = ASN1Integer (_privateKey.privateExponent );
137
137
var p = ASN1Integer (_privateKey.p);
138
138
var q = ASN1Integer (_privateKey.q);
139
- var dP = _privateKey.d % (_privateKey.p - BigInt .from (1 ));
139
+ var dP = _privateKey.privateExponent % (_privateKey.p - BigInt .from (1 ));
140
140
var exp1 = ASN1Integer (dP);
141
- var dQ = _privateKey.d % (_privateKey.q - BigInt .from (1 ));
141
+ var dQ = _privateKey.privateExponent % (_privateKey.q - BigInt .from (1 ));
142
142
var exp2 = ASN1Integer (dQ);
143
143
var iQ = _privateKey.q.modInverse (_privateKey.p);
144
144
var co = ASN1Integer (iQ);
Original file line number Diff line number Diff line change 1
1
name : crypton
2
2
description : A simple Dart library for asymmetric encryption and digital signatures
3
- version : 1.1.2
3
+ version : 1.1.3
4
4
homepage : https://github.com/konstantinullrich
5
5
repository : https://github.com/konstantinullrich/crypton
6
6
issue_tracker : https://github.com/konstantinullrich/crypton/issues
You can’t perform that action at this time.
0 commit comments