mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-06 14:10:37 +00:00
Implement join group via invitation link
This commit is contained in:
parent
9912da9546
commit
445e8592c4
9 changed files with 239 additions and 56 deletions
|
@ -35,9 +35,9 @@ public class GroupUtils {
|
|||
return groupSecretParams.getPublicParams().getGroupIdentifier().serialize();
|
||||
}
|
||||
|
||||
public static GroupMasterKey deriveV2MigrationMasterKey(byte[] groupId) {
|
||||
public static GroupMasterKey deriveV2MigrationMasterKey(byte[] groupIdV1) {
|
||||
try {
|
||||
return new GroupMasterKey(new HKDFv3().deriveSecrets(groupId,
|
||||
return new GroupMasterKey(new HKDFv3().deriveSecrets(groupIdV1,
|
||||
"GV2 Migration".getBytes(),
|
||||
GroupMasterKey.SIZE));
|
||||
} catch (InvalidInputException e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue