Skip to content

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

Closed

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.

Activity

  1. drieseng commented on May 28, 2023

    @drieseng
    MemberAuthor
  2. WojciechNagorski commented on May 29, 2023

    @WojciechNagorski
    Collaborator

    I don't mind. It looks like a great idea. IDE1006 is also a good role.

  3. added a commit that references this issue on Jul 15, 2023
  4. added this to the 2023.0.1 milestone on Dec 21, 2023
  5. WojciechNagorski commented on Dec 29, 2023

    @WojciechNagorski
    Collaborator
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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions