Skip to content
This repository was archived by the owner on Apr 20, 2025. It is now read-only.
This repository was archived by the owner on Apr 20, 2025. It is now read-only.

Key Generation Unittest: Public and Private keys are assigned the wrong way around #188

Closed
@bliepp

Description

@bliepp

Most test cases in the tests.test_key.KeyGenTest test class are like

priv, pub = rsa.key.newkeys(...)

but it should be

pub, priv = rsa.key.newkeys(...)

In most test cases this is not a problem since only some common aspects are tested, but it is still formally wrong and might introduce bugs in some cases.

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