mirror of
https://github.com/jonasroussel/dart_jsonwebtoken.git
synced 2025-08-13 22:17:00 +08:00
34 -32 corrected for verify
This commit is contained in:
@ -263,7 +263,7 @@ class RSAAlgorithm extends JWTAlgorithm {
|
|||||||
final random = Random.secure();
|
final random = Random.secure();
|
||||||
switch (algorithm) {
|
switch (algorithm) {
|
||||||
case 'PS256':
|
case 'PS256':
|
||||||
byteValue = 34;
|
byteValue = 32;
|
||||||
break;
|
break;
|
||||||
case 'PS384':
|
case 'PS384':
|
||||||
byteValue = 48;
|
byteValue = 48;
|
||||||
@ -272,7 +272,7 @@ class RSAAlgorithm extends JWTAlgorithm {
|
|||||||
byteValue = 64;
|
byteValue = 64;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
byteValue = 34;
|
byteValue = 32;
|
||||||
}
|
}
|
||||||
final seed = List.generate(byteValue, (_) => random.nextInt(256));
|
final seed = List.generate(byteValue, (_) => random.nextInt(256));
|
||||||
secureRandom.seed(pc.KeyParameter(Uint8List.fromList(seed)));
|
secureRandom.seed(pc.KeyParameter(Uint8List.fromList(seed)));
|
||||||
|
Reference in New Issue
Block a user