Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instantiate RSASignatureGenerator and RSASignatureValidator with in m… (CADC-12974) #236

Merged
merged 3 commits into from
Dec 13, 2023

Conversation

andamian
Copy link
Contributor

…emory keys (byte arrays)

@@ -150,86 +148,94 @@ public RsaSignatureGenerator(File keyFile) {
super(keyFile, true);
initPrivateKey(keyFile);
}

Copy link
Member

Choose a reason for hiding this comment

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

I think RsaSignatureGenerator needs a method like

public static KeyPair generateKeyPair(int len)

It's essentially the first half of the current generateKeyPair(File, File, int) method. The code in raven and vault can generate in-memory keys when necessary; cavern needs the existing File based method. I'm assuming byte correct byte[] is available via KeyPair methods (looks like it).

@pdowler pdowler merged commit bc5d642 into opencadc:master Dec 13, 2023
1 check passed
@andamian andamian deleted the CADC-12974 branch July 19, 2024 21:56
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.

2 participants