Skip to content

Conversation

scott-xu
Copy link
Collaborator

No description provided.

@WojciechNagorski
Copy link
Collaborator

@scott-xu
Copy link
Collaborator Author

Was going to remove the whole Chaos.NaCl folder once several other PRs get merged. Do you want me to remove it piece by piece?


PublicKey = publicKeyData.Keys[0].ToByteArray().Reverse().TrimLeadingZeros().Pad(Ed25519.PublicKeySizeInBytes);
PrivateKey = new byte[Ed25519.ExpandedPrivateKeySizeInBytes];
PublicKey = publicKeyData.Keys[0].ToByteArray().Reverse().TrimLeadingZeros().Pad(Ed25519.PublicKeySize);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd just keep the PrivateKey not-null unless we enable nullability here

Suggested change
PublicKey = publicKeyData.Keys[0].ToByteArray().Reverse().TrimLeadingZeros().Pad(Ed25519.PublicKeySize);
PublicKey = publicKeyData.Keys[0].ToByteArray().Reverse().TrimLeadingZeros().Pad(Ed25519.PublicKeySize);
PrivateKey = new byte[Ed25519.SecretKeySize];

@Rob-Hague
Copy link
Collaborator

Was going to remove the whole Chaos.NaCl folder once several other PRs get merged. Do you want me to remove it piece by piece?

I think either way is fine

@WojciechNagorski WojciechNagorski merged commit 28301ab into sshnet:develop Jul 24, 2024
@scott-xu scott-xu deleted the bc_ed25519 branch July 24, 2024 12:21
@scott-xu scott-xu changed the title Ed25519 is now based on BouncyCastle instead of Chaos.NaCl [Ed25519] Use BouncyCastle instead of Chaos.NaCl Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants