Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
signalapp
GitHub Repository: signalapp/Signal-iOS
Path: blob/main/SignalServiceKit/Account/ProfileKey.swift
1 views
//
// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
//

import Foundation
public import LibSignalClient

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)
    }
}