Signal-iOS/SignalServiceKit/Account/ProfileKey.swift
2025-06-17 14:02:29 -05:00

16 lines
427 B
Swift

//
// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
//
public import LibSignalClient
import Foundation
extension ProfileKey {
public convenience init(_ profileKey: Aes256Key) {
// The force unwrap is safe because Aes256Key requires keyData to be 32
// bytes, and ProfileKey requires its content to be 32 bytes.
try! self.init(contents: profileKey.keyData)
}
}