mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Refactoring
This commit is contained in:
13
submodules/TelegramCore/Sources/Utils/MD5.swift
Normal file
13
submodules/TelegramCore/Sources/Utils/MD5.swift
Normal file
@@ -0,0 +1,13 @@
|
||||
import Foundation
|
||||
import Postbox
|
||||
import CryptoUtils
|
||||
|
||||
// Incuding at least one Objective-C class in a swift file ensures that it doesn't get stripped by the linker
|
||||
private final class LinkHelperClass: NSObject {
|
||||
}
|
||||
|
||||
public extension MemoryBuffer {
|
||||
func md5Digest() -> Data {
|
||||
return CryptoMD5(self.memory, Int32(self.length))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user