Sesame-iOS/Sesame/API/SignedMessage+Size.swift
2023-12-12 17:33:42 +01:00

16 lines
236 B
Swift

import Foundation
#if canImport(CryptoKit)
import CryptoKit
#else
import Crypto
#endif
extension SignedMessage {
/// The length of a message in bytes
static var size: Int {
SHA256.byteCount + Message.size
}
}