Skip to content

Minor redesign and optimization of (Private)Key classes #1128

Closed
@drieseng

Description

@drieseng
  • Remove _privateKey field from Key base class.
  • Remove ctor(byte[] data) from Key, and move current implementation to RsaKey and DsaKey classes.
  • The ctor(byte[] data of RsaKey and DsaKey can be optimized to remove intermediate List<BigInteger>.
  • Remove initial assignment of _publicKey from ED25519Key(byte[] pk, byte[] sk)ctor.
  • Rename privateKey field in ED25519Key to _privateKey and remove disable of IDE1006 for this field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions