Skip to content

RSA signing problem, when some components of private key are zero #980

@externaltemp

Description

@externaltemp

Hello!
I have 512 bit private key only with modulus and privateExponent filled.
All other fields (publicExponent, prime1, prime2, exponent1, exponent2, coef) are zero.

I can use this key in Java or Python (RSA lib) to signing something without any problem, but phpseclib fall into errors like "division by zero" etc - because it's tried to use zero components.

But by RFC on RSA - zero components is normal behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions