mirror of
https://github.com/grishka/NearDrop.git
synced 2025-12-16 19:57:41 +01:00
16 lines
266 B
Swift
16 lines
266 B
Swift
|
|
//
|
||
|
|
// SymmetricKey+Extensions.swift
|
||
|
|
// NearbyShare
|
||
|
|
//
|
||
|
|
// Created by Grishka on 06.08.2025.
|
||
|
|
//
|
||
|
|
|
||
|
|
import Foundation
|
||
|
|
import CryptoKit
|
||
|
|
|
||
|
|
extension SymmetricKey{
|
||
|
|
func data() -> Data{
|
||
|
|
return withUnsafeBytes({return Data(bytes: $0.baseAddress!, count: $0.count)})
|
||
|
|
}
|
||
|
|
}
|