Skip to content

core/crypto (openssl): RSA public key generation broken #1951

@marten-seemann

Description

@marten-seemann

This is probably not the right way to export a public key:

return &RsaPrivateKey{opensslPrivateKey{key}}, &RsaPublicKey{opensslPublicKey{key: key}}, nil

return &RsaPublicKey{opensslPublicKey{key: sk.opensslPrivateKey.key}}

As far as I can see, the fix would need to happen in go-openssl, and involve a bunch of super-ugly Go-to-C and vice versa code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugA bug in existing code (including security flaws)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions