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

This commit is contained in:
zzz
2011-06-04 12:04:18 +00:00
parent 885d549e84
commit 4e16ef35a2

View File

@ -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;