File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class RSAPrivateKey implements PrivateKey {
2020 final topLevelSeq = asn1Parser.nextObject () as ASN1Sequence ;
2121 final privateKey = topLevelSeq.elements[2 ];
2222
23- asn1Parser = ASN1Parser (privateKey.contentBytes ()! );
23+ asn1Parser = ASN1Parser (privateKey.contentBytes ());
2424 final pkSeq = asn1Parser.nextObject () as ASN1Sequence ;
2525
2626 final modulus = pkSeq.elements[1 ] as ASN1Integer ;
@@ -29,8 +29,8 @@ class RSAPrivateKey implements PrivateKey {
2929 final q = pkSeq.elements[5 ] as ASN1Integer ;
3030
3131 _privateKey = pointy.RSAPrivateKey (
32- modulus.valueAsBigInteger! ,
33- privateExponent.valueAsBigInteger! ,
32+ modulus.valueAsBigInteger,
33+ privateExponent.valueAsBigInteger,
3434 p.valueAsBigInteger,
3535 q.valueAsBigInteger);
3636 }
Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ class RSAPublicKey implements PublicKey {
2020 final topLevelSeq = asn1Parser.nextObject () as ASN1Sequence ;
2121 final publicKeyBitString = topLevelSeq.elements[1 ];
2222
23- final publicKeyAsn = ASN1Parser (publicKeyBitString.contentBytes ()! );
23+ final publicKeyAsn = ASN1Parser (publicKeyBitString.contentBytes ());
2424 final publicKeySeq = publicKeyAsn.nextObject () as ASN1Sequence ;
2525 final modulus = publicKeySeq.elements[0 ] as ASN1Integer ;
2626 final exponent = publicKeySeq.elements[1 ] as ASN1Integer ;
2727
2828 _publicKey = pointy.RSAPublicKey (
29- modulus.valueAsBigInteger! , exponent.valueAsBigInteger! );
29+ modulus.valueAsBigInteger, exponent.valueAsBigInteger);
3030 }
3131
3232 /// Create an [RSAPublicKey] from the given PEM-String.
Original file line number Diff line number Diff line change 11name : crypton
22description : A simple Dart library for asymmetric encryption and digital signatures
3- version : 2.1 .0
3+ version : 2.2 .0
44homepage : https://github.com/konstantinullrich
55repository : https://github.com/konstantinullrich/crypton
66issue_tracker : https://github.com/konstantinullrich/crypton/issues
77
88environment :
9- sdk : ' >=2.14.0 < 3.0.0'
9+ sdk : ^ 3.0.0
1010
1111dependencies :
12- pointycastle : ^3.6.2
13- asn1lib : ^1.2.2
12+ pointycastle : ^3.7.3
13+ asn1lib : ^1.5.0
1414
1515dev_dependencies :
16- lints : ^1.0 .1
17- test : ^1.21 .4
16+ lints : ^2.1 .1
17+ test : ^1.24 .4
You can’t perform that action at this time.
0 commit comments