private static int getEncodedLength(int value) {
		if (value < 0) {
			throw new IllegalArgumentException("negative value");
		}
		if (value <= 0x7f) {
			return 1;
		}
		int len = 1;
		while (value > 0) {
			value >>>= 8;
			++len;
		}
		return len;
	}
Generate private/public SSH RSA keys for test purposes using RSA algorithm.
@return kay pair array suitable for writing to SSH private and public 
key files ([0] corresponds to private key PEM file, [1] corresponds to public key file)
@throws NoSuchAlgorithmException failed to instantiate RSA key pair generator
Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/server/remote/SSHKeyUtil.java