Implement join group via invitation link

This commit is contained in:
AsamK 2020-12-21 20:03:19 +01:00
parent 9912da9546
commit 445e8592c4
9 changed files with 239 additions and 56 deletions

View file

@ -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) {