You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In rsa.dart line 430 (https://github.com/hoylen/ssh_key/blob/master/lib/src/keys/rsa.dart#L420) an 8 byte prefix is generated but then lower down blockOverflow is calculated and used to make the final result length a multiple of 16 without taking the prefix into account. This can result in an assertion failure as the result can be out by 8 bytes.
The text was updated successfully, but these errors were encountered:
final blockOverflow = ((dummyPrefix.length + pvt.length) % _pvtBlockSize);
I hope to find some time to publish a new release in the coming months. Meanwhile, you can reference the Git branch in your pubspec.yaml file.
Implementation support for private keys is experimental, since the format is not documented anywhere I could find. Public keys are designed to be exchanged, and private keys are not: so every implementation stores them however they want and don't bother documenting the format.
In rsa.dart line 430 (https://github.com/hoylen/ssh_key/blob/master/lib/src/keys/rsa.dart#L420) an 8 byte prefix is generated but then lower down blockOverflow is calculated and used to make the final result length a multiple of 16 without taking the prefix into account. This can result in an assertion failure as the result can be out by 8 bytes.
The text was updated successfully, but these errors were encountered: