Skip to content

Assert failure using RSA #3

Description

@mangodan2003

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions