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