I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 4e16ef35 authored by zzz's avatar zzz
Browse files

* KeyGenerator: Restore old return type to not break ABI (thx kytv)

parent 885d549e
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,15 @@ public class KeyGenerator {
* index 1 is a PrivateKey
* @return pair of keys
*/
public SimpleDataStructure[] generatePKIKeypair() {
public Object[] generatePKIKeypair() {
return generatePKIKeys();
}
/**
* Same as above but different return type
* @since 0.8.7
*/
public SimpleDataStructure[] generatePKIKeys() {
BigInteger a = new NativeBigInteger(PUBKEY_EXPONENT_SIZE, _context.random());
BigInteger aalpha = CryptoConstants.elgg.modPow(a, CryptoConstants.elgp);
......@@ -120,7 +128,15 @@ public class KeyGenerator {
* index 1 is a SigningPrivateKey
* @return pair of keys
*/
public SimpleDataStructure[] generateSigningKeypair() {
public Object[] generateSigningKeypair() {
return generateSigningKeys();
}
/**
* Same as above but different return type
* @since 0.8.7
*/
public SimpleDataStructure[] generateSigningKeys() {
SimpleDataStructure[] keys = new SimpleDataStructure[2];
BigInteger x = null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment