34 -32 corrected for verify

This commit is contained in:
Rhys
2024-11-14 08:08:26 +13:00
committed by Jonas Roussel
parent 7e434a3656
commit de73b7f6af

View File

@ -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)));