Replies: 1 comment
-
In FIPS we have a ConsistentKeyPair class which checks for correspondence between the two when used (well as best it can). Is that the kind of thing you are looking for? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a one-liner for validating that a private and public key match?
If not, BouncyCastle could implement this utility by having
org.bouncycastle.crypto.util.PrivateKeyFactory
also produce the public key parameters, and havingorg.bouncycastle.crypto.params.AsymmetricKeyParameter
implementequals()
.BouncyCastle is uniquely positioned to make this common task easy.
Beta Was this translation helpful? Give feedback.
All reactions