mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GT-2997: made sshkeyutil methods public
This commit is contained in:
parent
60b1f36c98
commit
c098180d90
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ import java.util.Base64;
|
||||||
|
|
||||||
import ch.ethz.ssh2.packets.TypesWriter;
|
import ch.ethz.ssh2.packets.TypesWriter;
|
||||||
|
|
||||||
class SSHKeyUtil {
|
public class SSHKeyUtil {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate private/public SSH keys for test purposes using RSA algorithm.
|
* Generate private/public SSH keys for test purposes using RSA algorithm.
|
||||||
|
@ -30,7 +30,7 @@ class SSHKeyUtil {
|
||||||
* key files ([0] corresponds to private key, [1] corresponds to public key)
|
* key files ([0] corresponds to private key, [1] corresponds to public key)
|
||||||
* @throws NoSuchAlgorithmException
|
* @throws NoSuchAlgorithmException
|
||||||
*/
|
*/
|
||||||
static String[] generateSSHKeys() throws NoSuchAlgorithmException {
|
public static String[] generateSSHKeys() throws NoSuchAlgorithmException {
|
||||||
|
|
||||||
KeyPairGenerator generator = KeyPairGenerator.getInstance("RSA");
|
KeyPairGenerator generator = KeyPairGenerator.getInstance("RSA");
|
||||||
generator.initialize(2048);
|
generator.initialize(2048);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue