diff --git a/SignalMessaging/groups/GroupsV2Migration.swift b/SignalMessaging/groups/GroupsV2Migration.swift index 39ce1ab31b..ac6d2df547 100644 --- a/SignalMessaging/groups/GroupsV2Migration.swift +++ b/SignalMessaging/groups/GroupsV2Migration.swift @@ -1,5 +1,5 @@ // -// Copyright (c) 2021 Open Whisper Systems. All rights reserved. +// Copyright (c) 2022 Open Whisper Systems. All rights reserved. // import Foundation @@ -1063,7 +1063,7 @@ fileprivate extension GroupsV2Migration { } let migrationInfo = "GV2 Migration" let masterKey = try migrationInfo.utf8.withContiguousStorageIfAvailable { - try hkdf(outputLength: GroupMasterKey.SIZE, version: 3, inputKeyMaterial: v1GroupId, salt: [], info: $0) + try hkdf(outputLength: GroupMasterKey.SIZE, inputKeyMaterial: v1GroupId, salt: [], info: $0) }! return Data(masterKey) } diff --git a/SignalServiceKit/src/Devices/OWSProvisioningCipher.swift b/SignalServiceKit/src/Devices/OWSProvisioningCipher.swift index c7d7b68ab0..e1eb9d6b22 100644 --- a/SignalServiceKit/src/Devices/OWSProvisioningCipher.swift +++ b/SignalServiceKit/src/Devices/OWSProvisioningCipher.swift @@ -1,5 +1,5 @@ // -// Copyright (c) 2021 Open Whisper Systems. All rights reserved. +// Copyright (c) 2022 Open Whisper Systems. All rights reserved. // import CommonCrypto @@ -60,7 +60,7 @@ public class OWSProvisioningCipher: NSObject { let infoData = ProvisioningCipher.messageInfo let derivedSecret: [UInt8] = try infoData.utf8.withContiguousStorageIfAvailable { let totalLength = Self.cipherKeyLength + Self.macKeyLength - return try hkdf(outputLength: totalLength, version: 3, inputKeyMaterial: sharedSecret, salt: [], info: $0) + return try hkdf(outputLength: totalLength, inputKeyMaterial: sharedSecret, salt: [], info: $0) }! let cipherKey = derivedSecret[0..