mirror of
https://github.com/grishka/NearDrop.git
synced 2026-04-03 01:36:15 +02:00
15
NearbyShare/SymmetricKey+Extensions.swift
Normal file
15
NearbyShare/SymmetricKey+Extensions.swift
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// 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)})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user