Move IdentityKeyPair generation to KeyUtils

in preparation for rust libsignal which doesn't provide the method
This commit is contained in:
AsamK 2020-12-21 10:25:36 +01:00
parent 00339b1abe
commit 88d81c7a63
3 changed files with 15 additions and 2 deletions

View file

@ -317,7 +317,7 @@ public class Manager implements Closeable {
PathConfig pathConfig = PathConfig.createDefault(settingsPath);
if (!SignalAccount.userExists(pathConfig.getDataPath(), username)) {
IdentityKeyPair identityKey = KeyHelper.generateIdentityKeyPair();
IdentityKeyPair identityKey = KeyUtils.generateIdentityKeyPair();
int registrationId = KeyHelper.generateRegistrationId(false);
ProfileKey profileKey = KeyUtils.createProfileKey();