| 1 | // swift-interface-format-version: 1.0 |
| 2 | // swift-compiler-version: Apple Swift version 6.3.2 (swiftlang-6.3.2.1.2 clang-2100.0.123.2) |
| 3 | // swift-module-flags: -target arm64e-apple-ios26.5 -enable-objc-interop -enable-library-evolution -swift-version 6 -enforce-exclusivity=checked -O -library-level api -enable-experimental-feature TypedThrows -enable-experimental-feature DebugDescriptionMacro -user-module-version 324.100.35 -module-name CryptoKit -package-name com.apple.security.CryptoKit |
| 4 | // swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.2 |
| 5 | import Foundation |
| 6 | import LocalAuthentication |
| 7 | import Security.SecAccessControl |
| 1 | // swift-interface-format-version: 1.0 |
| 2 | // swift-compiler-version: Apple Swift version 6.4 (swiftlang-6.4.0.19.4 clang-2100.3.19.4) |
| 3 | // swift-module-flags: -target arm64e-apple-ios27.0 -enable-objc-interop -enable-library-evolution -language-mode 6 -O -library-level api -enable-experimental-feature Lifetimes -enable-experimental-feature DebugDescriptionMacro -user-module-version 381 -module-name CryptoKit -package-name com.apple.security.CryptoKit |
| 4 | // swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.4 |
| 5 | import Foundation |
| 6 | import LocalAuthentication |
| 7 | import Security.SecAccessControl |
| 11 | import _StringProcessing |
| 12 | import _SwiftConcurrencyShims |
| 13 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 14 | extension CryptoKit.HPKE { |
| 15 | public enum KDF : Swift.CaseIterable, Swift.Hashable, Swift.Sendable { |
| 16 | case HKDF_SHA256 |
| 17 | case HKDF_SHA384 |
| 18 | case HKDF_SHA512 |
| 19 | public static func == (a: CryptoKit.HPKE.KDF, b: CryptoKit.HPKE.KDF) -> Swift.Bool |
| 20 | @available(iOS 17.0, tvOS 17.0, watchOS 10.0, macOS 14.0, macCatalyst 17.0, *) |
| 21 | public typealias AllCases = [CryptoKit.HPKE.KDF] |
| 22 | nonisolated public static var allCases: [CryptoKit.HPKE.KDF] { |
| 23 | get |
| 24 | } |
| 25 | public func hash(into hasher: inout Swift.Hasher) |
| 26 | public var hashValue: Swift.Int { |
| 27 | get |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 32 | extension CryptoKit.Curve25519.Signing.PublicKey { |
| 33 | public func isValidSignature<S, D>(_ signature: S, for data: D) -> Swift.Bool where S : Foundation.DataProtocol, D : Foundation.DataProtocol |
| 34 | } |
| 35 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 36 | extension CryptoKit.Curve25519.Signing.PrivateKey { |
| 37 | public func signature<D>(for data: D) throws -> Foundation.Data where D : Foundation.DataProtocol |
| 38 | } |
| 39 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 40 | public enum Curve25519 : Swift.Sendable { |
| 41 | } |
| 42 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 2.0, *) |
| 43 | public struct SHA3_256 : Swift.Sendable { |
| 44 | public static let blockByteCount: Swift.Int |
| 45 | public static let byteCount: Swift.Int |
| 46 | public typealias Digest = CryptoKit.SHA3_256Digest |
| 47 | public init() |
| 48 | public mutating func update(bufferPointer: Swift.UnsafeRawBufferPointer) |
| 49 | public func finalize() -> CryptoKit.SHA3_256.Digest |
| 50 | } |
| 51 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 2.0, *) |
| 52 | public struct SHA3_384 : Swift.Sendable { |
| 53 | public static let blockByteCount: Swift.Int |
| 54 | public static let byteCount: Swift.Int |
| 55 | public typealias Digest = CryptoKit.SHA3_384Digest |
| 56 | public init() |
| 57 | public mutating func update(bufferPointer: Swift.UnsafeRawBufferPointer) |
| 58 | public func finalize() -> CryptoKit.SHA3_384.Digest |
| 59 | } |
| 60 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 2.0, *) |
| 61 | public struct SHA3_512 : Swift.Sendable { |
| 62 | public static let blockByteCount: Swift.Int |
| 63 | public static let byteCount: Swift.Int |
| 64 | public typealias Digest = CryptoKit.SHA3_512Digest |
| 65 | public init() |
| 66 | public mutating func update(bufferPointer: Swift.UnsafeRawBufferPointer) |
| 67 | public func finalize() -> CryptoKit.SHA3_512.Digest |
| 68 | } |
| 69 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 70 | public enum KEM : Swift.Sendable { |
| 71 | public struct EncapsulationResult : Swift.Sendable { |
| 72 | public let sharedSecret: CryptoKit.SymmetricKey |
| 73 | public let encapsulated: Foundation.Data |
| 74 | public init(sharedSecret: CryptoKit.SymmetricKey, encapsulated: Foundation.Data) |
| 75 | } |
| 76 | } |
| 77 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 78 | @preconcurrency public protocol KEMPublicKey : Swift.Sendable { |
| 79 | func encapsulate() throws -> CryptoKit.KEM.EncapsulationResult |
| 80 | } |
| 81 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 82 | @preconcurrency public protocol KEMPrivateKey : Swift.Sendable { |
| 83 | associatedtype PublicKey : CryptoKit.KEMPublicKey |
| 84 | static func generate() throws -> Self |
| 85 | func decapsulate(_ encapsulated: Foundation.Data) throws -> CryptoKit.SymmetricKey |
| 86 | var publicKey: Self.PublicKey { get } |
| 87 | } |
| 88 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 89 | extension CryptoKit.HPKE { |
| 90 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 91 | public enum KEM : Swift.CaseIterable, Swift.Hashable, Swift.Sendable { |
| 92 | public static var allCases: [CryptoKit.HPKE.KEM] { |
| 93 | get |
| 94 | } |
| 95 | case P256_HKDF_SHA256 |
| 96 | case P384_HKDF_SHA384 |
| 97 | case P521_HKDF_SHA512 |
| 98 | case Curve25519_HKDF_SHA256 |
| 99 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, *) |
| 100 | case XWingMLKEM768X25519 |
| 101 | public static func == (a: CryptoKit.HPKE.KEM, b: CryptoKit.HPKE.KEM) -> Swift.Bool |
| 102 | @available(iOS 17.0, tvOS 17.0, watchOS 10.0, macOS 14.0, macCatalyst 17.0, *) |
| 103 | public typealias AllCases = [CryptoKit.HPKE.KEM] |
| 104 | public func hash(into hasher: inout Swift.Hasher) |
| 105 | public var hashValue: Swift.Int { |
| 106 | get |
| 107 | } |
| 108 | } |
| 109 | } |
| 110 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 111 | extension CryptoKit.HPKE { |
| 112 | public struct Ciphersuite : Swift.Sendable { |
| 113 | public static let P256_SHA256_AES_GCM_256: CryptoKit.HPKE.Ciphersuite |
| 114 | public static let P384_SHA384_AES_GCM_256: CryptoKit.HPKE.Ciphersuite |
| 115 | public static let P521_SHA512_AES_GCM_256: CryptoKit.HPKE.Ciphersuite |
| 116 | public static let Curve25519_SHA256_ChachaPoly: CryptoKit.HPKE.Ciphersuite |
| 117 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, *) |
| 118 | public static let XWingMLKEM768X25519_SHA256_AES_GCM_256: CryptoKit.HPKE.Ciphersuite |
| 119 | public let kem: CryptoKit.HPKE.KEM |
| 120 | public let kdf: CryptoKit.HPKE.KDF |
| 121 | public let aead: CryptoKit.HPKE.AEAD |
| 122 | public init(kem: CryptoKit.HPKE.KEM, kdf: CryptoKit.HPKE.KDF, aead: CryptoKit.HPKE.AEAD) |
| 123 | } |
| 124 | } |
| 125 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 126 | public struct HMAC<H> : Swift.Sendable where H : CryptoKit.HashFunction { |
| 127 | public typealias Key = CryptoKit.SymmetricKey |
| 128 | public typealias MAC = CryptoKit.HashedAuthenticationCode<H> |
| 129 | public static func isValidAuthenticationCode(_ mac: CryptoKit.HMAC<H>.MAC, authenticating bufferPointer: Swift.UnsafeRawBufferPointer, using key: CryptoKit.SymmetricKey) -> Swift.Bool |
| 130 | public init(key: CryptoKit.SymmetricKey) |
| 131 | public static func authenticationCode<D>(for data: D, using key: CryptoKit.SymmetricKey) -> CryptoKit.HMAC<H>.MAC where D : Foundation.DataProtocol |
| 132 | public static func isValidAuthenticationCode<D>(_ authenticationCode: CryptoKit.HMAC<H>.MAC, authenticating authenticatedData: D, using key: CryptoKit.SymmetricKey) -> Swift.Bool where D : Foundation.DataProtocol |
| 133 | @available(iOS 13.2, macOS 10.15, watchOS 6.1, tvOS 13.2, macCatalyst 13.2, *) |
| 134 | public static func isValidAuthenticationCode<C, D>(_ authenticationCode: C, authenticating authenticatedData: D, using key: CryptoKit.SymmetricKey) -> Swift.Bool where C : Foundation.ContiguousBytes, D : Foundation.DataProtocol |
| 135 | public mutating func update<D>(data: D) where D : Foundation.DataProtocol |
| 136 | public func finalize() -> CryptoKit.HMAC<H>.MAC |
| 137 | } |
| 138 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 139 | public struct HashedAuthenticationCode<H> : CryptoKit.MessageAuthenticationCode, Swift.Sendable where H : CryptoKit.HashFunction { |
| 140 | public var byteCount: Swift.Int { |
| 141 | get |
| 142 | } |
| 143 | public var description: Swift.String { |
| 144 | get |
| 145 | } |
| 146 | public func withUnsafeBytes<R>(_ body: (Swift.UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 147 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, macCatalyst 13.0, *) |
| 148 | public typealias Element = Swift.UInt8 |
| 149 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, macCatalyst 13.0, *) |
| 150 | public typealias Iterator = Swift.Array<Swift.UInt8>.Iterator |
| 151 | public func hash(into hasher: inout Swift.Hasher) |
| 152 | public var hashValue: Swift.Int { |
| 153 | get |
| 154 | } |
| 155 | } |
| 156 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 2.0, *) |
| 157 | extension CryptoKit.KEM { |
| 158 | public enum Errors : Swift.Error { |
| 159 | case publicKeyMismatchDuringInitialization |
| 160 | case invalidSeed |
| 161 | public static func == (a: CryptoKit.KEM.Errors, b: CryptoKit.KEM.Errors) -> Swift.Bool |
| 162 | public func hash(into hasher: inout Swift.Hasher) |
| 163 | public var hashValue: Swift.Int { |
| 164 | get |
| 165 | } |
| 166 | } |
| 11 | import _StringProcessing |
| 12 | import _SwiftConcurrencyShims |
| 13 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 14 | extension CryptoKit::HPKE { |
| 15 | public enum KDF : Swift::CaseIterable, Swift::Hashable, Swift::Sendable { |
| 16 | case HKDF_SHA256 |
| 17 | case HKDF_SHA384 |
| 18 | case HKDF_SHA512 |
| 19 | public static func == (a: CryptoKit::HPKE.CryptoKit::KDF, b: CryptoKit::HPKE.CryptoKit::KDF) -> Swift::Bool |
| 20 | @available(macOS 14.0, iOS 17.0, tvOS 17.0, watchOS 10.0, macCatalyst 17.0, *) |
| 21 | public typealias AllCases = [CryptoKit::HPKE.CryptoKit::KDF] |
| 22 | nonisolated public static var allCases: [CryptoKit::HPKE.CryptoKit::KDF] { |
| 23 | get |
| 24 | } |
| 25 | public func hash(into hasher: inout Swift::Hasher) |
| 26 | public var hashValue: Swift::Int { |
| 27 | get |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 32 | extension CryptoKit::Curve25519.CryptoKit::Signing.CryptoKit::PublicKey { |
| 33 | public func isValidSignature<S, D>(_ signature: S, for data: D) -> Swift::Bool where S : Foundation::DataProtocol, D : Foundation::DataProtocol |
| 34 | } |
| 35 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 36 | extension CryptoKit::Curve25519.CryptoKit::Signing.CryptoKit::PrivateKey { |
| 37 | public func signature<D>(for data: D) throws -> Foundation::Data where D : Foundation::DataProtocol |
| 38 | } |
| 39 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 40 | public enum Curve25519 : Swift::Sendable { |
| 41 | } |
| 42 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 43 | public struct SHA3_256 : Swift::Sendable { |
| 44 | public static let blockByteCount: Swift::Int |
| 45 | public static let byteCount: Swift::Int |
| 46 | public typealias Digest = CryptoKit::SHA3_256Digest |
| 47 | public init() |
| 48 | public mutating func update(bufferPointer: Swift::UnsafeRawBufferPointer) |
| 49 | public func finalize() -> CryptoKit::SHA3_256.CryptoKit::Digest |
| 50 | } |
| 51 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 52 | public struct SHA3_384 : Swift::Sendable { |
| 53 | public static let blockByteCount: Swift::Int |
| 54 | public static let byteCount: Swift::Int |
| 55 | public typealias Digest = CryptoKit::SHA3_384Digest |
| 56 | public init() |
| 57 | public mutating func update(bufferPointer: Swift::UnsafeRawBufferPointer) |
| 58 | public func finalize() -> CryptoKit::SHA3_384.CryptoKit::Digest |
| 59 | } |
| 60 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 61 | public struct SHA3_512 : Swift::Sendable { |
| 62 | public static let blockByteCount: Swift::Int |
| 63 | public static let byteCount: Swift::Int |
| 64 | public typealias Digest = CryptoKit::SHA3_512Digest |
| 65 | public init() |
| 66 | public mutating func update(bufferPointer: Swift::UnsafeRawBufferPointer) |
| 67 | public func finalize() -> CryptoKit::SHA3_512.CryptoKit::Digest |
| 68 | } |
| 69 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 70 | public enum KEM : Swift::Sendable { |
| 71 | public struct EncapsulationResult : Swift::Sendable { |
| 72 | public let sharedSecret: CryptoKit::SymmetricKey |
| 73 | public let encapsulated: Foundation::Data |
| 74 | public init(sharedSecret: CryptoKit::SymmetricKey, encapsulated: Foundation::Data) |
| 75 | } |
| 76 | } |
| 77 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 78 | @preconcurrency public protocol KEMPublicKey : Swift::Sendable { |
| 79 | func encapsulate() throws -> CryptoKit::KEM.CryptoKit::EncapsulationResult |
| 80 | } |
| 81 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 82 | @preconcurrency public protocol KEMPrivateKey : Swift::Sendable { |
| 83 | associatedtype PublicKey : CryptoKit::KEMPublicKey |
| 84 | static func generate() throws -> Self |
| 85 | func decapsulate(_ encapsulated: Foundation::Data) throws -> CryptoKit::SymmetricKey |
| 86 | var publicKey: Self.PublicKey { get } |
| 87 | } |
| 88 | @available(iOS 27.0, macOS 27.0, watchOS 27.0, tvOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 89 | @preconcurrency public protocol KEMOneTimePrivateKey : Swift::Sendable, ~Copyable { |
| 90 | associatedtype PublicKey : CryptoKit::KEMPublicKey |
| 91 | static func generate() throws -> Self |
| 92 | consuming func decapsulate(_ encapsulated: Foundation::Data) throws -> CryptoKit::SymmetricKey |
| 93 | var publicKey: Self.PublicKey { get } |
| 94 | } |
| 95 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 96 | extension CryptoKit::HPKE { |
| 97 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 98 | public enum KEM : Swift::CaseIterable, Swift::Hashable, Swift::Sendable { |
| 99 | public static var allCases: [CryptoKit::HPKE.CryptoKit::KEM] { |
| 100 | get |
| 101 | } |
| 102 | case P256_HKDF_SHA256 |
| 103 | case P384_HKDF_SHA384 |
| 104 | case P521_HKDF_SHA512 |
| 105 | case Curve25519_HKDF_SHA256 |
| 106 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 107 | case XWingMLKEM768X25519 |
| 108 | public static func == (a: CryptoKit::HPKE.CryptoKit::KEM, b: CryptoKit::HPKE.CryptoKit::KEM) -> Swift::Bool |
| 109 | @available(macOS 14.0, iOS 17.0, tvOS 17.0, watchOS 10.0, macCatalyst 17.0, *) |
| 110 | public typealias AllCases = [CryptoKit::HPKE.CryptoKit::KEM] |
| 111 | public func hash(into hasher: inout Swift::Hasher) |
| 112 | public var hashValue: Swift::Int { |
| 113 | get |
| 114 | } |
| 115 | } |
| 116 | } |
| 117 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 118 | extension CryptoKit::HPKE { |
| 119 | public struct Ciphersuite : Swift::Sendable { |
| 120 | public static let P256_SHA256_AES_GCM_256: CryptoKit::HPKE.CryptoKit::Ciphersuite |
| 121 | public static let P384_SHA384_AES_GCM_256: CryptoKit::HPKE.CryptoKit::Ciphersuite |
| 122 | public static let P521_SHA512_AES_GCM_256: CryptoKit::HPKE.CryptoKit::Ciphersuite |
| 123 | public static let Curve25519_SHA256_ChachaPoly: CryptoKit::HPKE.CryptoKit::Ciphersuite |
| 124 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 125 | public static let XWingMLKEM768X25519_SHA256_AES_GCM_256: CryptoKit::HPKE.CryptoKit::Ciphersuite |
| 126 | public let kem: CryptoKit::HPKE.CryptoKit::KEM |
| 127 | public let kdf: CryptoKit::HPKE.CryptoKit::KDF |
| 128 | public let aead: CryptoKit::HPKE.CryptoKit::AEAD |
| 129 | public init(kem: CryptoKit::HPKE.CryptoKit::KEM, kdf: CryptoKit::HPKE.CryptoKit::KDF, aead: CryptoKit::HPKE.CryptoKit::AEAD) |
| 130 | } |
| 131 | } |
| 132 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 133 | public struct HMAC<H> : Swift::Sendable where H : CryptoKit::HashFunction { |
| 134 | public typealias Key = CryptoKit::SymmetricKey |
| 135 | public typealias MAC = CryptoKit::HashedAuthenticationCode<H> |
| 136 | public static func isValidAuthenticationCode(_ mac: CryptoKit::HMAC<H>.CryptoKit::MAC, authenticating bufferPointer: Swift::UnsafeRawBufferPointer, using key: CryptoKit::SymmetricKey) -> Swift::Bool |
| 137 | public init(key: CryptoKit::SymmetricKey) |
| 138 | public static func authenticationCode<D>(for data: D, using key: CryptoKit::SymmetricKey) -> CryptoKit::HMAC<H>.CryptoKit::MAC where D : Foundation::DataProtocol |
| 139 | @available(iOS 27.0, macOS 27.0, watchOS 27.0, tvOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 140 | public static func authenticationCode(for data: Swift::RawSpan, using key: CryptoKit::SymmetricKey) -> CryptoKit::HMAC<H>.CryptoKit::MAC |
| 141 | public static func isValidAuthenticationCode<D>(_ authenticationCode: CryptoKit::HMAC<H>.CryptoKit::MAC, authenticating authenticatedData: D, using key: CryptoKit::SymmetricKey) -> Swift::Bool where D : Foundation::DataProtocol |
| 142 | @available(iOS 13.2, macOS 10.15, watchOS 6.1, tvOS 13.2, macCatalyst 13.2, *) |
| 143 | public static func isValidAuthenticationCode<C, D>(_ authenticationCode: C, authenticating authenticatedData: D, using key: CryptoKit::SymmetricKey) -> Swift::Bool where C : Foundation::ContiguousBytes, D : Foundation::DataProtocol |
| 144 | public mutating func update<D>(data: D) where D : Foundation::DataProtocol |
| 145 | @available(iOS 27.0, macOS 27.0, watchOS 27.0, tvOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 146 | public mutating func update(bytes: Swift::RawSpan) |
| 147 | public func finalize() -> CryptoKit::HMAC<H>.CryptoKit::MAC |
| 148 | } |
| 149 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 150 | public struct HashedAuthenticationCode<H> : CryptoKit::MessageAuthenticationCode, Swift::Sendable where H : CryptoKit::HashFunction { |
| 151 | public var byteCount: Swift::Int { |
| 152 | get |
| 153 | } |
| 154 | public var description: Swift::String { |
| 155 | get |
| 156 | } |
| 157 | public func withUnsafeBytes<R>(_ body: (Swift::UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 158 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *) |
| 159 | public typealias Element = Swift::UInt8 |
| 160 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *) |
| 161 | public typealias Iterator = Swift::Array<Swift::UInt8>.Swift::Iterator |
| 162 | public func hash(into hasher: inout Swift::Hasher) |
| 163 | public var hashValue: Swift::Int { |
| 164 | get |
| 165 | } |
| 166 | } |
| 167 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 168 | extension CryptoKit::KEM { |
| 169 | public enum Errors : Swift::Error { |
| 170 | case publicKeyMismatchDuringInitialization |
| 171 | case invalidSeed |
| 172 | public static func == (a: CryptoKit::KEM.CryptoKit::Errors, b: CryptoKit::KEM.CryptoKit::Errors) -> Swift::Bool |
| 173 | public func hash(into hasher: inout Swift::Hasher) |
| 174 | public var hashValue: Swift::Int { |
| 175 | get |
| 176 | } |
| 177 | } |
| 169 | public struct CorecryptoCurveType { |
| 170 | } |
| 171 | @available(*, unavailable) |
| 172 | extension CryptoKit.CorecryptoCurveType : Swift.Sendable { |
| 173 | } |
| 174 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 175 | public enum P256 : Swift.Sendable { |
| 176 | } |
| 177 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 178 | public enum P384 : Swift.Sendable { |
| 179 | } |
| 180 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 181 | public enum P521 : Swift.Sendable { |
| 182 | } |
| 183 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 184 | extension CryptoKit.HMAC { |
| 185 | @usableFromInline |
| 186 | internal static func isValidAuthenticationCode<D>(_ authenticationCode: any Foundation.ContiguousBytes, authenticating authenticatedData: D, using key: CryptoKit.SymmetricKey) -> Swift.Bool where D : Foundation.DataProtocol |
| 187 | } |
| 188 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 189 | @preconcurrency public protocol Digest : Foundation.ContiguousBytes, Swift.CustomStringConvertible, Swift.Hashable, Swift.Sendable, Swift.Sequence where Self.Element == Swift.UInt8 { |
| 190 | static var byteCount: Swift.Int { get } |
| 191 | } |
| 192 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 193 | extension CryptoKit.Digest { |
| 194 | public func makeIterator() -> Swift.Array<Swift.UInt8>.Iterator |
| 195 | } |
| 196 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 197 | extension CryptoKit.Digest { |
| 198 | public static func == (lhs: Self, rhs: Self) -> Swift.Bool |
| 199 | public static func == <D>(lhs: Self, rhs: D) -> Swift.Bool where D : Foundation.DataProtocol |
| 200 | } |
| 201 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 202 | extension CryptoKit.Digest { |
| 203 | public var description: Swift.String { |
| 204 | get |
| 205 | } |
| 206 | } |
| 207 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 208 | extension CryptoKit.HPKE { |
| 209 | public enum AEAD : Swift.CaseIterable, Swift.Hashable, Swift.Sendable { |
| 210 | case AES_GCM_128 |
| 211 | case AES_GCM_256 |
| 212 | case chaChaPoly |
| 213 | case exportOnly |
| 214 | public static func == (a: CryptoKit.HPKE.AEAD, b: CryptoKit.HPKE.AEAD) -> Swift.Bool |
| 215 | @available(iOS 17.0, tvOS 17.0, watchOS 10.0, macOS 14.0, macCatalyst 17.0, *) |
| 216 | public typealias AllCases = [CryptoKit.HPKE.AEAD] |
| 217 | nonisolated public static var allCases: [CryptoKit.HPKE.AEAD] { |
| 218 | get |
| 219 | } |
| 220 | public func hash(into hasher: inout Swift.Hasher) |
| 221 | public var hashValue: Swift.Int { |
| 222 | get |
| 223 | } |
| 224 | } |
| 225 | } |
| 226 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 227 | extension CryptoKit.SecureEnclave.P256.Signing.PrivateKey { |
| 228 | public func signature<D>(for digest: D) throws -> CryptoKit.P256.Signing.ECDSASignature where D : CryptoKit.Digest |
| 229 | } |
| 230 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 231 | extension CryptoKit.SecureEnclave.P256.Signing.PrivateKey { |
| 232 | public func signature<D>(for data: D) throws -> CryptoKit.P256.Signing.ECDSASignature where D : Foundation.DataProtocol |
| 233 | } |
| 234 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 235 | @preconcurrency public protocol HPKEPublicKeySerialization : Swift.Sendable { |
| 236 | init<D>(_ serialization: D, kem: CryptoKit.HPKE.KEM) throws where D : Foundation.ContiguousBytes |
| 237 | func hpkeRepresentation(kem: CryptoKit.HPKE.KEM) throws -> Foundation.Data |
| 238 | } |
| 239 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 240 | @preconcurrency public protocol HPKEDiffieHellmanPublicKey : CryptoKit.HPKEPublicKeySerialization { |
| 241 | associatedtype EphemeralPrivateKey : CryptoKit.HPKEDiffieHellmanPrivateKeyGeneration where Self == Self.EphemeralPrivateKey.PublicKey |
| 242 | } |
| 243 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, *) |
| 244 | @preconcurrency public protocol HPKEKEMPublicKey : CryptoKit.HPKEPublicKeySerialization, CryptoKit.KEMPublicKey { |
| 245 | associatedtype EphemeralPrivateKey : CryptoKit.HPKEKEMPrivateKeyGeneration where Self == Self.EphemeralPrivateKey.PublicKey |
| 246 | } |
| 247 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 248 | @preconcurrency public protocol HPKEDiffieHellmanPrivateKey : CryptoKit.DiffieHellmanKeyAgreement where Self.PublicKey : CryptoKit.HPKEDiffieHellmanPublicKey { |
| 249 | } |
| 250 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, *) |
| 251 | @preconcurrency public protocol HPKEKEMPrivateKey : CryptoKit.KEMPrivateKey where Self.PublicKey : CryptoKit.HPKEKEMPublicKey { |
| 252 | } |
| 253 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 254 | @preconcurrency public protocol HPKEDiffieHellmanPrivateKeyGeneration : CryptoKit.HPKEDiffieHellmanPrivateKey { |
| 255 | init() |
| 256 | } |
| 257 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, *) |
| 258 | @preconcurrency public protocol HPKEKEMPrivateKeyGeneration : CryptoKit.HPKEKEMPrivateKey { |
| 259 | init() throws |
| 260 | } |
| 261 | extension CryptoKit.HPKE { |
| 262 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 263 | public enum DHKEM : Swift.Sendable { |
| 264 | } |
| 265 | } |
| 266 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 267 | extension CryptoKit.SecureEnclave.P256.KeyAgreement.PrivateKey : CryptoKit.DiffieHellmanKeyAgreement { |
| 268 | public func sharedSecretFromKeyAgreement(with publicKeyShare: CryptoKit.P256.KeyAgreement.PublicKey) throws -> CryptoKit.SharedSecret |
| 269 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, macCatalyst 13.0, *) |
| 270 | public typealias PublicKey = CryptoKit.P256.KeyAgreement.PublicKey |
| 271 | } |
| 272 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 273 | public struct HKDF<H> : Swift.Sendable where H : CryptoKit.HashFunction { |
| 274 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 275 | public static func deriveKey<Salt, Info>(inputKeyMaterial: CryptoKit.SymmetricKey, salt: Salt, info: Info, outputByteCount: Swift.Int) -> CryptoKit.SymmetricKey where Salt : Foundation.DataProtocol, Info : Foundation.DataProtocol |
| 276 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 277 | public static func deriveKey<Info>(inputKeyMaterial: CryptoKit.SymmetricKey, info: Info, outputByteCount: Swift.Int) -> CryptoKit.SymmetricKey where Info : Foundation.DataProtocol |
| 278 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 279 | public static func deriveKey<Salt>(inputKeyMaterial: CryptoKit.SymmetricKey, salt: Salt, outputByteCount: Swift.Int) -> CryptoKit.SymmetricKey where Salt : Foundation.DataProtocol |
| 280 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 281 | public static func deriveKey(inputKeyMaterial: CryptoKit.SymmetricKey, outputByteCount: Swift.Int) -> CryptoKit.SymmetricKey |
| 282 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 283 | public static func extract<Salt>(inputKeyMaterial: CryptoKit.SymmetricKey, salt: Salt?) -> CryptoKit.HashedAuthenticationCode<H> where Salt : Foundation.DataProtocol |
| 284 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 285 | public static func expand<PRK, Info>(pseudoRandomKey prk: PRK, info: Info?, outputByteCount: Swift.Int) -> CryptoKit.SymmetricKey where PRK : Foundation.ContiguousBytes, Info : Foundation.DataProtocol |
| 286 | } |
| 287 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 2.0, *) |
| 288 | public typealias SHA2_256 = CryptoKit.SHA256 |
| 289 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 290 | public struct SHA256 : Swift.Sendable { |
| 291 | @available(iOS 13.2, macOS 10.15, watchOS 6.1, tvOS 13.2, macCatalyst 13.2, *) |
| 292 | public static let blockByteCount: Swift.Int |
| 293 | public static let byteCount: Swift.Int |
| 294 | public typealias Digest = CryptoKit.SHA256Digest |
| 295 | public init() |
| 296 | public mutating func update(bufferPointer: Swift.UnsafeRawBufferPointer) |
| 297 | public func finalize() -> CryptoKit.SHA256.Digest |
| 298 | } |
| 299 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 2.0, *) |
| 300 | public typealias SHA2_384 = CryptoKit.SHA384 |
| 301 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 302 | public struct SHA384 : Swift.Sendable { |
| 303 | @available(iOS 13.2, macOS 10.15, watchOS 6.1, tvOS 13.2, macCatalyst 13.2, *) |
| 304 | public static let blockByteCount: Swift.Int |
| 305 | public static let byteCount: Swift.Int |
| 306 | public typealias Digest = CryptoKit.SHA384Digest |
| 307 | public init() |
| 308 | public mutating func update(bufferPointer: Swift.UnsafeRawBufferPointer) |
| 309 | public func finalize() -> CryptoKit.SHA384.Digest |
| 310 | } |
| 311 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 2.0, *) |
| 312 | public typealias SHA2_512 = CryptoKit.SHA512 |
| 313 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 314 | public struct SHA512 : Swift.Sendable { |
| 315 | @available(iOS 13.2, macOS 10.15, watchOS 6.1, tvOS 13.2, macCatalyst 13.2, *) |
| 316 | public static let blockByteCount: Swift.Int |
| 317 | public static let byteCount: Swift.Int |
| 318 | public typealias Digest = CryptoKit.SHA512Digest |
| 319 | public init() |
| 320 | public mutating func update(bufferPointer: Swift.UnsafeRawBufferPointer) |
| 321 | public func finalize() -> CryptoKit.SHA512.Digest |
| 322 | } |
| 323 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 324 | public enum Insecure : Swift.Sendable { |
| 325 | } |
| 326 | @available(iOS 15.0, macOS 12.0, watchOS 8.0, tvOS 15.0, macCatalyst 15.0, *) |
| 327 | extension CryptoKit.AES { |
| 328 | @available(iOS 15.0, macOS 12.0, watchOS 8.0, tvOS 15.0, macCatalyst 15.0, *) |
| 329 | public enum KeyWrap : Swift.Sendable { |
| 330 | @available(iOS 15.0, macOS 12.0, watchOS 8.0, tvOS 15.0, macCatalyst 15.0, *) |
| 331 | public static func wrap(_ keyToWrap: CryptoKit.SymmetricKey, using kek: CryptoKit.SymmetricKey) throws -> Foundation.Data |
| 332 | @available(iOS 15.0, macOS 12.0, watchOS 8.0, tvOS 15.0, macCatalyst 15.0, *) |
| 333 | public static func unwrap<WrappedKey>(_ wrappedKey: WrappedKey, using kek: CryptoKit.SymmetricKey) throws -> CryptoKit.SymmetricKey where WrappedKey : Foundation.DataProtocol |
| 334 | } |
| 335 | } |
| 336 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 337 | public enum ChaChaPoly : Swift.Sendable { |
| 338 | public static func seal<Plaintext, AuthenticatedData>(_ message: Plaintext, using key: CryptoKit.SymmetricKey, nonce: CryptoKit.ChaChaPoly.Nonce? = nil, authenticating authenticatedData: AuthenticatedData) throws -> CryptoKit.ChaChaPoly.SealedBox where Plaintext : Foundation.DataProtocol, AuthenticatedData : Foundation.DataProtocol |
| 339 | public static func seal<Plaintext>(_ message: Plaintext, using key: CryptoKit.SymmetricKey, nonce: CryptoKit.ChaChaPoly.Nonce? = nil) throws -> CryptoKit.ChaChaPoly.SealedBox where Plaintext : Foundation.DataProtocol |
| 340 | public static func open<AuthenticatedData>(_ sealedBox: CryptoKit.ChaChaPoly.SealedBox, using key: CryptoKit.SymmetricKey, authenticating authenticatedData: AuthenticatedData) throws -> Foundation.Data where AuthenticatedData : Foundation.DataProtocol |
| 341 | public static func open(_ sealedBox: CryptoKit.ChaChaPoly.SealedBox, using key: CryptoKit.SymmetricKey) throws -> Foundation.Data |
| 342 | } |
| 343 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 344 | extension CryptoKit.ChaChaPoly { |
| 345 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 346 | @frozen public struct SealedBox : Swift.Sendable { |
| 347 | public let combined: Foundation.Data |
| 348 | public var tag: Foundation.Data { |
| 349 | get |
| 350 | } |
| 351 | public var ciphertext: Foundation.Data { |
| 352 | get |
| 353 | } |
| 354 | public var nonce: CryptoKit.ChaChaPoly.Nonce { |
| 355 | get |
| 356 | } |
| 357 | @inlinable public init<D>(combined: D) throws where D : Foundation.DataProtocol { |
| 358 | |
| 359 | |
| 360 | let chachaPolyOverhead = 12 + 16 |
| 180 | public struct CorecryptoCurveType { |
| 181 | } |
| 182 | @available(*, unavailable) |
| 183 | extension CryptoKit::CorecryptoCurveType : Swift::Sendable { |
| 184 | } |
| 185 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 186 | public enum P256 : Swift::Sendable { |
| 187 | } |
| 188 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 189 | public enum P384 : Swift::Sendable { |
| 190 | } |
| 191 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 192 | public enum P521 : Swift::Sendable { |
| 193 | } |
| 194 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 195 | extension CryptoKit::HMAC { |
| 196 | @usableFromInline |
| 197 | internal static func isValidAuthenticationCode<D>(_ authenticationCode: any Foundation::ContiguousBytes, authenticating authenticatedData: D, using key: CryptoKit::SymmetricKey) -> Swift::Bool where D : Foundation::DataProtocol |
| 198 | } |
| 199 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 200 | @preconcurrency public protocol Digest : Foundation::ContiguousBytes, Swift::CustomStringConvertible, Swift::Hashable, Swift::Sendable, Swift::Sequence where Self.Element == Swift::UInt8 { |
| 201 | static var byteCount: Swift::Int { get } |
| 202 | } |
| 203 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 204 | extension CryptoKit::Digest { |
| 205 | public func makeIterator() -> Swift::Array<Swift::UInt8>.Swift::Iterator |
| 206 | } |
| 207 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 208 | extension CryptoKit::Digest { |
| 209 | public static func == (lhs: Self, rhs: Self) -> Swift::Bool |
| 210 | public static func == <D>(lhs: Self, rhs: D) -> Swift::Bool where D : Foundation::DataProtocol |
| 211 | } |
| 212 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 213 | extension CryptoKit::Digest { |
| 214 | public var description: Swift::String { |
| 215 | get |
| 216 | } |
| 217 | } |
| 218 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 219 | extension CryptoKit::HPKE { |
| 220 | public enum AEAD : Swift::CaseIterable, Swift::Hashable, Swift::Sendable { |
| 221 | case AES_GCM_128 |
| 222 | case AES_GCM_256 |
| 223 | case chaChaPoly |
| 224 | case exportOnly |
| 225 | public static func == (a: CryptoKit::HPKE.CryptoKit::AEAD, b: CryptoKit::HPKE.CryptoKit::AEAD) -> Swift::Bool |
| 226 | @available(macOS 14.0, iOS 17.0, tvOS 17.0, watchOS 10.0, macCatalyst 17.0, *) |
| 227 | public typealias AllCases = [CryptoKit::HPKE.CryptoKit::AEAD] |
| 228 | nonisolated public static var allCases: [CryptoKit::HPKE.CryptoKit::AEAD] { |
| 229 | get |
| 230 | } |
| 231 | public func hash(into hasher: inout Swift::Hasher) |
| 232 | public var hashValue: Swift::Int { |
| 233 | get |
| 234 | } |
| 235 | } |
| 236 | } |
| 237 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 238 | extension CryptoKit::SecureEnclave.CryptoKit::P256.CryptoKit::Signing.CryptoKit::PrivateKey { |
| 239 | public func signature<D>(for digest: D) throws -> CryptoKit::P256.CryptoKit::Signing.CryptoKit::ECDSASignature where D : CryptoKit::Digest |
| 240 | } |
| 241 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 242 | extension CryptoKit::SecureEnclave.CryptoKit::P256.CryptoKit::Signing.CryptoKit::PrivateKey { |
| 243 | public func signature<D>(for data: D) throws -> CryptoKit::P256.CryptoKit::Signing.CryptoKit::ECDSASignature where D : Foundation::DataProtocol |
| 244 | } |
| 245 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 246 | @preconcurrency public protocol HPKEPublicKeySerialization : Swift::Sendable { |
| 247 | init<D>(_ serialization: D, kem: CryptoKit::HPKE.CryptoKit::KEM) throws where D : Foundation::ContiguousBytes |
| 248 | func hpkeRepresentation(kem: CryptoKit::HPKE.CryptoKit::KEM) throws -> Foundation::Data |
| 249 | } |
| 250 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 251 | @preconcurrency public protocol HPKEDiffieHellmanPublicKey : CryptoKit::HPKEPublicKeySerialization { |
| 252 | associatedtype EphemeralPrivateKey : CryptoKit::HPKEDiffieHellmanPrivateKeyGeneration where Self == Self.EphemeralPrivateKey.PublicKey |
| 253 | } |
| 254 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 255 | @preconcurrency public protocol HPKEKEMPublicKey : CryptoKit::HPKEPublicKeySerialization, CryptoKit::KEMPublicKey { |
| 256 | associatedtype EphemeralPrivateKey : CryptoKit::HPKEKEMPrivateKeyGeneration where Self == Self.EphemeralPrivateKey.PublicKey |
| 257 | } |
| 258 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 259 | @preconcurrency public protocol HPKEDiffieHellmanPrivateKey : CryptoKit::DiffieHellmanKeyAgreement where Self.PublicKey : CryptoKit::HPKEDiffieHellmanPublicKey { |
| 260 | } |
| 261 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 262 | @preconcurrency public protocol HPKEKEMPrivateKey : CryptoKit::KEMPrivateKey where Self.PublicKey : CryptoKit::HPKEKEMPublicKey { |
| 263 | } |
| 264 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 265 | @preconcurrency public protocol HPKEDiffieHellmanPrivateKeyGeneration : CryptoKit::HPKEDiffieHellmanPrivateKey { |
| 266 | init() |
| 267 | } |
| 268 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 269 | @preconcurrency public protocol HPKEKEMPrivateKeyGeneration : CryptoKit::HPKEKEMPrivateKey { |
| 270 | init() throws |
| 271 | } |
| 272 | extension CryptoKit::HPKE { |
| 273 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 274 | public enum DHKEM : Swift::Sendable { |
| 275 | } |
| 276 | } |
| 277 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 278 | extension CryptoKit::SecureEnclave.CryptoKit::P256.CryptoKit::KeyAgreement.CryptoKit::PrivateKey : CryptoKit::DiffieHellmanKeyAgreement { |
| 279 | public func sharedSecretFromKeyAgreement(with publicKeyShare: CryptoKit::P256.CryptoKit::KeyAgreement.CryptoKit::PublicKey) throws -> CryptoKit::SharedSecret |
| 280 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *) |
| 281 | public typealias PublicKey = CryptoKit::P256.CryptoKit::KeyAgreement.CryptoKit::PublicKey |
| 282 | } |
| 283 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 284 | public struct HKDF<H> : Swift::Sendable where H : CryptoKit::HashFunction { |
| 285 | @available(iOS 27.0, macOS 27.0, watchOS 27.0, tvOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 286 | public static func deriveKey(inputKeyMaterial: CryptoKit::SymmetricKey, salt: Swift::RawSpan? = nil, info: Swift::RawSpan? = nil, output outputKey: inout Swift::OutputRawSpan) |
| 287 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 288 | public static func deriveKey<Salt, Info>(inputKeyMaterial: CryptoKit::SymmetricKey, salt: Salt, info: Info, outputByteCount: Swift::Int) -> CryptoKit::SymmetricKey where Salt : Foundation::DataProtocol, Info : Foundation::DataProtocol |
| 289 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 290 | public static func deriveKey<Info>(inputKeyMaterial: CryptoKit::SymmetricKey, info: Info, outputByteCount: Swift::Int) -> CryptoKit::SymmetricKey where Info : Foundation::DataProtocol |
| 291 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 292 | public static func deriveKey<Salt>(inputKeyMaterial: CryptoKit::SymmetricKey, salt: Salt, outputByteCount: Swift::Int) -> CryptoKit::SymmetricKey where Salt : Foundation::DataProtocol |
| 293 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 294 | public static func deriveKey(inputKeyMaterial: CryptoKit::SymmetricKey, outputByteCount: Swift::Int) -> CryptoKit::SymmetricKey |
| 295 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 296 | public static func extract<Salt>(inputKeyMaterial: CryptoKit::SymmetricKey, salt: Salt?) -> CryptoKit::HashedAuthenticationCode<H> where Salt : Foundation::DataProtocol |
| 297 | @available(iOS 27.0, macOS 27.0, watchOS 27.0, tvOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 298 | public static func extract(inputKeyMaterial: CryptoKit::SymmetricKey, salt: Swift::RawSpan?) -> CryptoKit::HashedAuthenticationCode<H> |
| 299 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 300 | public static func expand<PRK, Info>(pseudoRandomKey prk: PRK, info: Info?, outputByteCount: Swift::Int) -> CryptoKit::SymmetricKey where PRK : Foundation::ContiguousBytes, Info : Foundation::DataProtocol |
| 301 | @available(iOS 27.0, macOS 27.0, watchOS 27.0, tvOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 302 | public static func expand(pseudoRandomKey prk: Swift::RawSpan, info: Swift::RawSpan?, into output: inout Swift::OutputRawSpan) |
| 303 | } |
| 304 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 305 | public typealias SHA2_256 = CryptoKit::SHA256 |
| 306 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 307 | public struct SHA256 : Swift::Sendable { |
| 308 | @available(iOS 13.2, macOS 10.15, watchOS 6.1, tvOS 13.2, macCatalyst 13.2, *) |
| 309 | public static let blockByteCount: Swift::Int |
| 310 | public static let byteCount: Swift::Int |
| 311 | public typealias Digest = CryptoKit::SHA256Digest |
| 312 | public init() |
| 313 | public mutating func update(bufferPointer: Swift::UnsafeRawBufferPointer) |
| 314 | public func finalize() -> CryptoKit::SHA256.CryptoKit::Digest |
| 315 | } |
| 316 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 317 | public typealias SHA2_384 = CryptoKit::SHA384 |
| 318 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 319 | public struct SHA384 : Swift::Sendable { |
| 320 | @available(iOS 13.2, macOS 10.15, watchOS 6.1, tvOS 13.2, macCatalyst 13.2, *) |
| 321 | public static let blockByteCount: Swift::Int |
| 322 | public static let byteCount: Swift::Int |
| 323 | public typealias Digest = CryptoKit::SHA384Digest |
| 324 | public init() |
| 325 | public mutating func update(bufferPointer: Swift::UnsafeRawBufferPointer) |
| 326 | public func finalize() -> CryptoKit::SHA384.CryptoKit::Digest |
| 327 | } |
| 328 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 329 | public typealias SHA2_512 = CryptoKit::SHA512 |
| 330 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 331 | public struct SHA512 : Swift::Sendable { |
| 332 | @available(iOS 13.2, macOS 10.15, watchOS 6.1, tvOS 13.2, macCatalyst 13.2, *) |
| 333 | public static let blockByteCount: Swift::Int |
| 334 | public static let byteCount: Swift::Int |
| 335 | public typealias Digest = CryptoKit::SHA512Digest |
| 336 | public init() |
| 337 | public mutating func update(bufferPointer: Swift::UnsafeRawBufferPointer) |
| 338 | public func finalize() -> CryptoKit::SHA512.CryptoKit::Digest |
| 339 | } |
| 340 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 341 | public enum Insecure : Swift::Sendable { |
| 342 | } |
| 343 | @available(iOS 15.0, macOS 12.0, watchOS 8.0, tvOS 15.0, macCatalyst 15.0, *) |
| 344 | extension CryptoKit::AES { |
| 345 | @available(iOS 15.0, macOS 12.0, watchOS 8.0, tvOS 15.0, macCatalyst 15.0, *) |
| 346 | public enum KeyWrap : Swift::Sendable { |
| 347 | @available(iOS 15.0, macOS 12.0, watchOS 8.0, tvOS 15.0, macCatalyst 15.0, *) |
| 348 | public static func wrap(_ keyToWrap: CryptoKit::SymmetricKey, using kek: CryptoKit::SymmetricKey) throws -> Foundation::Data |
| 349 | @available(iOS 15.0, macOS 12.0, watchOS 8.0, tvOS 15.0, macCatalyst 15.0, *) |
| 350 | public static func unwrap<WrappedKey>(_ wrappedKey: WrappedKey, using kek: CryptoKit::SymmetricKey) throws -> CryptoKit::SymmetricKey where WrappedKey : Foundation::DataProtocol |
| 351 | } |
| 352 | } |
| 353 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 354 | public enum ChaChaPoly : Swift::Sendable { |
| 355 | public static func seal<Plaintext, AuthenticatedData>(_ message: Plaintext, using key: CryptoKit::SymmetricKey, nonce: CryptoKit::ChaChaPoly.CryptoKit::Nonce? = nil, authenticating authenticatedData: AuthenticatedData) throws -> CryptoKit::ChaChaPoly.CryptoKit::SealedBox where Plaintext : Foundation::DataProtocol, AuthenticatedData : Foundation::DataProtocol |
| 356 | public static func seal<Plaintext>(_ message: Plaintext, using key: CryptoKit::SymmetricKey, nonce: CryptoKit::ChaChaPoly.CryptoKit::Nonce? = nil) throws -> CryptoKit::ChaChaPoly.CryptoKit::SealedBox where Plaintext : Foundation::DataProtocol |
| 357 | @available(iOS 27.0, macOS 27.0, watchOS 27.0, tvOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 358 | public static func seal(inPlace message: inout Swift::MutableRawSpan, using key: CryptoKit::SymmetricKey, nonce: CryptoKit::ChaChaPoly.CryptoKit::Nonce, authenticating authenticatedData: Swift::RawSpan? = nil, tag: inout Swift::OutputRawSpan) throws |
| 359 | public static func open<AuthenticatedData>(_ sealedBox: CryptoKit::ChaChaPoly.CryptoKit::SealedBox, using key: CryptoKit::SymmetricKey, authenticating authenticatedData: AuthenticatedData) throws -> Foundation::Data where AuthenticatedData : Foundation::DataProtocol |
| 360 | public static func open(_ sealedBox: CryptoKit::ChaChaPoly.CryptoKit::SealedBox, using key: CryptoKit::SymmetricKey) throws -> Foundation::Data |
| 361 | @available(iOS 27.0, macOS 27.0, watchOS 27.0, tvOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 362 | public static func open(inPlace message: inout Swift::MutableRawSpan, using key: CryptoKit::SymmetricKey, nonce: CryptoKit::ChaChaPoly.CryptoKit::Nonce, authenticating authenticatedData: Swift::RawSpan? = nil, tag: Swift::RawSpan) throws |
| 363 | public static func open(inplace message: inout Swift::MutableRawSpan, using key: CryptoKit::SymmetricKey, nonce: Swift::RawSpan, tag: Swift::RawSpan, authenticating authenticatedData: Swift::RawSpan? = nil) throws |
| 364 | } |
| 365 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 366 | extension CryptoKit::ChaChaPoly { |
| 367 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 368 | @frozen public struct SealedBox : Swift::Sendable { |
| 369 | public let combined: Foundation::Data |
| 370 | public var tag: Foundation::Data { |
| 371 | get |
| 372 | } |
| 373 | public var ciphertext: Foundation::Data { |
| 374 | get |
| 375 | } |
| 376 | public var nonce: CryptoKit::ChaChaPoly.CryptoKit::Nonce { |
| 377 | get |
| 378 | } |
| 379 | @inlinable public init<D>(combined: D) throws where D : Foundation::DataProtocol { |
| 380 | |
| 381 | |
| 382 | let chachaPolyOverhead = 12 + 16 |
| 365 | |
| 366 | self.combined = Data(combined) |
| 367 | } |
| 368 | public init<C, T>(nonce: CryptoKit.ChaChaPoly.Nonce, ciphertext: C, tag: T) throws where C : Foundation.DataProtocol, T : Foundation.DataProtocol |
| 369 | } |
| 370 | } |
| 371 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 372 | public enum AES : Swift.Sendable { |
| 373 | } |
| 374 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 375 | public struct SymmetricKeySize : Swift.Sendable { |
| 376 | public let bitCount: Swift.Int |
| 377 | public static var bits128: CryptoKit.SymmetricKeySize { |
| 378 | get |
| 379 | } |
| 380 | public static var bits192: CryptoKit.SymmetricKeySize { |
| 381 | get |
| 382 | } |
| 383 | public static var bits256: CryptoKit.SymmetricKeySize { |
| 384 | get |
| 385 | } |
| 386 | public init(bitCount: Swift.Int) |
| 387 | } |
| 388 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 389 | public struct SymmetricKey : Foundation.ContiguousBytes, Swift.Sendable { |
| 390 | public func withUnsafeBytes<R>(_ body: (Swift.UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 391 | public init<D>(data: D) where D : Foundation.ContiguousBytes |
| 392 | public init(size: CryptoKit.SymmetricKeySize) |
| 393 | public var bitCount: Swift.Int { |
| 394 | get |
| 395 | } |
| 396 | } |
| 397 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 398 | extension CryptoKit.SymmetricKey : Swift.Equatable { |
| 399 | public static func == (lhs: CryptoKit.SymmetricKey, rhs: CryptoKit.SymmetricKey) -> Swift.Bool |
| 400 | } |
| 401 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 402 | @preconcurrency public protocol HashFunction : Swift.Sendable { |
| 403 | @available(iOS 13.2, macOS 10.15, watchOS 6.1, tvOS 13.2, macCatalyst 13.2, *) |
| 404 | static var blockByteCount: Swift.Int { get } |
| 405 | associatedtype Digest : CryptoKit.Digest |
| 406 | init() |
| 407 | mutating func update(bufferPointer: Swift.UnsafeRawBufferPointer) |
| 408 | func finalize() -> Self.Digest |
| 409 | } |
| 410 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 411 | extension CryptoKit.HashFunction { |
| 412 | @inlinable internal static func hash(bufferPointer: Swift.UnsafeRawBufferPointer) -> Self.Digest { |
| 413 | var hasher = Self() |
| 414 | hasher.update(bufferPointer: bufferPointer) |
| 415 | return hasher.finalize() |
| 416 | } |
| 417 | @inlinable public static func hash<D>(data: D) -> Self.Digest where D : Foundation.DataProtocol { |
| 418 | var hasher = Self() |
| 419 | hasher.update(data: data) |
| 420 | return hasher.finalize() |
| 421 | } |
| 422 | @inlinable public mutating func update<D>(data: D) where D : Foundation.DataProtocol { |
| 423 | data.regions.forEach { (regionData) in |
| 424 | regionData.withUnsafeBytes({ (dataPtr) in |
| 425 | self.update(bufferPointer: dataPtr) |
| 387 | |
| 388 | self.combined = Data(combined) |
| 389 | } |
| 390 | public init<C, T>(nonce: CryptoKit::ChaChaPoly.CryptoKit::Nonce, ciphertext: C, tag: T) throws where C : Foundation::DataProtocol, T : Foundation::DataProtocol |
| 391 | } |
| 392 | } |
| 393 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 394 | public enum AES : Swift::Sendable { |
| 395 | } |
| 396 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 397 | public struct SymmetricKeySize : Swift::Sendable { |
| 398 | public let bitCount: Swift::Int |
| 399 | public static var bits128: CryptoKit::SymmetricKeySize { |
| 400 | get |
| 401 | } |
| 402 | public static var bits192: CryptoKit::SymmetricKeySize { |
| 403 | get |
| 404 | } |
| 405 | public static var bits256: CryptoKit::SymmetricKeySize { |
| 406 | get |
| 407 | } |
| 408 | public init(bitCount: Swift::Int) |
| 409 | } |
| 410 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 411 | public struct SymmetricKey : Foundation::ContiguousBytes, Swift::Sendable { |
| 412 | public func withUnsafeBytes<R>(_ body: (Swift::UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 413 | #if compiler(>=5.3) && $Lifetimes |
| 414 | @available(iOS 27.0, macOS 27.0, watchOS 27.0, tvOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 415 | public var bytes: Swift::RawSpan { |
| 416 | get |
| 417 | } |
| 418 | #else |
| 419 | @available(iOS 27.0, macOS 27.0, watchOS 27.0, tvOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 420 | public var bytes: Swift::RawSpan { |
| 421 | get |
| 422 | } |
| 423 | #endif |
| 424 | public init<D>(data: D) where D : Foundation::ContiguousBytes |
| 425 | @export(implementation) public init(copying bytes: Swift::RawSpan) { |
| 426 | self = bytes.withUnsafeBytes { SymmetricKey(data: $0) } |
| 427 | } |
| 428 | #if compiler(>=5.3) && $Lifetimes |
| 429 | @available(iOS 27.0, macOS 27.0, watchOS 27.0, tvOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 430 | public init(copyingWithZeroing bytes: inout Swift::MutableRawSpan) |
| 431 | #else |
| 432 | @available(iOS 27.0, macOS 27.0, watchOS 27.0, tvOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 433 | public init(copyingWithZeroing bytes: inout Swift::MutableRawSpan) |
| 434 | #endif |
| 435 | public init(size: CryptoKit::SymmetricKeySize) |
| 436 | @available(iOS 27.0, macOS 27.0, watchOS 27.0, tvOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 437 | public init<E>(size: CryptoKit::SymmetricKeySize, initializingWith callback: (inout Swift::OutputRawSpan) throws(E) -> Swift::Void) throws(E) where E : Swift::Error |
| 438 | public var bitCount: Swift::Int { |
| 439 | get |
| 440 | } |
| 441 | } |
| 442 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 443 | extension CryptoKit::SymmetricKey : Swift::Equatable { |
| 444 | public static func == (lhs: CryptoKit::SymmetricKey, rhs: CryptoKit::SymmetricKey) -> Swift::Bool |
| 445 | } |
| 446 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 447 | @preconcurrency public protocol HashFunction : Swift::Sendable { |
| 448 | @available(iOS 13.2, macOS 10.15, watchOS 6.1, tvOS 13.2, macCatalyst 13.2, *) |
| 449 | static var blockByteCount: Swift::Int { get } |
| 450 | associatedtype Digest : CryptoKit::Digest |
| 451 | init() |
| 452 | mutating func update(bufferPointer: Swift::UnsafeRawBufferPointer) |
| 453 | func finalize() -> Self.Digest |
| 454 | } |
| 455 | extension CryptoKit::HashFunction { |
| 456 | @export(implementation) public mutating func update(bytes: Swift::RawSpan) { |
| 457 | bytes.withUnsafeBytes { |
| 458 | self.update(bufferPointer: $0) |
| 459 | } |
| 460 | } |
| 461 | } |
| 462 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 463 | extension CryptoKit::HashFunction { |
| 464 | @inlinable internal static func hash(bufferPointer: Swift::UnsafeRawBufferPointer) -> Self.Digest { |
| 465 | var hasher = Self() |
| 466 | hasher.update(bufferPointer: bufferPointer) |
| 467 | return hasher.finalize() |
| 468 | } |
| 469 | @export(implementation) public static func hash(bytes: Swift::RawSpan) -> Self.Digest { |
| 470 | var hasher = Self() |
| 471 | hasher.update(bytes: bytes) |
| 472 | return hasher.finalize() |
| 473 | } |
| 474 | @inlinable public static func hash<D>(data: D) -> Self.Digest where D : Foundation::DataProtocol { |
| 475 | var hasher = Self() |
| 476 | hasher.update(data: data) |
| 477 | return hasher.finalize() |
| 478 | } |
| 479 | @inlinable public mutating func update<D>(data: D) where D : Foundation::DataProtocol { |
| 480 | data.regions.forEach { (regionData) in |
| 481 | regionData.withUnsafeBytes({ (dataPtr) in |
| 482 | self.update(bufferPointer: dataPtr) |
| 428 | } |
| 429 | } |
| 430 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 431 | extension CryptoKit.AES { |
| 432 | public enum GCM : Swift.Sendable { |
| 433 | public static func seal<Plaintext, AuthenticatedData>(_ message: Plaintext, using key: CryptoKit.SymmetricKey, nonce: CryptoKit.AES.GCM.Nonce? = nil, authenticating authenticatedData: AuthenticatedData) throws -> CryptoKit.AES.GCM.SealedBox where Plaintext : Foundation.DataProtocol, AuthenticatedData : Foundation.DataProtocol |
| 434 | public static func seal<Plaintext>(_ message: Plaintext, using key: CryptoKit.SymmetricKey, nonce: CryptoKit.AES.GCM.Nonce? = nil) throws -> CryptoKit.AES.GCM.SealedBox where Plaintext : Foundation.DataProtocol |
| 435 | public static func open<AuthenticatedData>(_ sealedBox: CryptoKit.AES.GCM.SealedBox, using key: CryptoKit.SymmetricKey, authenticating authenticatedData: AuthenticatedData) throws -> Foundation.Data where AuthenticatedData : Foundation.DataProtocol |
| 436 | public static func open(_ sealedBox: CryptoKit.AES.GCM.SealedBox, using key: CryptoKit.SymmetricKey) throws -> Foundation.Data |
| 437 | } |
| 438 | } |
| 439 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 440 | extension CryptoKit.AES.GCM { |
| 441 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 442 | public struct SealedBox : Swift.Sendable { |
| 443 | public var tag: Foundation.Data { |
| 444 | get |
| 445 | } |
| 446 | public var ciphertext: Foundation.Data { |
| 447 | get |
| 448 | } |
| 449 | public var nonce: CryptoKit.AES.GCM.Nonce { |
| 450 | get |
| 451 | } |
| 452 | public var combined: Foundation.Data? { |
| 453 | get |
| 454 | } |
| 455 | @usableFromInline |
| 456 | internal init(combined: Foundation.Data) |
| 457 | @inlinable public init<D>(combined: D) throws where D : Foundation.DataProtocol { |
| 458 | |
| 459 | |
| 460 | let aesGCMOverhead = 12 + 16 |
| 485 | } |
| 486 | } |
| 487 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 488 | extension CryptoKit::AES { |
| 489 | public enum GCM : Swift::Sendable { |
| 490 | public static func seal<Plaintext, AuthenticatedData>(_ message: Plaintext, using key: CryptoKit::SymmetricKey, nonce: CryptoKit::AES.CryptoKit::GCM.CryptoKit::Nonce? = nil, authenticating authenticatedData: AuthenticatedData) throws -> CryptoKit::AES.CryptoKit::GCM.CryptoKit::SealedBox where Plaintext : Foundation::DataProtocol, AuthenticatedData : Foundation::DataProtocol |
| 491 | public static func seal<Plaintext>(_ message: Plaintext, using key: CryptoKit::SymmetricKey, nonce: CryptoKit::AES.CryptoKit::GCM.CryptoKit::Nonce? = nil) throws -> CryptoKit::AES.CryptoKit::GCM.CryptoKit::SealedBox where Plaintext : Foundation::DataProtocol |
| 492 | @available(iOS 27.0, macOS 27.0, watchOS 27.0, tvOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 493 | public static func seal(inPlace message: inout Swift::MutableRawSpan, using key: CryptoKit::SymmetricKey, nonce: CryptoKit::AES.CryptoKit::GCM.CryptoKit::Nonce, authenticating authenticatedData: Swift::RawSpan? = nil, tag: inout Swift::OutputRawSpan) throws |
| 494 | public static func open<AuthenticatedData>(_ sealedBox: CryptoKit::AES.CryptoKit::GCM.CryptoKit::SealedBox, using key: CryptoKit::SymmetricKey, authenticating authenticatedData: AuthenticatedData) throws -> Foundation::Data where AuthenticatedData : Foundation::DataProtocol |
| 495 | public static func open(_ sealedBox: CryptoKit::AES.CryptoKit::GCM.CryptoKit::SealedBox, using key: CryptoKit::SymmetricKey) throws -> Foundation::Data |
| 496 | @available(iOS 27.0, macOS 27.0, watchOS 27.0, tvOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 497 | public static func open(inPlace message: inout Swift::MutableRawSpan, using key: CryptoKit::SymmetricKey, nonce: CryptoKit::AES.CryptoKit::GCM.CryptoKit::Nonce, authenticating authenticatedData: Swift::RawSpan? = nil, tag: Swift::RawSpan) throws |
| 498 | } |
| 499 | } |
| 500 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 501 | extension CryptoKit::AES.CryptoKit::GCM { |
| 502 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 503 | public struct SealedBox : Swift::Sendable { |
| 504 | public var tag: Foundation::Data { |
| 505 | get |
| 506 | } |
| 507 | public var ciphertext: Foundation::Data { |
| 508 | get |
| 509 | } |
| 510 | public var nonce: CryptoKit::AES.CryptoKit::GCM.CryptoKit::Nonce { |
| 511 | get |
| 512 | } |
| 513 | public var combined: Foundation::Data? { |
| 514 | get |
| 515 | } |
| 516 | @usableFromInline |
| 517 | internal init(combined: Foundation::Data) |
| 518 | @inlinable public init<D>(combined: D) throws where D : Foundation::DataProtocol { |
| 519 | |
| 520 | |
| 521 | let aesGCMOverhead = 12 + 16 |
| 465 | |
| 466 | self.init(combined: Data(combined)) |
| 467 | } |
| 468 | public init<C, T>(nonce: CryptoKit.AES.GCM.Nonce, ciphertext: C, tag: T) throws where C : Foundation.DataProtocol, T : Foundation.DataProtocol |
| 469 | } |
| 470 | } |
| 471 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 472 | @preconcurrency public protocol DiffieHellmanKeyAgreement : Swift.Sendable { |
| 473 | associatedtype PublicKey : Swift.Sendable |
| 474 | var publicKey: Self.PublicKey { get } |
| 475 | func sharedSecretFromKeyAgreement(with publicKeyShare: Self.PublicKey) throws -> CryptoKit.SharedSecret |
| 476 | } |
| 477 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 478 | public struct SharedSecret : Foundation.ContiguousBytes, Swift.Sendable { |
| 479 | public func withUnsafeBytes<R>(_ body: (Swift.UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 480 | public func x963DerivedSymmetricKey<H, SI>(using hashFunction: H.Type, sharedInfo: SI, outputByteCount: Swift.Int) -> CryptoKit.SymmetricKey where H : CryptoKit.HashFunction, SI : Foundation.DataProtocol |
| 481 | public func hkdfDerivedSymmetricKey<H, Salt, SI>(using hashFunction: H.Type, salt: Salt, sharedInfo: SI, outputByteCount: Swift.Int) -> CryptoKit.SymmetricKey where H : CryptoKit.HashFunction, Salt : Foundation.DataProtocol, SI : Foundation.DataProtocol |
| 482 | } |
| 483 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 484 | extension CryptoKit.SharedSecret : Swift.Hashable { |
| 485 | public func hash(into hasher: inout Swift.Hasher) |
| 486 | public var hashValue: Swift.Int { |
| 487 | get |
| 488 | } |
| 489 | } |
| 490 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 491 | extension CryptoKit.SharedSecret : Swift.Equatable { |
| 492 | public static func == (lhs: CryptoKit.SharedSecret, rhs: CryptoKit.SharedSecret) -> Swift.Bool |
| 493 | public static func == <D>(lhs: CryptoKit.SharedSecret, rhs: D) -> Swift.Bool where D : Foundation.DataProtocol |
| 494 | } |
| 495 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 496 | extension CryptoKit.SharedSecret : Swift.CustomStringConvertible { |
| 497 | public var description: Swift.String { |
| 498 | get |
| 499 | } |
| 500 | } |
| 501 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 502 | extension CryptoKit.Insecure { |
| 503 | public struct SHA1 : Swift.Sendable { |
| 504 | @available(iOS 13.2, macOS 10.15, watchOS 6.1, tvOS 13.2, macCatalyst 13.2, *) |
| 505 | public static let blockByteCount: Swift.Int |
| 506 | public static let byteCount: Swift.Int |
| 507 | public typealias Digest = CryptoKit.Insecure.SHA1Digest |
| 508 | public init() |
| 509 | public mutating func update(bufferPointer: Swift.UnsafeRawBufferPointer) |
| 510 | public func finalize() -> CryptoKit.Insecure.SHA1.Digest |
| 511 | } |
| 512 | public struct MD5 : Swift.Sendable { |
| 513 | @available(iOS 13.2, macOS 10.15, watchOS 6.1, tvOS 13.2, macCatalyst 13.2, *) |
| 514 | public static let blockByteCount: Swift.Int |
| 515 | public static let byteCount: Swift.Int |
| 516 | public typealias Digest = CryptoKit.Insecure.MD5Digest |
| 517 | public init() |
| 518 | public mutating func update(bufferPointer: Swift.UnsafeRawBufferPointer) |
| 519 | public func finalize() -> CryptoKit.Insecure.MD5.Digest |
| 520 | } |
| 521 | } |
| 522 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 523 | extension CryptoKit.Curve25519.KeyAgreement.PrivateKey : CryptoKit.HPKEDiffieHellmanPrivateKeyGeneration { |
| 524 | } |
| 525 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 526 | extension CryptoKit.Curve25519.KeyAgreement.PublicKey : CryptoKit.HPKEDiffieHellmanPublicKey { |
| 527 | public typealias EphemeralPrivateKey = CryptoKit.Curve25519.KeyAgreement.PrivateKey |
| 528 | public init<D>(_ serialization: D, kem: CryptoKit.HPKE.KEM) throws where D : Foundation.ContiguousBytes |
| 529 | public func hpkeRepresentation(kem: CryptoKit.HPKE.KEM) throws -> Foundation.Data |
| 530 | public typealias HPKEEphemeralPrivateKey = CryptoKit.Curve25519.KeyAgreement.PrivateKey |
| 531 | } |
| 532 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 533 | @preconcurrency public protocol MessageAuthenticationCode : Foundation.ContiguousBytes, Swift.CustomStringConvertible, Swift.Hashable, Swift.Sendable, Swift.Sequence where Self.Element == Swift.UInt8 { |
| 534 | var byteCount: Swift.Int { get } |
| 535 | } |
| 536 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 537 | extension CryptoKit.MessageAuthenticationCode { |
| 538 | public static func == (lhs: Self, rhs: Self) -> Swift.Bool |
| 539 | public static func == <D>(lhs: Self, rhs: D) -> Swift.Bool where D : Foundation.DataProtocol |
| 540 | public func makeIterator() -> Swift.Array<Swift.UInt8>.Iterator |
| 541 | public var description: Swift.String { |
| 542 | get |
| 543 | } |
| 544 | } |
| 545 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 546 | public enum CryptoKitError : Swift.Error { |
| 547 | case incorrectKeySize |
| 548 | case incorrectParameterSize |
| 549 | case authenticationFailure |
| 550 | case underlyingCoreCryptoError(error: Swift.Int32) |
| 551 | @available(iOS 15.0, macOS 12.0, watchOS 8.0, tvOS 15.0, macCatalyst 15.0, *) |
| 552 | case wrapFailure |
| 553 | @available(iOS 15.0, macOS 12.0, watchOS 8.0, tvOS 15.0, macCatalyst 15.0, *) |
| 526 | |
| 527 | self.init(combined: Data(combined)) |
| 528 | } |
| 529 | public init<C, T>(nonce: CryptoKit::AES.CryptoKit::GCM.CryptoKit::Nonce, ciphertext: C, tag: T) throws where C : Foundation::DataProtocol, T : Foundation::DataProtocol |
| 530 | } |
| 531 | } |
| 532 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 533 | @preconcurrency public protocol DiffieHellmanKeyAgreement : Swift::Sendable { |
| 534 | associatedtype PublicKey : Swift::Sendable |
| 535 | var publicKey: Self.PublicKey { get } |
| 536 | func sharedSecretFromKeyAgreement(with publicKeyShare: Self.PublicKey) throws -> CryptoKit::SharedSecret |
| 537 | } |
| 538 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 539 | public struct SharedSecret : Foundation::ContiguousBytes, Swift::Sendable { |
| 540 | public func withUnsafeBytes<R>(_ body: (Swift::UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 541 | public func x963DerivedSymmetricKey<H, SI>(using hashFunction: H.Type, sharedInfo: SI, outputByteCount: Swift::Int) -> CryptoKit::SymmetricKey where H : CryptoKit::HashFunction, SI : Foundation::DataProtocol |
| 542 | public func hkdfDerivedSymmetricKey<H, Salt, SI>(using hashFunction: H.Type, salt: Salt, sharedInfo: SI, outputByteCount: Swift::Int) -> CryptoKit::SymmetricKey where H : CryptoKit::HashFunction, Salt : Foundation::DataProtocol, SI : Foundation::DataProtocol |
| 543 | } |
| 544 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 545 | extension CryptoKit::SharedSecret : Swift::Hashable { |
| 546 | public func hash(into hasher: inout Swift::Hasher) |
| 547 | public var hashValue: Swift::Int { |
| 548 | get |
| 549 | } |
| 550 | } |
| 551 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 552 | extension CryptoKit::SharedSecret : Swift::Equatable { |
| 553 | public static func == (lhs: CryptoKit::SharedSecret, rhs: CryptoKit::SharedSecret) -> Swift::Bool |
| 554 | public static func == <D>(lhs: CryptoKit::SharedSecret, rhs: D) -> Swift::Bool where D : Foundation::DataProtocol |
| 555 | } |
| 556 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 557 | extension CryptoKit::SharedSecret : Swift::CustomStringConvertible { |
| 558 | public var description: Swift::String { |
| 559 | get |
| 560 | } |
| 561 | } |
| 562 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 563 | extension CryptoKit::Insecure { |
| 564 | public struct SHA1 : Swift::Sendable { |
| 565 | @available(iOS 13.2, macOS 10.15, watchOS 6.1, tvOS 13.2, macCatalyst 13.2, *) |
| 566 | public static let blockByteCount: Swift::Int |
| 567 | public static let byteCount: Swift::Int |
| 568 | public typealias Digest = CryptoKit::Insecure.CryptoKit::SHA1Digest |
| 569 | public init() |
| 570 | public mutating func update(bufferPointer: Swift::UnsafeRawBufferPointer) |
| 571 | public func finalize() -> CryptoKit::Insecure.CryptoKit::SHA1.CryptoKit::Digest |
| 572 | } |
| 573 | public struct MD5 : Swift::Sendable { |
| 574 | @available(iOS 13.2, macOS 10.15, watchOS 6.1, tvOS 13.2, macCatalyst 13.2, *) |
| 575 | public static let blockByteCount: Swift::Int |
| 576 | public static let byteCount: Swift::Int |
| 577 | public typealias Digest = CryptoKit::Insecure.CryptoKit::MD5Digest |
| 578 | public init() |
| 579 | public mutating func update(bufferPointer: Swift::UnsafeRawBufferPointer) |
| 580 | public func finalize() -> CryptoKit::Insecure.CryptoKit::MD5.CryptoKit::Digest |
| 581 | } |
| 582 | } |
| 583 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 584 | extension CryptoKit::Curve25519.CryptoKit::KeyAgreement.CryptoKit::PrivateKey : CryptoKit::HPKEDiffieHellmanPrivateKeyGeneration { |
| 585 | } |
| 586 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 587 | extension CryptoKit::Curve25519.CryptoKit::KeyAgreement.CryptoKit::PublicKey : CryptoKit::HPKEDiffieHellmanPublicKey { |
| 588 | public typealias EphemeralPrivateKey = CryptoKit::Curve25519.CryptoKit::KeyAgreement.CryptoKit::PrivateKey |
| 589 | public init<D>(_ serialization: D, kem: CryptoKit::HPKE.CryptoKit::KEM) throws where D : Foundation::ContiguousBytes |
| 590 | public func hpkeRepresentation(kem: CryptoKit::HPKE.CryptoKit::KEM) throws -> Foundation::Data |
| 591 | public typealias HPKEEphemeralPrivateKey = CryptoKit::Curve25519.CryptoKit::KeyAgreement.CryptoKit::PrivateKey |
| 592 | } |
| 593 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 594 | @preconcurrency public protocol MessageAuthenticationCode : Foundation::ContiguousBytes, Swift::CustomStringConvertible, Swift::Hashable, Swift::Sendable, Swift::Sequence where Self.Element == Swift::UInt8 { |
| 595 | var byteCount: Swift::Int { get } |
| 596 | } |
| 597 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 598 | extension CryptoKit::MessageAuthenticationCode { |
| 599 | public static func == (lhs: Self, rhs: Self) -> Swift::Bool |
| 600 | public static func == <D>(lhs: Self, rhs: D) -> Swift::Bool where D : Foundation::DataProtocol |
| 601 | public func makeIterator() -> Swift::Array<Swift::UInt8>.Swift::Iterator |
| 602 | public var description: Swift::String { |
| 603 | get |
| 604 | } |
| 605 | } |
| 606 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 607 | public enum CryptoKitError : Swift::Error { |
| 608 | case incorrectKeySize |
| 609 | case incorrectParameterSize |
| 610 | case authenticationFailure |
| 611 | case underlyingCoreCryptoError(error: Swift::Int32) |
| 612 | @available(iOS 15.0, macOS 12.0, watchOS 8.0, tvOS 15.0, macCatalyst 15.0, *) |
| 613 | case wrapFailure |
| 614 | @available(iOS 15.0, macOS 12.0, watchOS 8.0, tvOS 15.0, macCatalyst 15.0, *) |
| 556 | case invalidParameter |
| 557 | } |
| 558 | @available(iOS 17.4, macOS 14.4, watchOS 10.4, tvOS 17.4, macCatalyst 17.4, *) |
| 559 | extension CryptoKit.CryptoKitError : Swift.Equatable, Swift.Hashable { |
| 560 | public static func == (a: CryptoKit.CryptoKitError, b: CryptoKit.CryptoKitError) -> Swift.Bool |
| 561 | public func hash(into hasher: inout Swift.Hasher) |
| 562 | public var hashValue: Swift.Int { |
| 563 | get |
| 564 | } |
| 565 | } |
| 566 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 567 | public enum CryptoKitASN1Error : Swift.Equatable, Swift.Error, Swift.Hashable { |
| 568 | case invalidFieldIdentifier |
| 569 | case unexpectedFieldType |
| 570 | case invalidObjectIdentifier |
| 617 | case invalidParameter |
| 618 | } |
| 619 | @available(iOS 17.4, macOS 14.4, watchOS 10.4, tvOS 17.4, macCatalyst 17.4, *) |
| 620 | extension CryptoKit::CryptoKitError : Swift::Equatable, Swift::Hashable { |
| 621 | public static func == (a: CryptoKit::CryptoKitError, b: CryptoKit::CryptoKitError) -> Swift::Bool |
| 622 | public func hash(into hasher: inout Swift::Hasher) |
| 623 | public var hashValue: Swift::Int { |
| 624 | get |
| 625 | } |
| 626 | } |
| 627 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 628 | public enum CryptoKitASN1Error : Swift::Equatable, Swift::Error, Swift::Hashable { |
| 629 | case invalidFieldIdentifier |
| 630 | case unexpectedFieldType |
| 631 | case invalidObjectIdentifier |
| 573 | case truncatedASN1Field |
| 574 | case unsupportedFieldLength |
| 575 | case invalidPEMDocument |
| 576 | public static func == (a: CryptoKit.CryptoKitASN1Error, b: CryptoKit.CryptoKitASN1Error) -> Swift.Bool |
| 577 | public func hash(into hasher: inout Swift.Hasher) |
| 578 | public var hashValue: Swift.Int { |
| 579 | get |
| 580 | } |
| 581 | } |
| 582 | public typealias CryptoKitMetaError = any Swift.Error |
| 583 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 584 | extension CryptoKit.Curve25519 { |
| 585 | public enum KeyAgreement : Swift.Sendable { |
| 586 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 587 | public struct PublicKey : Swift.Sendable { |
| 588 | public init<D>(rawRepresentation: D) throws where D : Foundation.ContiguousBytes |
| 589 | public var rawRepresentation: Foundation.Data { |
| 590 | get |
| 591 | } |
| 592 | } |
| 593 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 594 | public struct PrivateKey : CryptoKit.DiffieHellmanKeyAgreement, Swift.Sendable { |
| 595 | public init() |
| 596 | public var publicKey: CryptoKit.Curve25519.KeyAgreement.PublicKey { |
| 597 | get |
| 598 | } |
| 599 | public init<D>(rawRepresentation: D) throws where D : Foundation.ContiguousBytes |
| 600 | public func sharedSecretFromKeyAgreement(with publicKeyShare: CryptoKit.Curve25519.KeyAgreement.PublicKey) throws -> CryptoKit.SharedSecret |
| 601 | public var rawRepresentation: Foundation.Data { |
| 602 | get |
| 603 | } |
| 604 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, macCatalyst 13.0, *) |
| 605 | public typealias PublicKey = CryptoKit.Curve25519.KeyAgreement.PublicKey |
| 606 | } |
| 607 | } |
| 608 | } |
| 609 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 610 | public enum HPKE : Swift.Sendable { |
| 611 | } |
| 612 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 613 | extension CryptoKit.HPKE { |
| 614 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 615 | public struct Sender : Swift.Sendable { |
| 616 | public let encapsulatedKey: Foundation.Data |
| 617 | public func exportSecret<Context>(context: Context, outputByteCount: Swift.Int) throws -> CryptoKit.SymmetricKey where Context : Foundation.DataProtocol |
| 618 | public init<PK>(recipientKey: PK, ciphersuite: CryptoKit.HPKE.Ciphersuite, info: Foundation.Data) throws where PK : CryptoKit.HPKEDiffieHellmanPublicKey |
| 619 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, *) |
| 620 | public init<PK>(recipientKey: PK, ciphersuite: CryptoKit.HPKE.Ciphersuite, info: Foundation.Data) throws where PK : CryptoKit.HPKEKEMPublicKey |
| 621 | public init<PK>(recipientKey: PK, ciphersuite: CryptoKit.HPKE.Ciphersuite, info: Foundation.Data, presharedKey psk: CryptoKit.SymmetricKey, presharedKeyIdentifier pskID: Foundation.Data) throws where PK : CryptoKit.HPKEDiffieHellmanPublicKey |
| 622 | public init<SK>(recipientKey: SK.PublicKey, ciphersuite: CryptoKit.HPKE.Ciphersuite, info: Foundation.Data, authenticatedBy authenticationKey: SK) throws where SK : CryptoKit.HPKEDiffieHellmanPrivateKey |
| 623 | public init<SK>(recipientKey: SK.PublicKey, ciphersuite: CryptoKit.HPKE.Ciphersuite, info: Foundation.Data, authenticatedBy authenticationKey: SK, presharedKey psk: CryptoKit.SymmetricKey, presharedKeyIdentifier pskID: Foundation.Data) throws where SK : CryptoKit.HPKEDiffieHellmanPrivateKey |
| 624 | public mutating func seal<M, AD>(_ msg: M, authenticating aad: AD) throws -> Foundation.Data where M : Foundation.DataProtocol, AD : Foundation.DataProtocol |
| 625 | public mutating func seal<M>(_ msg: M) throws -> Foundation.Data where M : Foundation.DataProtocol |
| 626 | } |
| 627 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 628 | public struct Recipient : Swift.Sendable { |
| 629 | public func exportSecret<Context>(context: Context, outputByteCount: Swift.Int) throws -> CryptoKit.SymmetricKey where Context : Foundation.DataProtocol |
| 630 | public init<SK>(privateKey: SK, ciphersuite: CryptoKit.HPKE.Ciphersuite, info: Foundation.Data, encapsulatedKey: Foundation.Data) throws where SK : CryptoKit.HPKEDiffieHellmanPrivateKey |
| 631 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, *) |
| 632 | public init<SK>(privateKey: SK, ciphersuite: CryptoKit.HPKE.Ciphersuite, info: Foundation.Data, encapsulatedKey: Foundation.Data) throws where SK : CryptoKit.HPKEKEMPrivateKey |
| 633 | public init<SK>(privateKey: SK, ciphersuite: CryptoKit.HPKE.Ciphersuite, info: Foundation.Data, encapsulatedKey: Foundation.Data, presharedKey psk: CryptoKit.SymmetricKey, presharedKeyIdentifier pskID: Foundation.Data) throws where SK : CryptoKit.HPKEDiffieHellmanPrivateKey |
| 634 | public init<SK>(privateKey: SK, ciphersuite: CryptoKit.HPKE.Ciphersuite, info: Foundation.Data, encapsulatedKey: Foundation.Data, authenticatedBy authenticationKey: SK.PublicKey) throws where SK : CryptoKit.HPKEDiffieHellmanPrivateKey |
| 635 | public init<SK>(privateKey: SK, ciphersuite: CryptoKit.HPKE.Ciphersuite, info: Foundation.Data, encapsulatedKey: Foundation.Data, authenticatedBy authenticationKey: SK.PublicKey, presharedKey psk: CryptoKit.SymmetricKey, presharedKeyIdentifier pskID: Foundation.Data) throws where SK : CryptoKit.HPKEDiffieHellmanPrivateKey |
| 636 | public mutating func open<C, AD>(_ ciphertext: C, authenticating aad: AD) throws -> Foundation.Data where C : Foundation.DataProtocol, AD : Foundation.DataProtocol |
| 637 | public mutating func open<C>(_ ciphertext: C) throws -> Foundation.Data where C : Foundation.DataProtocol |
| 638 | } |
| 639 | } |
| 640 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 641 | extension CryptoKit.SecureEnclave.P256.KeyAgreement.PrivateKey : CryptoKit.HPKEDiffieHellmanPrivateKey { |
| 642 | } |
| 643 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 644 | extension CryptoKit.P256.KeyAgreement.PrivateKey : CryptoKit.HPKEDiffieHellmanPrivateKeyGeneration { |
| 645 | public init() |
| 646 | } |
| 647 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 648 | extension CryptoKit.P256.KeyAgreement.PublicKey : CryptoKit.HPKEDiffieHellmanPublicKey { |
| 649 | public typealias EphemeralPrivateKey = CryptoKit.P256.KeyAgreement.PrivateKey |
| 650 | public init<D>(_ serialization: D, kem: CryptoKit.HPKE.KEM) throws where D : Foundation.ContiguousBytes |
| 651 | public func hpkeRepresentation(kem: CryptoKit.HPKE.KEM) throws -> Foundation.Data |
| 652 | public typealias HPKEEphemeralPrivateKey = CryptoKit.P256.KeyAgreement.PrivateKey |
| 653 | } |
| 654 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 655 | extension CryptoKit.P384.KeyAgreement.PrivateKey : CryptoKit.HPKEDiffieHellmanPrivateKeyGeneration { |
| 656 | public init() |
| 657 | } |
| 658 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 659 | extension CryptoKit.P384.KeyAgreement.PublicKey : CryptoKit.HPKEDiffieHellmanPublicKey { |
| 660 | public typealias EphemeralPrivateKey = CryptoKit.P384.KeyAgreement.PrivateKey |
| 661 | public init<D>(_ serialization: D, kem: CryptoKit.HPKE.KEM) throws where D : Foundation.ContiguousBytes |
| 662 | public func hpkeRepresentation(kem: CryptoKit.HPKE.KEM) throws -> Foundation.Data |
| 663 | } |
| 664 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 665 | extension CryptoKit.P521.KeyAgreement.PrivateKey : CryptoKit.HPKEDiffieHellmanPrivateKeyGeneration { |
| 666 | public init() |
| 667 | } |
| 668 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 669 | extension CryptoKit.P521.KeyAgreement.PublicKey : CryptoKit.HPKEDiffieHellmanPublicKey { |
| 670 | public typealias EphemeralPrivateKey = CryptoKit.P521.KeyAgreement.PrivateKey |
| 671 | public init<D>(_ serialization: D, kem: CryptoKit.HPKE.KEM) throws where D : Foundation.ContiguousBytes |
| 672 | public func hpkeRepresentation(kem: CryptoKit.HPKE.KEM) throws -> Foundation.Data |
| 673 | public typealias HPKEEphemeralPrivateKey = CryptoKit.P521.KeyAgreement.PrivateKey |
| 674 | } |
| 675 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 676 | extension CryptoKit.HPKE { |
| 677 | public enum Errors : Swift.Error { |
| 678 | case inconsistentParameters |
| 679 | case inconsistentCiphersuiteAndKey |
| 680 | case exportOnlyMode |
| 634 | case truncatedASN1Field |
| 635 | case unsupportedFieldLength |
| 636 | case invalidPEMDocument |
| 637 | public static func == (a: CryptoKit::CryptoKitASN1Error, b: CryptoKit::CryptoKitASN1Error) -> Swift::Bool |
| 638 | public func hash(into hasher: inout Swift::Hasher) |
| 639 | public var hashValue: Swift::Int { |
| 640 | get |
| 641 | } |
| 642 | } |
| 643 | public typealias CryptoKitMetaError = any Swift::Error |
| 644 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 645 | extension CryptoKit::Curve25519 { |
| 646 | public enum KeyAgreement : Swift::Sendable { |
| 647 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 648 | public struct PublicKey : Swift::Sendable { |
| 649 | public init<D>(rawRepresentation: D) throws where D : Foundation::ContiguousBytes |
| 650 | public var rawRepresentation: Foundation::Data { |
| 651 | get |
| 652 | } |
| 653 | } |
| 654 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 655 | public struct PrivateKey : CryptoKit::DiffieHellmanKeyAgreement, Swift::Sendable { |
| 656 | public init() |
| 657 | public var publicKey: CryptoKit::Curve25519.CryptoKit::KeyAgreement.CryptoKit::PublicKey { |
| 658 | get |
| 659 | } |
| 660 | public init<D>(rawRepresentation: D) throws where D : Foundation::ContiguousBytes |
| 661 | public func sharedSecretFromKeyAgreement(with publicKeyShare: CryptoKit::Curve25519.CryptoKit::KeyAgreement.CryptoKit::PublicKey) throws -> CryptoKit::SharedSecret |
| 662 | public var rawRepresentation: Foundation::Data { |
| 663 | get |
| 664 | } |
| 665 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *) |
| 666 | public typealias PublicKey = CryptoKit::Curve25519.CryptoKit::KeyAgreement.CryptoKit::PublicKey |
| 667 | } |
| 668 | } |
| 669 | } |
| 670 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 671 | public enum HPKE : Swift::Sendable { |
| 672 | } |
| 673 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 674 | extension CryptoKit::HPKE { |
| 675 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 676 | public struct Sender : Swift::Sendable { |
| 677 | public let encapsulatedKey: Foundation::Data |
| 678 | public func exportSecret<Context>(context: Context, outputByteCount: Swift::Int) throws -> CryptoKit::SymmetricKey where Context : Foundation::DataProtocol |
| 679 | public init<PK>(recipientKey: PK, ciphersuite: CryptoKit::HPKE.CryptoKit::Ciphersuite, info: Foundation::Data) throws where PK : CryptoKit::HPKEDiffieHellmanPublicKey |
| 680 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 681 | public init<PK>(recipientKey: PK, ciphersuite: CryptoKit::HPKE.CryptoKit::Ciphersuite, info: Foundation::Data) throws where PK : CryptoKit::HPKEKEMPublicKey |
| 682 | public init<PK>(recipientKey: PK, ciphersuite: CryptoKit::HPKE.CryptoKit::Ciphersuite, info: Foundation::Data, presharedKey psk: CryptoKit::SymmetricKey, presharedKeyIdentifier pskID: Foundation::Data) throws where PK : CryptoKit::HPKEDiffieHellmanPublicKey |
| 683 | public init<SK>(recipientKey: SK.PublicKey, ciphersuite: CryptoKit::HPKE.CryptoKit::Ciphersuite, info: Foundation::Data, authenticatedBy authenticationKey: SK) throws where SK : CryptoKit::HPKEDiffieHellmanPrivateKey |
| 684 | public init<SK>(recipientKey: SK.PublicKey, ciphersuite: CryptoKit::HPKE.CryptoKit::Ciphersuite, info: Foundation::Data, authenticatedBy authenticationKey: SK, presharedKey psk: CryptoKit::SymmetricKey, presharedKeyIdentifier pskID: Foundation::Data) throws where SK : CryptoKit::HPKEDiffieHellmanPrivateKey |
| 685 | public mutating func seal<M, AD>(_ msg: M, authenticating aad: AD) throws -> Foundation::Data where M : Foundation::DataProtocol, AD : Foundation::DataProtocol |
| 686 | public mutating func seal<M>(_ msg: M) throws -> Foundation::Data where M : Foundation::DataProtocol |
| 687 | } |
| 688 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 689 | public struct Recipient : Swift::Sendable { |
| 690 | public func exportSecret<Context>(context: Context, outputByteCount: Swift::Int) throws -> CryptoKit::SymmetricKey where Context : Foundation::DataProtocol |
| 691 | public init<SK>(privateKey: SK, ciphersuite: CryptoKit::HPKE.CryptoKit::Ciphersuite, info: Foundation::Data, encapsulatedKey: Foundation::Data) throws where SK : CryptoKit::HPKEDiffieHellmanPrivateKey |
| 692 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 693 | public init<SK>(privateKey: SK, ciphersuite: CryptoKit::HPKE.CryptoKit::Ciphersuite, info: Foundation::Data, encapsulatedKey: Foundation::Data) throws where SK : CryptoKit::HPKEKEMPrivateKey |
| 694 | public init<SK>(privateKey: SK, ciphersuite: CryptoKit::HPKE.CryptoKit::Ciphersuite, info: Foundation::Data, encapsulatedKey: Foundation::Data, presharedKey psk: CryptoKit::SymmetricKey, presharedKeyIdentifier pskID: Foundation::Data) throws where SK : CryptoKit::HPKEDiffieHellmanPrivateKey |
| 695 | public init<SK>(privateKey: SK, ciphersuite: CryptoKit::HPKE.CryptoKit::Ciphersuite, info: Foundation::Data, encapsulatedKey: Foundation::Data, authenticatedBy authenticationKey: SK.PublicKey) throws where SK : CryptoKit::HPKEDiffieHellmanPrivateKey |
| 696 | public init<SK>(privateKey: SK, ciphersuite: CryptoKit::HPKE.CryptoKit::Ciphersuite, info: Foundation::Data, encapsulatedKey: Foundation::Data, authenticatedBy authenticationKey: SK.PublicKey, presharedKey psk: CryptoKit::SymmetricKey, presharedKeyIdentifier pskID: Foundation::Data) throws where SK : CryptoKit::HPKEDiffieHellmanPrivateKey |
| 697 | public mutating func open<C, AD>(_ ciphertext: C, authenticating aad: AD) throws -> Foundation::Data where C : Foundation::DataProtocol, AD : Foundation::DataProtocol |
| 698 | public mutating func open<C>(_ ciphertext: C) throws -> Foundation::Data where C : Foundation::DataProtocol |
| 699 | } |
| 700 | } |
| 701 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 702 | extension CryptoKit::SecureEnclave.CryptoKit::P256.CryptoKit::KeyAgreement.CryptoKit::PrivateKey : CryptoKit::HPKEDiffieHellmanPrivateKey { |
| 703 | } |
| 704 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 705 | extension CryptoKit::P256.CryptoKit::KeyAgreement.CryptoKit::PrivateKey : CryptoKit::HPKEDiffieHellmanPrivateKeyGeneration { |
| 706 | public init() |
| 707 | } |
| 708 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 709 | extension CryptoKit::P256.CryptoKit::KeyAgreement.CryptoKit::PublicKey : CryptoKit::HPKEDiffieHellmanPublicKey { |
| 710 | public typealias EphemeralPrivateKey = CryptoKit::P256.CryptoKit::KeyAgreement.CryptoKit::PrivateKey |
| 711 | public init<D>(_ serialization: D, kem: CryptoKit::HPKE.CryptoKit::KEM) throws where D : Foundation::ContiguousBytes |
| 712 | public func hpkeRepresentation(kem: CryptoKit::HPKE.CryptoKit::KEM) throws -> Foundation::Data |
| 713 | public typealias HPKEEphemeralPrivateKey = CryptoKit::P256.CryptoKit::KeyAgreement.CryptoKit::PrivateKey |
| 714 | } |
| 715 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 716 | extension CryptoKit::P384.CryptoKit::KeyAgreement.CryptoKit::PrivateKey : CryptoKit::HPKEDiffieHellmanPrivateKeyGeneration { |
| 717 | public init() |
| 718 | } |
| 719 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 720 | extension CryptoKit::P384.CryptoKit::KeyAgreement.CryptoKit::PublicKey : CryptoKit::HPKEDiffieHellmanPublicKey { |
| 721 | public typealias EphemeralPrivateKey = CryptoKit::P384.CryptoKit::KeyAgreement.CryptoKit::PrivateKey |
| 722 | public init<D>(_ serialization: D, kem: CryptoKit::HPKE.CryptoKit::KEM) throws where D : Foundation::ContiguousBytes |
| 723 | public func hpkeRepresentation(kem: CryptoKit::HPKE.CryptoKit::KEM) throws -> Foundation::Data |
| 724 | } |
| 725 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 726 | extension CryptoKit::P521.CryptoKit::KeyAgreement.CryptoKit::PrivateKey : CryptoKit::HPKEDiffieHellmanPrivateKeyGeneration { |
| 727 | public init() |
| 728 | } |
| 729 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 730 | extension CryptoKit::P521.CryptoKit::KeyAgreement.CryptoKit::PublicKey : CryptoKit::HPKEDiffieHellmanPublicKey { |
| 731 | public typealias EphemeralPrivateKey = CryptoKit::P521.CryptoKit::KeyAgreement.CryptoKit::PrivateKey |
| 732 | public init<D>(_ serialization: D, kem: CryptoKit::HPKE.CryptoKit::KEM) throws where D : Foundation::ContiguousBytes |
| 733 | public func hpkeRepresentation(kem: CryptoKit::HPKE.CryptoKit::KEM) throws -> Foundation::Data |
| 734 | public typealias HPKEEphemeralPrivateKey = CryptoKit::P521.CryptoKit::KeyAgreement.CryptoKit::PrivateKey |
| 735 | } |
| 736 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 737 | extension CryptoKit::HPKE { |
| 738 | public enum Errors : Swift::Error { |
| 739 | case inconsistentParameters |
| 740 | case inconsistentCiphersuiteAndKey |
| 741 | case exportOnlyMode |
| 683 | case unexpectedPSK |
| 684 | case outOfRangeSequenceNumber |
| 685 | case ciphertextTooShort |
| 686 | public static func == (a: CryptoKit.HPKE.Errors, b: CryptoKit.HPKE.Errors) -> Swift.Bool |
| 687 | public func hash(into hasher: inout Swift.Hasher) |
| 688 | public var hashValue: Swift.Int { |
| 689 | get |
| 690 | } |
| 691 | } |
| 692 | } |
| 693 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 694 | public enum XWingMLKEM768X25519 : Swift.Sendable { |
| 695 | } |
| 696 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 697 | extension CryptoKit.XWingMLKEM768X25519 { |
| 698 | public struct PublicKey : CryptoKit.KEMPublicKey { |
| 699 | public init<D>(rawRepresentation: D) throws where D : Foundation.ContiguousBytes |
| 700 | public var rawRepresentation: Foundation.Data { |
| 701 | get |
| 702 | } |
| 703 | public func encapsulate() throws -> CryptoKit.KEM.EncapsulationResult |
| 704 | } |
| 705 | public struct PrivateKey : CryptoKit.KEMPrivateKey { |
| 706 | public var seedRepresentation: Foundation.Data { |
| 707 | get |
| 708 | } |
| 709 | public var integrityCheckedRepresentation: Foundation.Data { |
| 710 | get |
| 711 | } |
| 712 | public static func generate() throws -> CryptoKit.XWingMLKEM768X25519.PrivateKey |
| 713 | public func decapsulate(_ encapsulated: Foundation.Data) throws -> CryptoKit.SymmetricKey |
| 714 | public var publicKey: CryptoKit.XWingMLKEM768X25519.PublicKey { |
| 715 | get |
| 716 | } |
| 717 | @available(iOS 26.0, tvOS 26.0, watchOS 26.0, visionOS 26.0, macOS 26.0, macCatalyst 26.0, *) |
| 718 | public typealias PublicKey = CryptoKit.XWingMLKEM768X25519.PublicKey |
| 719 | } |
| 720 | } |
| 721 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 722 | extension CryptoKit.XWingMLKEM768X25519.PrivateKey : CryptoKit.HPKEKEMPrivateKeyGeneration { |
| 723 | public init() throws |
| 724 | public init<D>(seedRepresentation: D, publicKey: CryptoKit.XWingMLKEM768X25519.PublicKey?) throws where D : Foundation.DataProtocol |
| 725 | public init<D>(integrityCheckedRepresentation: D) throws where D : Foundation.DataProtocol |
| 726 | } |
| 727 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 728 | extension CryptoKit.XWingMLKEM768X25519.PublicKey : CryptoKit.HPKEKEMPublicKey { |
| 729 | public typealias EphemeralPrivateKey = CryptoKit.XWingMLKEM768X25519.PrivateKey |
| 730 | public init<D>(_ serialization: D, kem: CryptoKit.HPKE.KEM) throws where D : Foundation.ContiguousBytes |
| 731 | public func hpkeRepresentation(kem: CryptoKit.HPKE.KEM) throws -> Foundation.Data |
| 732 | public typealias HPKEEphemeralPrivateKey = CryptoKit.XWingMLKEM768X25519.PrivateKey |
| 733 | } |
| 734 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 735 | extension CryptoKit.Curve25519 { |
| 736 | public enum Signing : Swift.Sendable { |
| 737 | public struct PrivateKey : Swift.Sendable { |
| 738 | public init() |
| 739 | public var publicKey: CryptoKit.Curve25519.Signing.PublicKey { |
| 740 | get |
| 741 | } |
| 742 | public init<D>(rawRepresentation data: D) throws where D : Foundation.ContiguousBytes |
| 743 | public var rawRepresentation: Foundation.Data { |
| 744 | get |
| 745 | } |
| 746 | } |
| 747 | public struct PublicKey : Swift.Sendable { |
| 748 | public init<D>(rawRepresentation: D) throws where D : Foundation.ContiguousBytes |
| 749 | public var rawRepresentation: Foundation.Data { |
| 750 | get |
| 751 | } |
| 752 | } |
| 753 | } |
| 754 | } |
| 755 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 756 | extension CryptoKit.SecureEnclave { |
| 757 | public enum MLDSA65 : Swift.Sendable { |
| 758 | public struct PrivateKey : Swift.Sendable { |
| 759 | public let publicKey: CryptoKit.MLDSA65.PublicKey |
| 760 | public let dataRepresentation: Foundation.Data |
| 761 | public init(accessControl: Security.SecAccessControl = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, [], nil)!, authenticationContext: LocalAuthentication.LAContext? = nil) throws |
| 762 | public init<D>(dataRepresentation: D, authenticationContext: LocalAuthentication.LAContext? = nil) throws where D : Foundation.DataProtocol |
| 763 | public func signature<D>(for data: D) throws -> Foundation.Data where D : Foundation.DataProtocol |
| 764 | public func signature<D, C>(for data: D, context: C) throws -> Foundation.Data where D : Foundation.DataProtocol, C : Foundation.DataProtocol |
| 765 | } |
| 766 | } |
| 767 | } |
| 768 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 769 | extension CryptoKit.SecureEnclave { |
| 770 | public enum MLDSA87 : Swift.Sendable { |
| 771 | public struct PrivateKey : Swift.Sendable { |
| 772 | public let publicKey: CryptoKit.MLDSA87.PublicKey |
| 773 | public let dataRepresentation: Foundation.Data |
| 774 | public init(accessControl: Security.SecAccessControl = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, [], nil)!, authenticationContext: LocalAuthentication.LAContext? = nil) throws |
| 775 | public init<D>(dataRepresentation: D, authenticationContext: LocalAuthentication.LAContext? = nil) throws where D : Foundation.DataProtocol |
| 776 | public func signature<D>(for data: D) throws -> Foundation.Data where D : Foundation.DataProtocol |
| 777 | public func signature<D, C>(for data: D, context: C) throws -> Foundation.Data where D : Foundation.DataProtocol, C : Foundation.DataProtocol |
| 778 | } |
| 779 | } |
| 780 | } |
| 781 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 782 | public enum MLDSA65 : Swift.Sendable { |
| 783 | } |
| 784 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 785 | extension CryptoKit.MLDSA65 { |
| 786 | public struct PublicKey : Swift.Sendable { |
| 787 | public init<D>(rawRepresentation: D) throws where D : Foundation.DataProtocol |
| 788 | public var rawRepresentation: Foundation.Data { |
| 789 | get |
| 790 | } |
| 791 | public func isValidSignature<S, D>(_ signature: S, for data: D) -> Swift.Bool where S : Foundation.DataProtocol, D : Foundation.DataProtocol |
| 792 | public func isValidSignature<S, D, C>(_ signature: S, for data: D, context: C) -> Swift.Bool where S : Foundation.DataProtocol, D : Foundation.DataProtocol, C : Foundation.DataProtocol |
| 793 | } |
| 794 | public struct PrivateKey : Swift.Sendable { |
| 795 | public init() throws |
| 796 | public init<D>(seedRepresentation: D, publicKey: CryptoKit.MLDSA65.PublicKey?) throws where D : Foundation.DataProtocol |
| 797 | public var seedRepresentation: Foundation.Data { |
| 798 | get |
| 799 | } |
| 800 | public func signature<D>(for data: D) throws -> Foundation.Data where D : Foundation.DataProtocol |
| 801 | public func signature<D, C>(for data: D, context: C) throws -> Foundation.Data where D : Foundation.DataProtocol, C : Foundation.DataProtocol |
| 802 | public var publicKey: CryptoKit.MLDSA65.PublicKey { |
| 803 | get |
| 804 | } |
| 805 | public init<D>(integrityCheckedRepresentation: D) throws where D : Foundation.DataProtocol |
| 806 | public var integrityCheckedRepresentation: Foundation.Data { |
| 807 | get |
| 808 | } |
| 809 | } |
| 810 | } |
| 811 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 812 | public enum MLDSA87 : Swift.Sendable { |
| 813 | } |
| 814 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 815 | extension CryptoKit.MLDSA87 { |
| 816 | public struct PublicKey : Swift.Sendable { |
| 817 | public init<D>(rawRepresentation: D) throws where D : Foundation.DataProtocol |
| 818 | public var rawRepresentation: Foundation.Data { |
| 819 | get |
| 820 | } |
| 821 | public func isValidSignature<S, D>(_ signature: S, for data: D) -> Swift.Bool where S : Foundation.DataProtocol, D : Foundation.DataProtocol |
| 822 | public func isValidSignature<S, D, C>(_ signature: S, for data: D, context: C) -> Swift.Bool where S : Foundation.DataProtocol, D : Foundation.DataProtocol, C : Foundation.DataProtocol |
| 823 | } |
| 824 | public struct PrivateKey : Swift.Sendable { |
| 825 | public init() throws |
| 826 | public init<D>(seedRepresentation: D, publicKey: CryptoKit.MLDSA87.PublicKey?) throws where D : Foundation.DataProtocol |
| 827 | public var seedRepresentation: Foundation.Data { |
| 828 | get |
| 829 | } |
| 830 | public func signature<D>(for data: D) throws -> Foundation.Data where D : Foundation.DataProtocol |
| 831 | public func signature<D, C>(for data: D, context: C) throws -> Foundation.Data where D : Foundation.DataProtocol, C : Foundation.DataProtocol |
| 832 | public var publicKey: CryptoKit.MLDSA87.PublicKey { |
| 833 | get |
| 834 | } |
| 835 | public init<D>(integrityCheckedRepresentation: D) throws where D : Foundation.DataProtocol |
| 836 | public var integrityCheckedRepresentation: Foundation.Data { |
| 837 | get |
| 838 | } |
| 839 | } |
| 840 | } |
| 841 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 842 | public enum MLKEM768 : Swift.Sendable { |
| 843 | } |
| 844 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 845 | extension CryptoKit.MLKEM768 { |
| 846 | public struct PublicKey : CryptoKit.KEMPublicKey, Swift.Sendable { |
| 847 | public init<D>(rawRepresentation: D) throws where D : Foundation.DataProtocol |
| 848 | public var rawRepresentation: Foundation.Data { |
| 849 | get |
| 850 | } |
| 851 | public func encapsulate() throws -> CryptoKit.KEM.EncapsulationResult |
| 852 | } |
| 853 | public struct PrivateKey : CryptoKit.KEMPrivateKey { |
| 854 | public static func generate() throws -> CryptoKit.MLKEM768.PrivateKey |
| 855 | public init() throws |
| 856 | public init<D>(seedRepresentation: D, publicKey: CryptoKit.MLKEM768.PublicKey?) throws where D : Foundation.DataProtocol |
| 857 | public var seedRepresentation: Foundation.Data { |
| 858 | get |
| 859 | } |
| 860 | public func decapsulate<D>(_ encapsulated: D) throws -> CryptoKit.SymmetricKey where D : Foundation.DataProtocol |
| 861 | public var publicKey: CryptoKit.MLKEM768.PublicKey { |
| 862 | get |
| 863 | } |
| 864 | public init<D>(integrityCheckedRepresentation: D) throws where D : Foundation.DataProtocol |
| 865 | public var integrityCheckedRepresentation: Foundation.Data { |
| 866 | get |
| 867 | } |
| 868 | @available(iOS 26.0, tvOS 26.0, watchOS 26.0, visionOS 26.0, macOS 26.0, macCatalyst 26.0, *) |
| 869 | public typealias PublicKey = CryptoKit.MLKEM768.PublicKey |
| 870 | } |
| 871 | } |
| 872 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 873 | public enum MLKEM1024 : Swift.Sendable { |
| 874 | } |
| 875 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 876 | extension CryptoKit.MLKEM1024 { |
| 877 | public struct PublicKey : CryptoKit.KEMPublicKey, Swift.Sendable { |
| 878 | public init<D>(rawRepresentation: D) throws where D : Foundation.DataProtocol |
| 879 | public var rawRepresentation: Foundation.Data { |
| 880 | get |
| 881 | } |
| 882 | public func encapsulate() throws -> CryptoKit.KEM.EncapsulationResult |
| 883 | } |
| 884 | public struct PrivateKey : CryptoKit.KEMPrivateKey { |
| 885 | public static func generate() throws -> CryptoKit.MLKEM1024.PrivateKey |
| 886 | public init() throws |
| 887 | public init<D>(seedRepresentation: D, publicKey: CryptoKit.MLKEM1024.PublicKey?) throws where D : Foundation.DataProtocol |
| 888 | public var seedRepresentation: Foundation.Data { |
| 889 | get |
| 890 | } |
| 891 | public func decapsulate<D>(_ encapsulated: D) throws -> CryptoKit.SymmetricKey where D : Foundation.DataProtocol |
| 892 | public var publicKey: CryptoKit.MLKEM1024.PublicKey { |
| 893 | get |
| 894 | } |
| 895 | public init<D>(integrityCheckedRepresentation: D) throws where D : Foundation.DataProtocol |
| 896 | public var integrityCheckedRepresentation: Foundation.Data { |
| 897 | get |
| 898 | } |
| 899 | @available(iOS 26.0, tvOS 26.0, watchOS 26.0, visionOS 26.0, macOS 26.0, macCatalyst 26.0, *) |
| 900 | public typealias PublicKey = CryptoKit.MLKEM1024.PublicKey |
| 901 | } |
| 902 | } |
| 903 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 904 | extension CryptoKit.AES.GCM { |
| 905 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 906 | public struct Nonce : Foundation.ContiguousBytes, Swift.Sequence, Swift.Sendable { |
| 907 | public init() |
| 908 | public init<D>(data: D) throws where D : Foundation.DataProtocol |
| 909 | public func withUnsafeBytes<R>(_ body: (Swift.UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 910 | public func makeIterator() -> Swift.Array<Swift.UInt8>.Iterator |
| 911 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, macCatalyst 13.0, *) |
| 912 | public typealias Element = Swift.IndexingIterator<Swift.Array<Swift.UInt8>>.Element |
| 913 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, macCatalyst 13.0, *) |
| 914 | public typealias Iterator = Swift.Array<Swift.UInt8>.Iterator |
| 915 | } |
| 916 | } |
| 917 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 918 | extension CryptoKit.ChaChaPoly { |
| 919 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 920 | public struct Nonce : Foundation.ContiguousBytes, Swift.Sequence, Swift.Sendable { |
| 921 | public init() |
| 922 | public init<D>(data: D) throws where D : Foundation.DataProtocol |
| 923 | public func withUnsafeBytes<R>(_ body: (Swift.UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 924 | public func makeIterator() -> Swift.Array<Swift.UInt8>.Iterator |
| 925 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, macCatalyst 13.0, *) |
| 926 | public typealias Element = Swift.IndexingIterator<Swift.Array<Swift.UInt8>>.Element |
| 927 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, macCatalyst 13.0, *) |
| 928 | public typealias Iterator = Swift.Array<Swift.UInt8>.Iterator |
| 929 | } |
| 930 | } |
| 931 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 932 | public struct SHA256Digest { |
| 933 | public static var byteCount: Swift.Int { |
| 934 | get |
| 935 | } |
| 936 | public func withUnsafeBytes<R>(_ body: (Swift.UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 937 | public var description: Swift.String { |
| 938 | get |
| 939 | } |
| 940 | public func hash(into hasher: inout Swift.Hasher) |
| 941 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, macCatalyst 13.0, *) |
| 942 | public typealias Element = Swift.UInt8 |
| 943 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, macCatalyst 13.0, *) |
| 944 | public typealias Iterator = Swift.Array<Swift.UInt8>.Iterator |
| 945 | public var hashValue: Swift.Int { |
| 946 | get |
| 947 | } |
| 948 | } |
| 949 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 950 | public struct SHA384Digest { |
| 951 | public static var byteCount: Swift.Int { |
| 952 | get |
| 953 | } |
| 954 | public func withUnsafeBytes<R>(_ body: (Swift.UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 955 | public var description: Swift.String { |
| 956 | get |
| 957 | } |
| 958 | public func hash(into hasher: inout Swift.Hasher) |
| 959 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, macCatalyst 13.0, *) |
| 960 | public typealias Element = Swift.UInt8 |
| 961 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, macCatalyst 13.0, *) |
| 962 | public typealias Iterator = Swift.Array<Swift.UInt8>.Iterator |
| 963 | public var hashValue: Swift.Int { |
| 964 | get |
| 965 | } |
| 966 | } |
| 967 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 968 | public struct SHA512Digest { |
| 969 | public static var byteCount: Swift.Int { |
| 970 | get |
| 971 | } |
| 972 | public func withUnsafeBytes<R>(_ body: (Swift.UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 973 | public var description: Swift.String { |
| 974 | get |
| 975 | } |
| 976 | public func hash(into hasher: inout Swift.Hasher) |
| 977 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, macCatalyst 13.0, *) |
| 978 | public typealias Element = Swift.UInt8 |
| 979 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, macCatalyst 13.0, *) |
| 980 | public typealias Iterator = Swift.Array<Swift.UInt8>.Iterator |
| 981 | public var hashValue: Swift.Int { |
| 982 | get |
| 983 | } |
| 984 | } |
| 985 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 986 | extension CryptoKit.Insecure { |
| 987 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 988 | public struct SHA1Digest { |
| 989 | public static var byteCount: Swift.Int { |
| 990 | get |
| 991 | } |
| 992 | public func withUnsafeBytes<R>(_ body: (Swift.UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 993 | public var description: Swift.String { |
| 994 | get |
| 995 | } |
| 996 | public func hash(into hasher: inout Swift.Hasher) |
| 997 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, macCatalyst 13.0, *) |
| 998 | public typealias Element = Swift.UInt8 |
| 999 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, macCatalyst 13.0, *) |
| 1000 | public typealias Iterator = Swift.Array<Swift.UInt8>.Iterator |
| 1001 | public var hashValue: Swift.Int { |
| 1002 | get |
| 1003 | } |
| 1004 | } |
| 1005 | } |
| 1006 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1007 | extension CryptoKit.Insecure { |
| 1008 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1009 | public struct MD5Digest { |
| 1010 | public static var byteCount: Swift.Int { |
| 1011 | get |
| 1012 | } |
| 1013 | public func withUnsafeBytes<R>(_ body: (Swift.UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 1014 | public var description: Swift.String { |
| 1015 | get |
| 1016 | } |
| 1017 | public func hash(into hasher: inout Swift.Hasher) |
| 1018 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, macCatalyst 13.0, *) |
| 1019 | public typealias Element = Swift.UInt8 |
| 1020 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, macCatalyst 13.0, *) |
| 1021 | public typealias Iterator = Swift.Array<Swift.UInt8>.Iterator |
| 1022 | public var hashValue: Swift.Int { |
| 1023 | get |
| 1024 | } |
| 1025 | } |
| 1026 | } |
| 1027 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 2.0, *) |
| 1028 | public struct SHA3_256Digest { |
| 1029 | public static var byteCount: Swift.Int { |
| 1030 | get |
| 1031 | } |
| 1032 | public func withUnsafeBytes<R>(_ body: (Swift.UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 1033 | public var description: Swift.String { |
| 1034 | get |
| 1035 | } |
| 1036 | public func hash(into hasher: inout Swift.Hasher) |
| 1037 | @available(iOS 26.0, tvOS 26.0, watchOS 26.0, visionOS 2.0, macOS 26.0, macCatalyst 26.0, *) |
| 1038 | public typealias Element = Swift.UInt8 |
| 1039 | @available(iOS 26.0, tvOS 26.0, watchOS 26.0, visionOS 2.0, macOS 26.0, macCatalyst 26.0, *) |
| 1040 | public typealias Iterator = Swift.Array<Swift.UInt8>.Iterator |
| 1041 | public var hashValue: Swift.Int { |
| 1042 | get |
| 1043 | } |
| 1044 | } |
| 1045 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 2.0, *) |
| 1046 | public struct SHA3_384Digest { |
| 1047 | public static var byteCount: Swift.Int { |
| 1048 | get |
| 1049 | } |
| 1050 | public func withUnsafeBytes<R>(_ body: (Swift.UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 1051 | public var description: Swift.String { |
| 1052 | get |
| 1053 | } |
| 1054 | public func hash(into hasher: inout Swift.Hasher) |
| 1055 | @available(iOS 26.0, tvOS 26.0, watchOS 26.0, visionOS 2.0, macOS 26.0, macCatalyst 26.0, *) |
| 1056 | public typealias Element = Swift.UInt8 |
| 1057 | @available(iOS 26.0, tvOS 26.0, watchOS 26.0, visionOS 2.0, macOS 26.0, macCatalyst 26.0, *) |
| 1058 | public typealias Iterator = Swift.Array<Swift.UInt8>.Iterator |
| 1059 | public var hashValue: Swift.Int { |
| 1060 | get |
| 1061 | } |
| 1062 | } |
| 1063 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 2.0, *) |
| 1064 | public struct SHA3_512Digest { |
| 1065 | public static var byteCount: Swift.Int { |
| 1066 | get |
| 1067 | } |
| 1068 | public func withUnsafeBytes<R>(_ body: (Swift.UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 1069 | public var description: Swift.String { |
| 1070 | get |
| 1071 | } |
| 1072 | public func hash(into hasher: inout Swift.Hasher) |
| 1073 | @available(iOS 26.0, tvOS 26.0, watchOS 26.0, visionOS 2.0, macOS 26.0, macCatalyst 26.0, *) |
| 1074 | public typealias Element = Swift.UInt8 |
| 1075 | @available(iOS 26.0, tvOS 26.0, watchOS 26.0, visionOS 2.0, macOS 26.0, macCatalyst 26.0, *) |
| 1076 | public typealias Iterator = Swift.Array<Swift.UInt8>.Iterator |
| 1077 | public var hashValue: Swift.Int { |
| 1078 | get |
| 1079 | } |
| 1080 | } |
| 1081 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1082 | public enum SecureEnclave : Swift.Sendable { |
| 1083 | } |
| 1084 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1085 | extension CryptoKit.SecureEnclave { |
| 1086 | public static var isAvailable: Swift.Bool { |
| 1087 | get |
| 1088 | } |
| 1089 | public enum P256 : Swift.Sendable { |
| 1090 | public enum Signing : Swift.Sendable { |
| 1091 | public struct PrivateKey : Swift.Sendable { |
| 1092 | public let publicKey: CryptoKit.P256.Signing.PublicKey |
| 1093 | public let dataRepresentation: Foundation.Data |
| 1094 | @available(iOS 13.0, macOS 10.15, macCatalyst 13.0, *) |
| 1095 | public init(dataRepresentation: Foundation.Data, authenticationContext: LocalAuthentication.LAContext? = nil) throws |
| 1096 | @available(iOS 13.0, macOS 10.15, macCatalyst 13.0, *) |
| 1097 | public init(compactRepresentable: Swift.Bool = true, accessControl: Security.SecAccessControl = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, [], nil)!, authenticationContext: LocalAuthentication.LAContext? = nil) throws |
| 1098 | } |
| 1099 | } |
| 1100 | public enum KeyAgreement : Swift.Sendable { |
| 1101 | public struct PrivateKey : Swift.Sendable { |
| 1102 | public let publicKey: CryptoKit.P256.KeyAgreement.PublicKey |
| 1103 | public let dataRepresentation: Foundation.Data |
| 1104 | @available(iOS 13.0, macOS 10.15, macCatalyst 13.0, *) |
| 1105 | public init(dataRepresentation: Foundation.Data, authenticationContext: LocalAuthentication.LAContext? = nil) throws |
| 1106 | @available(iOS 13.0, macOS 10.15, macCatalyst 13.0, *) |
| 1107 | public init(compactRepresentable: Swift.Bool = true, accessControl: Security.SecAccessControl = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, [], nil)!, authenticationContext: LocalAuthentication.LAContext? = nil) throws |
| 1108 | } |
| 1109 | } |
| 1110 | } |
| 1111 | } |
| 1112 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1113 | extension CryptoKit.SecureEnclave { |
| 1114 | public enum MLKEM768 : Swift.Sendable { |
| 1115 | public struct PrivateKey : CryptoKit.KEMPrivateKey, Swift.Sendable { |
| 1116 | public let publicKey: CryptoKit.MLKEM768.PublicKey |
| 1117 | public let dataRepresentation: Foundation.Data |
| 1118 | public static func generate() throws -> CryptoKit.SecureEnclave.MLKEM768.PrivateKey |
| 1119 | public init(accessControl: Security.SecAccessControl = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, [], nil)!, authenticationContext: LocalAuthentication.LAContext? = nil) throws |
| 1120 | public init<D>(dataRepresentation: D, authenticationContext: LocalAuthentication.LAContext? = nil) throws where D : Foundation.DataProtocol |
| 1121 | public func decapsulate<D>(_ encapsulated: D) throws -> CryptoKit.SymmetricKey where D : Foundation.DataProtocol |
| 1122 | @available(iOS 26.0, tvOS 26.0, watchOS 26.0, visionOS 26.0, macOS 26.0, macCatalyst 26.0, *) |
| 1123 | public typealias PublicKey = CryptoKit.MLKEM768.PublicKey |
| 1124 | } |
| 1125 | } |
| 1126 | } |
| 1127 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1128 | extension CryptoKit.SecureEnclave { |
| 1129 | public enum MLKEM1024 : Swift.Sendable { |
| 1130 | public struct PrivateKey : CryptoKit.KEMPrivateKey, Swift.Sendable { |
| 1131 | public let publicKey: CryptoKit.MLKEM1024.PublicKey |
| 1132 | public let dataRepresentation: Foundation.Data |
| 1133 | public static func generate() throws -> CryptoKit.SecureEnclave.MLKEM1024.PrivateKey |
| 1134 | public init(accessControl: Security.SecAccessControl = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, [], nil)!, authenticationContext: LocalAuthentication.LAContext? = nil) throws |
| 1135 | public init<D>(dataRepresentation: D, authenticationContext: LocalAuthentication.LAContext? = nil) throws where D : Foundation.DataProtocol |
| 1136 | public func decapsulate<D>(_ encapsulated: D) throws -> CryptoKit.SymmetricKey where D : Foundation.DataProtocol |
| 1137 | @available(iOS 26.0, tvOS 26.0, watchOS 26.0, visionOS 26.0, macOS 26.0, macCatalyst 26.0, *) |
| 1138 | public typealias PublicKey = CryptoKit.MLKEM1024.PublicKey |
| 1139 | } |
| 1140 | } |
| 1141 | } |
| 1142 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1143 | extension CryptoKit.P256 { |
| 1144 | public enum Signing : Swift.Sendable { |
| 1145 | public struct PublicKey : Swift.Sendable { |
| 1146 | public init<D>(rawRepresentation: D) throws where D : Foundation.ContiguousBytes |
| 1147 | public init<Bytes>(compactRepresentation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1148 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1149 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1150 | public init<Bytes>(compressedRepresentation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1151 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1152 | public init(pemRepresentation: Swift.String) throws |
| 1153 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1154 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift.RandomAccessCollection, Bytes.Element == Swift.UInt8 |
| 1155 | public var compactRepresentation: Foundation.Data? { |
| 1156 | get |
| 1157 | } |
| 1158 | public var rawRepresentation: Foundation.Data { |
| 1159 | get |
| 1160 | } |
| 1161 | public var x963Representation: Foundation.Data { |
| 1162 | get |
| 1163 | } |
| 1164 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1165 | public var compressedRepresentation: Foundation.Data { |
| 1166 | get |
| 1167 | } |
| 1168 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1169 | public var derRepresentation: Foundation.Data { |
| 1170 | get |
| 1171 | } |
| 1172 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1173 | public var pemRepresentation: Swift.String { |
| 1174 | get |
| 1175 | } |
| 1176 | } |
| 1177 | public struct PrivateKey : Swift.Sendable { |
| 1178 | public init(compactRepresentable: Swift.Bool = true) |
| 1179 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1180 | public init<Bytes>(rawRepresentation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1181 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1182 | public init(pemRepresentation: Swift.String) throws |
| 1183 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1184 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift.RandomAccessCollection, Bytes.Element == Swift.UInt8 |
| 1185 | public var publicKey: CryptoKit.P256.Signing.PublicKey { |
| 1186 | get |
| 1187 | } |
| 1188 | public var rawRepresentation: Foundation.Data { |
| 1189 | get |
| 1190 | } |
| 1191 | public var x963Representation: Foundation.Data { |
| 1192 | get |
| 1193 | } |
| 1194 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1195 | public var derRepresentation: Foundation.Data { |
| 1196 | get |
| 1197 | } |
| 1198 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1199 | public var pemRepresentation: Swift.String { |
| 1200 | get |
| 1201 | } |
| 1202 | } |
| 1203 | } |
| 1204 | } |
| 1205 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1206 | extension CryptoKit.P256 { |
| 1207 | public enum KeyAgreement : Swift.Sendable { |
| 1208 | public struct PublicKey : Swift.Sendable { |
| 1209 | public init<D>(rawRepresentation: D) throws where D : Foundation.ContiguousBytes |
| 1210 | public init<Bytes>(compactRepresentation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1211 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1212 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1213 | public init<Bytes>(compressedRepresentation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1214 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1215 | public init(pemRepresentation: Swift.String) throws |
| 1216 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1217 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift.RandomAccessCollection, Bytes.Element == Swift.UInt8 |
| 1218 | public var compactRepresentation: Foundation.Data? { |
| 1219 | get |
| 1220 | } |
| 1221 | public var rawRepresentation: Foundation.Data { |
| 1222 | get |
| 1223 | } |
| 1224 | public var x963Representation: Foundation.Data { |
| 1225 | get |
| 1226 | } |
| 1227 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1228 | public var compressedRepresentation: Foundation.Data { |
| 1229 | get |
| 1230 | } |
| 1231 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1232 | public var derRepresentation: Foundation.Data { |
| 1233 | get |
| 1234 | } |
| 1235 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1236 | public var pemRepresentation: Swift.String { |
| 1237 | get |
| 1238 | } |
| 1239 | } |
| 1240 | public struct PrivateKey : Swift.Sendable { |
| 1241 | public init(compactRepresentable: Swift.Bool = true) |
| 1242 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1243 | public init<Bytes>(rawRepresentation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1244 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1245 | public init(pemRepresentation: Swift.String) throws |
| 1246 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1247 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift.RandomAccessCollection, Bytes.Element == Swift.UInt8 |
| 1248 | public var publicKey: CryptoKit.P256.KeyAgreement.PublicKey { |
| 1249 | get |
| 1250 | } |
| 1251 | public var rawRepresentation: Foundation.Data { |
| 1252 | get |
| 1253 | } |
| 1254 | public var x963Representation: Foundation.Data { |
| 1255 | get |
| 1256 | } |
| 1257 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1258 | public var derRepresentation: Foundation.Data { |
| 1259 | get |
| 1260 | } |
| 1261 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1262 | public var pemRepresentation: Swift.String { |
| 1263 | get |
| 1264 | } |
| 1265 | } |
| 1266 | } |
| 1267 | } |
| 1268 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1269 | extension CryptoKit.P384 { |
| 1270 | public enum Signing : Swift.Sendable { |
| 1271 | public struct PublicKey : Swift.Sendable { |
| 1272 | public init<D>(rawRepresentation: D) throws where D : Foundation.ContiguousBytes |
| 1273 | public init<Bytes>(compactRepresentation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1274 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1275 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1276 | public init<Bytes>(compressedRepresentation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1277 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1278 | public init(pemRepresentation: Swift.String) throws |
| 1279 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1280 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift.RandomAccessCollection, Bytes.Element == Swift.UInt8 |
| 1281 | public var compactRepresentation: Foundation.Data? { |
| 1282 | get |
| 1283 | } |
| 1284 | public var rawRepresentation: Foundation.Data { |
| 1285 | get |
| 1286 | } |
| 1287 | public var x963Representation: Foundation.Data { |
| 1288 | get |
| 1289 | } |
| 1290 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1291 | public var compressedRepresentation: Foundation.Data { |
| 1292 | get |
| 1293 | } |
| 1294 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1295 | public var derRepresentation: Foundation.Data { |
| 1296 | get |
| 1297 | } |
| 1298 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1299 | public var pemRepresentation: Swift.String { |
| 1300 | get |
| 1301 | } |
| 1302 | } |
| 1303 | public struct PrivateKey : Swift.Sendable { |
| 1304 | public init(compactRepresentable: Swift.Bool = true) |
| 1305 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1306 | public init<Bytes>(rawRepresentation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1307 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1308 | public init(pemRepresentation: Swift.String) throws |
| 1309 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1310 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift.RandomAccessCollection, Bytes.Element == Swift.UInt8 |
| 1311 | public var publicKey: CryptoKit.P384.Signing.PublicKey { |
| 1312 | get |
| 1313 | } |
| 1314 | public var rawRepresentation: Foundation.Data { |
| 1315 | get |
| 1316 | } |
| 1317 | public var x963Representation: Foundation.Data { |
| 1318 | get |
| 1319 | } |
| 1320 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1321 | public var derRepresentation: Foundation.Data { |
| 1322 | get |
| 1323 | } |
| 1324 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1325 | public var pemRepresentation: Swift.String { |
| 1326 | get |
| 1327 | } |
| 1328 | } |
| 1329 | } |
| 1330 | } |
| 1331 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1332 | extension CryptoKit.P384 { |
| 1333 | public enum KeyAgreement : Swift.Sendable { |
| 1334 | public struct PublicKey : Swift.Sendable { |
| 1335 | public init<D>(rawRepresentation: D) throws where D : Foundation.ContiguousBytes |
| 1336 | public init<Bytes>(compactRepresentation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1337 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1338 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1339 | public init<Bytes>(compressedRepresentation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1340 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1341 | public init(pemRepresentation: Swift.String) throws |
| 1342 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1343 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift.RandomAccessCollection, Bytes.Element == Swift.UInt8 |
| 1344 | public var compactRepresentation: Foundation.Data? { |
| 1345 | get |
| 1346 | } |
| 1347 | public var rawRepresentation: Foundation.Data { |
| 1348 | get |
| 1349 | } |
| 1350 | public var x963Representation: Foundation.Data { |
| 1351 | get |
| 1352 | } |
| 1353 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1354 | public var compressedRepresentation: Foundation.Data { |
| 1355 | get |
| 1356 | } |
| 1357 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1358 | public var derRepresentation: Foundation.Data { |
| 1359 | get |
| 1360 | } |
| 1361 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1362 | public var pemRepresentation: Swift.String { |
| 1363 | get |
| 1364 | } |
| 1365 | } |
| 1366 | public struct PrivateKey : Swift.Sendable { |
| 1367 | public init(compactRepresentable: Swift.Bool = true) |
| 1368 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1369 | public init<Bytes>(rawRepresentation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1370 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1371 | public init(pemRepresentation: Swift.String) throws |
| 1372 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1373 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift.RandomAccessCollection, Bytes.Element == Swift.UInt8 |
| 1374 | public var publicKey: CryptoKit.P384.KeyAgreement.PublicKey { |
| 1375 | get |
| 1376 | } |
| 1377 | public var rawRepresentation: Foundation.Data { |
| 1378 | get |
| 1379 | } |
| 1380 | public var x963Representation: Foundation.Data { |
| 1381 | get |
| 1382 | } |
| 1383 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1384 | public var derRepresentation: Foundation.Data { |
| 1385 | get |
| 1386 | } |
| 1387 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1388 | public var pemRepresentation: Swift.String { |
| 1389 | get |
| 1390 | } |
| 1391 | } |
| 1392 | } |
| 1393 | } |
| 1394 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1395 | extension CryptoKit.P521 { |
| 1396 | public enum Signing : Swift.Sendable { |
| 1397 | public struct PublicKey : Swift.Sendable { |
| 1398 | public init<D>(rawRepresentation: D) throws where D : Foundation.ContiguousBytes |
| 1399 | public init<Bytes>(compactRepresentation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1400 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1401 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1402 | public init<Bytes>(compressedRepresentation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1403 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1404 | public init(pemRepresentation: Swift.String) throws |
| 1405 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1406 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift.RandomAccessCollection, Bytes.Element == Swift.UInt8 |
| 1407 | public var compactRepresentation: Foundation.Data? { |
| 1408 | get |
| 1409 | } |
| 1410 | public var rawRepresentation: Foundation.Data { |
| 1411 | get |
| 1412 | } |
| 1413 | public var x963Representation: Foundation.Data { |
| 1414 | get |
| 1415 | } |
| 1416 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1417 | public var compressedRepresentation: Foundation.Data { |
| 1418 | get |
| 1419 | } |
| 1420 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1421 | public var derRepresentation: Foundation.Data { |
| 1422 | get |
| 1423 | } |
| 1424 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1425 | public var pemRepresentation: Swift.String { |
| 1426 | get |
| 1427 | } |
| 1428 | } |
| 1429 | public struct PrivateKey : Swift.Sendable { |
| 1430 | public init(compactRepresentable: Swift.Bool = true) |
| 1431 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1432 | public init<Bytes>(rawRepresentation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1433 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1434 | public init(pemRepresentation: Swift.String) throws |
| 1435 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1436 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift.RandomAccessCollection, Bytes.Element == Swift.UInt8 |
| 1437 | public var publicKey: CryptoKit.P521.Signing.PublicKey { |
| 1438 | get |
| 1439 | } |
| 1440 | public var rawRepresentation: Foundation.Data { |
| 1441 | get |
| 1442 | } |
| 1443 | public var x963Representation: Foundation.Data { |
| 1444 | get |
| 1445 | } |
| 1446 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1447 | public var derRepresentation: Foundation.Data { |
| 1448 | get |
| 1449 | } |
| 1450 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1451 | public var pemRepresentation: Swift.String { |
| 1452 | get |
| 1453 | } |
| 1454 | } |
| 1455 | } |
| 1456 | } |
| 1457 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1458 | extension CryptoKit.P521 { |
| 1459 | public enum KeyAgreement : Swift.Sendable { |
| 1460 | public struct PublicKey : Swift.Sendable { |
| 1461 | public init<D>(rawRepresentation: D) throws where D : Foundation.ContiguousBytes |
| 1462 | public init<Bytes>(compactRepresentation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1463 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1464 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1465 | public init<Bytes>(compressedRepresentation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1466 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1467 | public init(pemRepresentation: Swift.String) throws |
| 1468 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1469 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift.RandomAccessCollection, Bytes.Element == Swift.UInt8 |
| 1470 | public var compactRepresentation: Foundation.Data? { |
| 1471 | get |
| 1472 | } |
| 1473 | public var rawRepresentation: Foundation.Data { |
| 1474 | get |
| 1475 | } |
| 1476 | public var x963Representation: Foundation.Data { |
| 1477 | get |
| 1478 | } |
| 1479 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1480 | public var compressedRepresentation: Foundation.Data { |
| 1481 | get |
| 1482 | } |
| 1483 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1484 | public var derRepresentation: Foundation.Data { |
| 1485 | get |
| 1486 | } |
| 1487 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1488 | public var pemRepresentation: Swift.String { |
| 1489 | get |
| 1490 | } |
| 1491 | } |
| 1492 | public struct PrivateKey : Swift.Sendable { |
| 1493 | public init(compactRepresentable: Swift.Bool = true) |
| 1494 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1495 | public init<Bytes>(rawRepresentation: Bytes) throws where Bytes : Foundation.ContiguousBytes |
| 1496 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1497 | public init(pemRepresentation: Swift.String) throws |
| 1498 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1499 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift.RandomAccessCollection, Bytes.Element == Swift.UInt8 |
| 1500 | public var publicKey: CryptoKit.P521.KeyAgreement.PublicKey { |
| 1501 | get |
| 1502 | } |
| 1503 | public var rawRepresentation: Foundation.Data { |
| 1504 | get |
| 1505 | } |
| 1506 | public var x963Representation: Foundation.Data { |
| 1507 | get |
| 1508 | } |
| 1509 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1510 | public var derRepresentation: Foundation.Data { |
| 1511 | get |
| 1512 | } |
| 1513 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1514 | public var pemRepresentation: Swift.String { |
| 1515 | get |
| 1516 | } |
| 1517 | } |
| 1518 | } |
| 1519 | } |
| 1520 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1521 | extension CryptoKit.P256.KeyAgreement.PrivateKey : CryptoKit.DiffieHellmanKeyAgreement { |
| 1522 | public func sharedSecretFromKeyAgreement(with publicKeyShare: CryptoKit.P256.KeyAgreement.PublicKey) throws -> CryptoKit.SharedSecret |
| 1523 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, macCatalyst 13.0, *) |
| 1524 | public typealias PublicKey = CryptoKit.P256.KeyAgreement.PublicKey |
| 1525 | } |
| 1526 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1527 | extension CryptoKit.P384.KeyAgreement.PrivateKey : CryptoKit.DiffieHellmanKeyAgreement { |
| 1528 | public func sharedSecretFromKeyAgreement(with publicKeyShare: CryptoKit.P384.KeyAgreement.PublicKey) throws -> CryptoKit.SharedSecret |
| 1529 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, macCatalyst 13.0, *) |
| 1530 | public typealias PublicKey = CryptoKit.P384.KeyAgreement.PublicKey |
| 1531 | } |
| 1532 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1533 | extension CryptoKit.P521.KeyAgreement.PrivateKey : CryptoKit.DiffieHellmanKeyAgreement { |
| 1534 | public func sharedSecretFromKeyAgreement(with publicKeyShare: CryptoKit.P521.KeyAgreement.PublicKey) throws -> CryptoKit.SharedSecret |
| 1535 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 10.15, macCatalyst 13.0, *) |
| 1536 | public typealias PublicKey = CryptoKit.P521.KeyAgreement.PublicKey |
| 1537 | } |
| 1538 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1539 | extension CryptoKit.P256.Signing { |
| 1540 | public struct ECDSASignature : Foundation.ContiguousBytes, Swift.Sendable { |
| 1541 | public var rawRepresentation: Foundation.Data |
| 1542 | public init<D>(rawRepresentation: D) throws where D : Foundation.DataProtocol |
| 1543 | public init<D>(derRepresentation: D) throws where D : Foundation.DataProtocol |
| 1544 | public func withUnsafeBytes<R>(_ body: (Swift.UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 1545 | public var derRepresentation: Foundation.Data { |
| 1546 | get |
| 1547 | } |
| 1548 | } |
| 1549 | } |
| 1550 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1551 | extension CryptoKit.P256.Signing.PrivateKey { |
| 1552 | public func signature<D>(for digest: D) throws -> CryptoKit.P256.Signing.ECDSASignature where D : CryptoKit.Digest |
| 1553 | } |
| 1554 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1555 | extension CryptoKit.P256.Signing.PrivateKey { |
| 1556 | public func signature<D>(for data: D) throws -> CryptoKit.P256.Signing.ECDSASignature where D : Foundation.DataProtocol |
| 1557 | } |
| 1558 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1559 | extension CryptoKit.P256.Signing.PublicKey { |
| 1560 | public func isValidSignature<D>(_ signature: CryptoKit.P256.Signing.ECDSASignature, for digest: D) -> Swift.Bool where D : CryptoKit.Digest |
| 1561 | } |
| 1562 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1563 | extension CryptoKit.P256.Signing.PublicKey { |
| 1564 | public func isValidSignature<D>(_ signature: CryptoKit.P256.Signing.ECDSASignature, for data: D) -> Swift.Bool where D : Foundation.DataProtocol |
| 1565 | } |
| 1566 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1567 | extension CryptoKit.P384.Signing { |
| 1568 | public struct ECDSASignature : Foundation.ContiguousBytes, Swift.Sendable { |
| 1569 | public var rawRepresentation: Foundation.Data |
| 1570 | public init<D>(rawRepresentation: D) throws where D : Foundation.DataProtocol |
| 1571 | public init<D>(derRepresentation: D) throws where D : Foundation.DataProtocol |
| 1572 | public func withUnsafeBytes<R>(_ body: (Swift.UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 1573 | public var derRepresentation: Foundation.Data { |
| 1574 | get |
| 1575 | } |
| 1576 | } |
| 1577 | } |
| 1578 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1579 | extension CryptoKit.P384.Signing.PrivateKey { |
| 1580 | public func signature<D>(for digest: D) throws -> CryptoKit.P384.Signing.ECDSASignature where D : CryptoKit.Digest |
| 1581 | } |
| 1582 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1583 | extension CryptoKit.P384.Signing.PrivateKey { |
| 1584 | public func signature<D>(for data: D) throws -> CryptoKit.P384.Signing.ECDSASignature where D : Foundation.DataProtocol |
| 1585 | } |
| 1586 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1587 | extension CryptoKit.P384.Signing.PublicKey { |
| 1588 | public func isValidSignature<D>(_ signature: CryptoKit.P384.Signing.ECDSASignature, for digest: D) -> Swift.Bool where D : CryptoKit.Digest |
| 1589 | } |
| 1590 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1591 | extension CryptoKit.P384.Signing.PublicKey { |
| 1592 | public func isValidSignature<D>(_ signature: CryptoKit.P384.Signing.ECDSASignature, for data: D) -> Swift.Bool where D : Foundation.DataProtocol |
| 1593 | } |
| 1594 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1595 | extension CryptoKit.P521.Signing { |
| 1596 | public struct ECDSASignature : Foundation.ContiguousBytes, Swift.Sendable { |
| 1597 | public var rawRepresentation: Foundation.Data |
| 1598 | public init<D>(rawRepresentation: D) throws where D : Foundation.DataProtocol |
| 1599 | public init<D>(derRepresentation: D) throws where D : Foundation.DataProtocol |
| 1600 | public func withUnsafeBytes<R>(_ body: (Swift.UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 1601 | public var derRepresentation: Foundation.Data { |
| 1602 | get |
| 1603 | } |
| 1604 | } |
| 1605 | } |
| 1606 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1607 | extension CryptoKit.P521.Signing.PrivateKey { |
| 1608 | public func signature<D>(for digest: D) throws -> CryptoKit.P521.Signing.ECDSASignature where D : CryptoKit.Digest |
| 1609 | } |
| 1610 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1611 | extension CryptoKit.P521.Signing.PrivateKey { |
| 1612 | public func signature<D>(for data: D) throws -> CryptoKit.P521.Signing.ECDSASignature where D : Foundation.DataProtocol |
| 1613 | } |
| 1614 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1615 | extension CryptoKit.P521.Signing.PublicKey { |
| 1616 | public func isValidSignature<D>(_ signature: CryptoKit.P521.Signing.ECDSASignature, for digest: D) -> Swift.Bool where D : CryptoKit.Digest |
| 1617 | } |
| 1618 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1619 | extension CryptoKit.P521.Signing.PublicKey { |
| 1620 | public func isValidSignature<D>(_ signature: CryptoKit.P521.Signing.ECDSASignature, for data: D) -> Swift.Bool where D : Foundation.DataProtocol |
| 1621 | } |
| 1622 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 2.0, *) |
| 1623 | extension CryptoKit.SHA3_256 : CryptoKit.HashFunction {} |
| 1624 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 2.0, *) |
| 1625 | extension CryptoKit.SHA3_384 : CryptoKit.HashFunction {} |
| 1626 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 2.0, *) |
| 1627 | extension CryptoKit.SHA3_512 : CryptoKit.HashFunction {} |
| 1628 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 2.0, *) |
| 1629 | extension CryptoKit.KEM.Errors : Swift.Equatable {} |
| 1630 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 2.0, *) |
| 1631 | extension CryptoKit.KEM.Errors : Swift.Hashable {} |
| 1632 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1633 | extension CryptoKit.SHA256 : CryptoKit.HashFunction {} |
| 1634 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1635 | extension CryptoKit.SHA384 : CryptoKit.HashFunction {} |
| 1636 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1637 | extension CryptoKit.SHA512 : CryptoKit.HashFunction {} |
| 1638 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1639 | extension CryptoKit.Insecure.SHA1 : CryptoKit.HashFunction {} |
| 1640 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1641 | extension CryptoKit.Insecure.MD5 : CryptoKit.HashFunction {} |
| 1642 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 1643 | extension CryptoKit.HPKE.Errors : Swift.Equatable {} |
| 1644 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 1645 | extension CryptoKit.HPKE.Errors : Swift.Hashable {} |
| 1646 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1647 | extension CryptoKit.SHA256Digest : CryptoKit.Digest {} |
| 1648 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1649 | extension CryptoKit.SHA384Digest : CryptoKit.Digest {} |
| 1650 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1651 | extension CryptoKit.SHA512Digest : CryptoKit.Digest {} |
| 1652 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1653 | extension CryptoKit.Insecure.SHA1Digest : CryptoKit.Digest {} |
| 1654 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1655 | extension CryptoKit.Insecure.MD5Digest : CryptoKit.Digest {} |
| 1656 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 2.0, *) |
| 1657 | extension CryptoKit.SHA3_256Digest : CryptoKit.Digest {} |
| 1658 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 2.0, *) |
| 1659 | extension CryptoKit.SHA3_384Digest : CryptoKit.Digest {} |
| 1660 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 2.0, *) |
| 1661 | extension CryptoKit.SHA3_512Digest : CryptoKit.Digest {} |
| 744 | case unexpectedPSK |
| 745 | case outOfRangeSequenceNumber |
| 746 | case ciphertextTooShort |
| 747 | public static func == (a: CryptoKit::HPKE.CryptoKit::Errors, b: CryptoKit::HPKE.CryptoKit::Errors) -> Swift::Bool |
| 748 | public func hash(into hasher: inout Swift::Hasher) |
| 749 | public var hashValue: Swift::Int { |
| 750 | get |
| 751 | } |
| 752 | } |
| 753 | } |
| 754 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 755 | public enum XWingMLKEM768X25519 : Swift::Sendable { |
| 756 | } |
| 757 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 758 | extension CryptoKit::XWingMLKEM768X25519 { |
| 759 | public struct PublicKey : CryptoKit::KEMPublicKey { |
| 760 | public init<D>(rawRepresentation: D) throws where D : Foundation::ContiguousBytes |
| 761 | public var rawRepresentation: Foundation::Data { |
| 762 | get |
| 763 | } |
| 764 | public func encapsulate() throws -> CryptoKit::KEM.CryptoKit::EncapsulationResult |
| 765 | } |
| 766 | public struct PrivateKey : CryptoKit::KEMPrivateKey { |
| 767 | public var seedRepresentation: Foundation::Data { |
| 768 | get |
| 769 | } |
| 770 | public var integrityCheckedRepresentation: Foundation::Data { |
| 771 | get |
| 772 | } |
| 773 | public static func generate() throws -> CryptoKit::XWingMLKEM768X25519.CryptoKit::PrivateKey |
| 774 | public func decapsulate(_ encapsulated: Foundation::Data) throws -> CryptoKit::SymmetricKey |
| 775 | public var publicKey: CryptoKit::XWingMLKEM768X25519.CryptoKit::PublicKey { |
| 776 | get |
| 777 | } |
| 778 | @available(macOS 26.0, iOS 26.0, tvOS 26.0, watchOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 779 | public typealias PublicKey = CryptoKit::XWingMLKEM768X25519.CryptoKit::PublicKey |
| 780 | } |
| 781 | @available(iOS 27.0, macOS 27.0, watchOS 27.0, tvOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 782 | public struct OneTimePrivateKey : CryptoKit::KEMOneTimePrivateKey, ~Swift::Copyable { |
| 783 | public static func generate() throws -> CryptoKit::XWingMLKEM768X25519.CryptoKit::OneTimePrivateKey |
| 784 | public consuming func decapsulate(_ encapsulated: Foundation::Data) throws -> CryptoKit::SymmetricKey |
| 785 | public var publicKey: CryptoKit::XWingMLKEM768X25519.CryptoKit::PublicKey { |
| 786 | get |
| 787 | } |
| 788 | @available(macOS 27.0, iOS 27.0, tvOS 27.0, watchOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 789 | public typealias PublicKey = CryptoKit::XWingMLKEM768X25519.CryptoKit::PublicKey |
| 790 | } |
| 791 | } |
| 792 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 793 | extension CryptoKit::XWingMLKEM768X25519.CryptoKit::PrivateKey : CryptoKit::HPKEKEMPrivateKeyGeneration { |
| 794 | public init() throws |
| 795 | public init<D>(seedRepresentation: D, publicKey: CryptoKit::XWingMLKEM768X25519.CryptoKit::PublicKey?) throws where D : Foundation::DataProtocol |
| 796 | public init<D>(integrityCheckedRepresentation: D) throws where D : Foundation::DataProtocol |
| 797 | } |
| 798 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 799 | extension CryptoKit::XWingMLKEM768X25519.CryptoKit::PublicKey : CryptoKit::HPKEKEMPublicKey { |
| 800 | public typealias EphemeralPrivateKey = CryptoKit::XWingMLKEM768X25519.CryptoKit::PrivateKey |
| 801 | public init<D>(_ serialization: D, kem: CryptoKit::HPKE.CryptoKit::KEM) throws where D : Foundation::ContiguousBytes |
| 802 | public func hpkeRepresentation(kem: CryptoKit::HPKE.CryptoKit::KEM) throws -> Foundation::Data |
| 803 | public typealias HPKEEphemeralPrivateKey = CryptoKit::XWingMLKEM768X25519.CryptoKit::PrivateKey |
| 804 | } |
| 805 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 806 | extension CryptoKit::Curve25519 { |
| 807 | public enum Signing : Swift::Sendable { |
| 808 | public struct PrivateKey : Swift::Sendable { |
| 809 | public init() |
| 810 | public var publicKey: CryptoKit::Curve25519.CryptoKit::Signing.CryptoKit::PublicKey { |
| 811 | get |
| 812 | } |
| 813 | public init<D>(rawRepresentation data: D) throws where D : Foundation::ContiguousBytes |
| 814 | public var rawRepresentation: Foundation::Data { |
| 815 | get |
| 816 | } |
| 817 | } |
| 818 | public struct PublicKey : Swift::Sendable { |
| 819 | public init<D>(rawRepresentation: D) throws where D : Foundation::ContiguousBytes |
| 820 | public var rawRepresentation: Foundation::Data { |
| 821 | get |
| 822 | } |
| 823 | } |
| 824 | } |
| 825 | } |
| 826 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 827 | extension CryptoKit::SecureEnclave { |
| 828 | public enum MLDSA65 : Swift::Sendable { |
| 829 | public struct PrivateKey : Swift::Sendable { |
| 830 | public let publicKey: CryptoKit::MLDSA65.CryptoKit::PublicKey |
| 831 | public let dataRepresentation: Foundation::Data |
| 832 | public init(accessControl: Security::SecAccessControl = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, [], nil)!, authenticationContext: LocalAuthentication::LAContext? = nil) throws |
| 833 | public init<D>(dataRepresentation: D, authenticationContext: LocalAuthentication::LAContext? = nil) throws where D : Foundation::DataProtocol |
| 834 | public func signature<D>(for data: D) throws -> Foundation::Data where D : Foundation::DataProtocol |
| 835 | public func signature<D, C>(for data: D, context: C) throws -> Foundation::Data where D : Foundation::DataProtocol, C : Foundation::DataProtocol |
| 836 | } |
| 837 | } |
| 838 | } |
| 839 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 840 | extension CryptoKit::SecureEnclave { |
| 841 | public enum MLDSA87 : Swift::Sendable { |
| 842 | public struct PrivateKey : Swift::Sendable { |
| 843 | public let publicKey: CryptoKit::MLDSA87.CryptoKit::PublicKey |
| 844 | public let dataRepresentation: Foundation::Data |
| 845 | public init(accessControl: Security::SecAccessControl = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, [], nil)!, authenticationContext: LocalAuthentication::LAContext? = nil) throws |
| 846 | public init<D>(dataRepresentation: D, authenticationContext: LocalAuthentication::LAContext? = nil) throws where D : Foundation::DataProtocol |
| 847 | public func signature<D>(for data: D) throws -> Foundation::Data where D : Foundation::DataProtocol |
| 848 | public func signature<D, C>(for data: D, context: C) throws -> Foundation::Data where D : Foundation::DataProtocol, C : Foundation::DataProtocol |
| 849 | } |
| 850 | } |
| 851 | } |
| 852 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 853 | public enum MLDSA65 : Swift::Sendable { |
| 854 | } |
| 855 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 856 | extension CryptoKit::MLDSA65 { |
| 857 | public struct PublicKey : Swift::Sendable { |
| 858 | public init<D>(rawRepresentation: D) throws where D : Foundation::DataProtocol |
| 859 | public var rawRepresentation: Foundation::Data { |
| 860 | get |
| 861 | } |
| 862 | public func isValidSignature<S, D>(_ signature: S, for data: D) -> Swift::Bool where S : Foundation::DataProtocol, D : Foundation::DataProtocol |
| 863 | public func isValidSignature<S, D, C>(_ signature: S, for data: D, context: C) -> Swift::Bool where S : Foundation::DataProtocol, D : Foundation::DataProtocol, C : Foundation::DataProtocol |
| 864 | } |
| 865 | public struct PrivateKey : Swift::Sendable { |
| 866 | public init() throws |
| 867 | public init<D>(seedRepresentation: D, publicKey: CryptoKit::MLDSA65.CryptoKit::PublicKey?) throws where D : Foundation::DataProtocol |
| 868 | public var seedRepresentation: Foundation::Data { |
| 869 | get |
| 870 | } |
| 871 | public func signature<D>(for data: D) throws -> Foundation::Data where D : Foundation::DataProtocol |
| 872 | public func signature<D, C>(for data: D, context: C) throws -> Foundation::Data where D : Foundation::DataProtocol, C : Foundation::DataProtocol |
| 873 | public var publicKey: CryptoKit::MLDSA65.CryptoKit::PublicKey { |
| 874 | get |
| 875 | } |
| 876 | public init<D>(integrityCheckedRepresentation: D) throws where D : Foundation::DataProtocol |
| 877 | public var integrityCheckedRepresentation: Foundation::Data { |
| 878 | get |
| 879 | } |
| 880 | } |
| 881 | } |
| 882 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 883 | public enum MLDSA87 : Swift::Sendable { |
| 884 | } |
| 885 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 886 | extension CryptoKit::MLDSA87 { |
| 887 | public struct PublicKey : Swift::Sendable { |
| 888 | public init<D>(rawRepresentation: D) throws where D : Foundation::DataProtocol |
| 889 | public var rawRepresentation: Foundation::Data { |
| 890 | get |
| 891 | } |
| 892 | public func isValidSignature<S, D>(_ signature: S, for data: D) -> Swift::Bool where S : Foundation::DataProtocol, D : Foundation::DataProtocol |
| 893 | public func isValidSignature<S, D, C>(_ signature: S, for data: D, context: C) -> Swift::Bool where S : Foundation::DataProtocol, D : Foundation::DataProtocol, C : Foundation::DataProtocol |
| 894 | } |
| 895 | public struct PrivateKey : Swift::Sendable { |
| 896 | public init() throws |
| 897 | public init<D>(seedRepresentation: D, publicKey: CryptoKit::MLDSA87.CryptoKit::PublicKey?) throws where D : Foundation::DataProtocol |
| 898 | public var seedRepresentation: Foundation::Data { |
| 899 | get |
| 900 | } |
| 901 | public func signature<D>(for data: D) throws -> Foundation::Data where D : Foundation::DataProtocol |
| 902 | public func signature<D, C>(for data: D, context: C) throws -> Foundation::Data where D : Foundation::DataProtocol, C : Foundation::DataProtocol |
| 903 | public var publicKey: CryptoKit::MLDSA87.CryptoKit::PublicKey { |
| 904 | get |
| 905 | } |
| 906 | public init<D>(integrityCheckedRepresentation: D) throws where D : Foundation::DataProtocol |
| 907 | public var integrityCheckedRepresentation: Foundation::Data { |
| 908 | get |
| 909 | } |
| 910 | } |
| 911 | } |
| 912 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 913 | public enum MLKEM768 : Swift::Sendable { |
| 914 | } |
| 915 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 916 | extension CryptoKit::MLKEM768 { |
| 917 | public struct PublicKey : CryptoKit::KEMPublicKey, Swift::Sendable { |
| 918 | public init<D>(rawRepresentation: D) throws where D : Foundation::DataProtocol |
| 919 | public var rawRepresentation: Foundation::Data { |
| 920 | get |
| 921 | } |
| 922 | public func encapsulate() throws -> CryptoKit::KEM.CryptoKit::EncapsulationResult |
| 923 | } |
| 924 | public struct PrivateKey : CryptoKit::KEMPrivateKey { |
| 925 | public static func generate() throws -> CryptoKit::MLKEM768.CryptoKit::PrivateKey |
| 926 | public init() throws |
| 927 | public init<D>(seedRepresentation: D, publicKey: CryptoKit::MLKEM768.CryptoKit::PublicKey?) throws where D : Foundation::DataProtocol |
| 928 | public var seedRepresentation: Foundation::Data { |
| 929 | get |
| 930 | } |
| 931 | public func decapsulate<D>(_ encapsulated: D) throws -> CryptoKit::SymmetricKey where D : Foundation::DataProtocol |
| 932 | public var publicKey: CryptoKit::MLKEM768.CryptoKit::PublicKey { |
| 933 | get |
| 934 | } |
| 935 | public init<D>(integrityCheckedRepresentation: D) throws where D : Foundation::DataProtocol |
| 936 | public var integrityCheckedRepresentation: Foundation::Data { |
| 937 | get |
| 938 | } |
| 939 | @available(macOS 26.0, iOS 26.0, tvOS 26.0, watchOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 940 | public typealias PublicKey = CryptoKit::MLKEM768.CryptoKit::PublicKey |
| 941 | } |
| 942 | @available(iOS 27.0, macOS 27.0, watchOS 27.0, tvOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 943 | public struct OneTimePrivateKey : CryptoKit::KEMOneTimePrivateKey, ~Swift::Copyable { |
| 944 | public static func generate() throws -> CryptoKit::MLKEM768.CryptoKit::OneTimePrivateKey |
| 945 | public init() throws |
| 946 | public consuming func decapsulate<D>(_ encapsulated: D) throws -> CryptoKit::SymmetricKey where D : Foundation::DataProtocol |
| 947 | public var publicKey: CryptoKit::MLKEM768.CryptoKit::PublicKey { |
| 948 | get |
| 949 | } |
| 950 | @available(macOS 27.0, iOS 27.0, tvOS 27.0, watchOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 951 | public typealias PublicKey = CryptoKit::MLKEM768.CryptoKit::PublicKey |
| 952 | } |
| 953 | } |
| 954 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 955 | public enum MLKEM1024 : Swift::Sendable { |
| 956 | } |
| 957 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 958 | extension CryptoKit::MLKEM1024 { |
| 959 | public struct PublicKey : CryptoKit::KEMPublicKey, Swift::Sendable { |
| 960 | public init<D>(rawRepresentation: D) throws where D : Foundation::DataProtocol |
| 961 | public var rawRepresentation: Foundation::Data { |
| 962 | get |
| 963 | } |
| 964 | public func encapsulate() throws -> CryptoKit::KEM.CryptoKit::EncapsulationResult |
| 965 | } |
| 966 | public struct PrivateKey : CryptoKit::KEMPrivateKey { |
| 967 | public static func generate() throws -> CryptoKit::MLKEM1024.CryptoKit::PrivateKey |
| 968 | public init() throws |
| 969 | public init<D>(seedRepresentation: D, publicKey: CryptoKit::MLKEM1024.CryptoKit::PublicKey?) throws where D : Foundation::DataProtocol |
| 970 | public var seedRepresentation: Foundation::Data { |
| 971 | get |
| 972 | } |
| 973 | public func decapsulate<D>(_ encapsulated: D) throws -> CryptoKit::SymmetricKey where D : Foundation::DataProtocol |
| 974 | public var publicKey: CryptoKit::MLKEM1024.CryptoKit::PublicKey { |
| 975 | get |
| 976 | } |
| 977 | public init<D>(integrityCheckedRepresentation: D) throws where D : Foundation::DataProtocol |
| 978 | public var integrityCheckedRepresentation: Foundation::Data { |
| 979 | get |
| 980 | } |
| 981 | @available(macOS 26.0, iOS 26.0, tvOS 26.0, watchOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 982 | public typealias PublicKey = CryptoKit::MLKEM1024.CryptoKit::PublicKey |
| 983 | } |
| 984 | @available(iOS 27.0, macOS 27.0, watchOS 27.0, tvOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 985 | public struct OneTimePrivateKey : CryptoKit::KEMOneTimePrivateKey, ~Swift::Copyable { |
| 986 | public static func generate() throws -> CryptoKit::MLKEM1024.CryptoKit::OneTimePrivateKey |
| 987 | public init() throws |
| 988 | public consuming func decapsulate<D>(_ encapsulated: D) throws -> CryptoKit::SymmetricKey where D : Foundation::DataProtocol |
| 989 | public var publicKey: CryptoKit::MLKEM1024.CryptoKit::PublicKey { |
| 990 | get |
| 991 | } |
| 992 | @available(macOS 27.0, iOS 27.0, tvOS 27.0, watchOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 993 | public typealias PublicKey = CryptoKit::MLKEM1024.CryptoKit::PublicKey |
| 994 | } |
| 995 | } |
| 996 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 997 | extension CryptoKit::AES.CryptoKit::GCM { |
| 998 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 999 | public struct Nonce : Foundation::ContiguousBytes, Swift::Sequence, Swift::Sendable { |
| 1000 | public init() |
| 1001 | @available(iOS 27.0, macOS 27.0, watchOS 27.0, tvOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 1002 | public init(copying bytes: Swift::RawSpan) throws |
| 1003 | public init<D>(data: D) throws where D : Foundation::DataProtocol |
| 1004 | public func withUnsafeBytes<R>(_ body: (Swift::UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 1005 | #if compiler(>=5.3) && $Lifetimes |
| 1006 | public var bytes: Swift::RawSpan { |
| 1007 | get |
| 1008 | } |
| 1009 | #else |
| 1010 | public var bytes: Swift::RawSpan { |
| 1011 | get |
| 1012 | } |
| 1013 | #endif |
| 1014 | public var count: Swift::Int { |
| 1015 | get |
| 1016 | } |
| 1017 | public func makeIterator() -> Swift::Array<Swift::UInt8>.Swift::Iterator |
| 1018 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *) |
| 1019 | public typealias Element = Swift::IndexingIterator<Swift::Array<Swift::UInt8>>.Swift::Element |
| 1020 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *) |
| 1021 | public typealias Iterator = Swift::Array<Swift::UInt8>.Swift::Iterator |
| 1022 | } |
| 1023 | } |
| 1024 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1025 | extension CryptoKit::ChaChaPoly { |
| 1026 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1027 | public struct Nonce : Foundation::ContiguousBytes, Swift::Sequence, Swift::Sendable { |
| 1028 | public init() |
| 1029 | @available(iOS 27.0, macOS 27.0, watchOS 27.0, tvOS 27.0, macCatalyst 27.0, visionOS 27.0, *) |
| 1030 | public init(copying bytes: Swift::RawSpan) throws |
| 1031 | public init<D>(data: D) throws where D : Foundation::DataProtocol |
| 1032 | public func withUnsafeBytes<R>(_ body: (Swift::UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 1033 | #if compiler(>=5.3) && $Lifetimes |
| 1034 | public var bytes: Swift::RawSpan { |
| 1035 | get |
| 1036 | } |
| 1037 | #else |
| 1038 | public var bytes: Swift::RawSpan { |
| 1039 | get |
| 1040 | } |
| 1041 | #endif |
| 1042 | public var count: Swift::Int { |
| 1043 | get |
| 1044 | } |
| 1045 | public func makeIterator() -> Swift::Array<Swift::UInt8>.Swift::Iterator |
| 1046 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *) |
| 1047 | public typealias Element = Swift::IndexingIterator<Swift::Array<Swift::UInt8>>.Swift::Element |
| 1048 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *) |
| 1049 | public typealias Iterator = Swift::Array<Swift::UInt8>.Swift::Iterator |
| 1050 | } |
| 1051 | } |
| 1052 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1053 | public struct SHA256Digest { |
| 1054 | public static var byteCount: Swift::Int { |
| 1055 | get |
| 1056 | } |
| 1057 | public func withUnsafeBytes<R>(_ body: (Swift::UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 1058 | public var description: Swift::String { |
| 1059 | get |
| 1060 | } |
| 1061 | public func hash(into hasher: inout Swift::Hasher) |
| 1062 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *) |
| 1063 | public typealias Element = Swift::UInt8 |
| 1064 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *) |
| 1065 | public typealias Iterator = Swift::Array<Swift::UInt8>.Swift::Iterator |
| 1066 | public var hashValue: Swift::Int { |
| 1067 | get |
| 1068 | } |
| 1069 | } |
| 1070 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1071 | public struct SHA384Digest { |
| 1072 | public static var byteCount: Swift::Int { |
| 1073 | get |
| 1074 | } |
| 1075 | public func withUnsafeBytes<R>(_ body: (Swift::UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 1076 | public var description: Swift::String { |
| 1077 | get |
| 1078 | } |
| 1079 | public func hash(into hasher: inout Swift::Hasher) |
| 1080 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *) |
| 1081 | public typealias Element = Swift::UInt8 |
| 1082 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *) |
| 1083 | public typealias Iterator = Swift::Array<Swift::UInt8>.Swift::Iterator |
| 1084 | public var hashValue: Swift::Int { |
| 1085 | get |
| 1086 | } |
| 1087 | } |
| 1088 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1089 | public struct SHA512Digest { |
| 1090 | public static var byteCount: Swift::Int { |
| 1091 | get |
| 1092 | } |
| 1093 | public func withUnsafeBytes<R>(_ body: (Swift::UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 1094 | public var description: Swift::String { |
| 1095 | get |
| 1096 | } |
| 1097 | public func hash(into hasher: inout Swift::Hasher) |
| 1098 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *) |
| 1099 | public typealias Element = Swift::UInt8 |
| 1100 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *) |
| 1101 | public typealias Iterator = Swift::Array<Swift::UInt8>.Swift::Iterator |
| 1102 | public var hashValue: Swift::Int { |
| 1103 | get |
| 1104 | } |
| 1105 | } |
| 1106 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1107 | extension CryptoKit::Insecure { |
| 1108 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1109 | public struct SHA1Digest { |
| 1110 | public static var byteCount: Swift::Int { |
| 1111 | get |
| 1112 | } |
| 1113 | public func withUnsafeBytes<R>(_ body: (Swift::UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 1114 | public var description: Swift::String { |
| 1115 | get |
| 1116 | } |
| 1117 | public func hash(into hasher: inout Swift::Hasher) |
| 1118 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *) |
| 1119 | public typealias Element = Swift::UInt8 |
| 1120 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *) |
| 1121 | public typealias Iterator = Swift::Array<Swift::UInt8>.Swift::Iterator |
| 1122 | public var hashValue: Swift::Int { |
| 1123 | get |
| 1124 | } |
| 1125 | } |
| 1126 | } |
| 1127 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1128 | extension CryptoKit::Insecure { |
| 1129 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1130 | public struct MD5Digest { |
| 1131 | public static var byteCount: Swift::Int { |
| 1132 | get |
| 1133 | } |
| 1134 | public func withUnsafeBytes<R>(_ body: (Swift::UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 1135 | public var description: Swift::String { |
| 1136 | get |
| 1137 | } |
| 1138 | public func hash(into hasher: inout Swift::Hasher) |
| 1139 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *) |
| 1140 | public typealias Element = Swift::UInt8 |
| 1141 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *) |
| 1142 | public typealias Iterator = Swift::Array<Swift::UInt8>.Swift::Iterator |
| 1143 | public var hashValue: Swift::Int { |
| 1144 | get |
| 1145 | } |
| 1146 | } |
| 1147 | } |
| 1148 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1149 | public struct SHA3_256Digest { |
| 1150 | public static var byteCount: Swift::Int { |
| 1151 | get |
| 1152 | } |
| 1153 | public func withUnsafeBytes<R>(_ body: (Swift::UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 1154 | public var description: Swift::String { |
| 1155 | get |
| 1156 | } |
| 1157 | public func hash(into hasher: inout Swift::Hasher) |
| 1158 | @available(macOS 26.0, iOS 26.0, tvOS 26.0, watchOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1159 | public typealias Element = Swift::UInt8 |
| 1160 | @available(macOS 26.0, iOS 26.0, tvOS 26.0, watchOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1161 | public typealias Iterator = Swift::Array<Swift::UInt8>.Swift::Iterator |
| 1162 | public var hashValue: Swift::Int { |
| 1163 | get |
| 1164 | } |
| 1165 | } |
| 1166 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1167 | public struct SHA3_384Digest { |
| 1168 | public static var byteCount: Swift::Int { |
| 1169 | get |
| 1170 | } |
| 1171 | public func withUnsafeBytes<R>(_ body: (Swift::UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 1172 | public var description: Swift::String { |
| 1173 | get |
| 1174 | } |
| 1175 | public func hash(into hasher: inout Swift::Hasher) |
| 1176 | @available(macOS 26.0, iOS 26.0, tvOS 26.0, watchOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1177 | public typealias Element = Swift::UInt8 |
| 1178 | @available(macOS 26.0, iOS 26.0, tvOS 26.0, watchOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1179 | public typealias Iterator = Swift::Array<Swift::UInt8>.Swift::Iterator |
| 1180 | public var hashValue: Swift::Int { |
| 1181 | get |
| 1182 | } |
| 1183 | } |
| 1184 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1185 | public struct SHA3_512Digest { |
| 1186 | public static var byteCount: Swift::Int { |
| 1187 | get |
| 1188 | } |
| 1189 | public func withUnsafeBytes<R>(_ body: (Swift::UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 1190 | public var description: Swift::String { |
| 1191 | get |
| 1192 | } |
| 1193 | public func hash(into hasher: inout Swift::Hasher) |
| 1194 | @available(macOS 26.0, iOS 26.0, tvOS 26.0, watchOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1195 | public typealias Element = Swift::UInt8 |
| 1196 | @available(macOS 26.0, iOS 26.0, tvOS 26.0, watchOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1197 | public typealias Iterator = Swift::Array<Swift::UInt8>.Swift::Iterator |
| 1198 | public var hashValue: Swift::Int { |
| 1199 | get |
| 1200 | } |
| 1201 | } |
| 1202 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1203 | public enum SecureEnclave : Swift::Sendable { |
| 1204 | } |
| 1205 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1206 | extension CryptoKit::SecureEnclave { |
| 1207 | public static var isAvailable: Swift::Bool { |
| 1208 | get |
| 1209 | } |
| 1210 | public enum P256 : Swift::Sendable { |
| 1211 | public enum Signing : Swift::Sendable { |
| 1212 | public struct PrivateKey : Swift::Sendable { |
| 1213 | public let publicKey: CryptoKit::P256.CryptoKit::Signing.CryptoKit::PublicKey |
| 1214 | public let dataRepresentation: Foundation::Data |
| 1215 | @available(iOS 13.0, macOS 10.15, macCatalyst 13.0, *) |
| 1216 | public init(dataRepresentation: Foundation::Data, authenticationContext: LocalAuthentication::LAContext? = nil) throws |
| 1217 | @available(iOS 13.0, macOS 10.15, macCatalyst 13.0, *) |
| 1218 | public init(compactRepresentable: Swift::Bool = true, accessControl: Security::SecAccessControl = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, [], nil)!, authenticationContext: LocalAuthentication::LAContext? = nil) throws |
| 1219 | } |
| 1220 | } |
| 1221 | public enum KeyAgreement : Swift::Sendable { |
| 1222 | public struct PrivateKey : Swift::Sendable { |
| 1223 | public let publicKey: CryptoKit::P256.CryptoKit::KeyAgreement.CryptoKit::PublicKey |
| 1224 | public let dataRepresentation: Foundation::Data |
| 1225 | @available(iOS 13.0, macOS 10.15, macCatalyst 13.0, *) |
| 1226 | public init(dataRepresentation: Foundation::Data, authenticationContext: LocalAuthentication::LAContext? = nil) throws |
| 1227 | @available(iOS 13.0, macOS 10.15, macCatalyst 13.0, *) |
| 1228 | public init(compactRepresentable: Swift::Bool = true, accessControl: Security::SecAccessControl = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, [], nil)!, authenticationContext: LocalAuthentication::LAContext? = nil) throws |
| 1229 | } |
| 1230 | } |
| 1231 | } |
| 1232 | } |
| 1233 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1234 | extension CryptoKit::P256 { |
| 1235 | public enum Signing : Swift::Sendable { |
| 1236 | public struct PublicKey : Swift::Sendable { |
| 1237 | public init<D>(rawRepresentation: D) throws where D : Foundation::ContiguousBytes |
| 1238 | public init<Bytes>(compactRepresentation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1239 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1240 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1241 | public init<Bytes>(compressedRepresentation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1242 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1243 | public init(pemRepresentation: Swift::String) throws |
| 1244 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1245 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift::RandomAccessCollection, Bytes.Element == Swift::UInt8 |
| 1246 | public var compactRepresentation: Foundation::Data? { |
| 1247 | get |
| 1248 | } |
| 1249 | public var rawRepresentation: Foundation::Data { |
| 1250 | get |
| 1251 | } |
| 1252 | public var x963Representation: Foundation::Data { |
| 1253 | get |
| 1254 | } |
| 1255 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1256 | public var compressedRepresentation: Foundation::Data { |
| 1257 | get |
| 1258 | } |
| 1259 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1260 | public var derRepresentation: Foundation::Data { |
| 1261 | get |
| 1262 | } |
| 1263 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1264 | public var pemRepresentation: Swift::String { |
| 1265 | get |
| 1266 | } |
| 1267 | } |
| 1268 | public struct PrivateKey : Swift::Sendable { |
| 1269 | public init(compactRepresentable: Swift::Bool = true) |
| 1270 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1271 | public init<Bytes>(rawRepresentation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1272 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1273 | public init(pemRepresentation: Swift::String) throws |
| 1274 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1275 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift::RandomAccessCollection, Bytes.Element == Swift::UInt8 |
| 1276 | public var publicKey: CryptoKit::P256.CryptoKit::Signing.CryptoKit::PublicKey { |
| 1277 | get |
| 1278 | } |
| 1279 | public var rawRepresentation: Foundation::Data { |
| 1280 | get |
| 1281 | } |
| 1282 | public var x963Representation: Foundation::Data { |
| 1283 | get |
| 1284 | } |
| 1285 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1286 | public var derRepresentation: Foundation::Data { |
| 1287 | get |
| 1288 | } |
| 1289 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1290 | public var pemRepresentation: Swift::String { |
| 1291 | get |
| 1292 | } |
| 1293 | } |
| 1294 | } |
| 1295 | } |
| 1296 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1297 | extension CryptoKit::P256 { |
| 1298 | public enum KeyAgreement : Swift::Sendable { |
| 1299 | public struct PublicKey : Swift::Sendable { |
| 1300 | public init<D>(rawRepresentation: D) throws where D : Foundation::ContiguousBytes |
| 1301 | public init<Bytes>(compactRepresentation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1302 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1303 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1304 | public init<Bytes>(compressedRepresentation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1305 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1306 | public init(pemRepresentation: Swift::String) throws |
| 1307 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1308 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift::RandomAccessCollection, Bytes.Element == Swift::UInt8 |
| 1309 | public var compactRepresentation: Foundation::Data? { |
| 1310 | get |
| 1311 | } |
| 1312 | public var rawRepresentation: Foundation::Data { |
| 1313 | get |
| 1314 | } |
| 1315 | public var x963Representation: Foundation::Data { |
| 1316 | get |
| 1317 | } |
| 1318 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1319 | public var compressedRepresentation: Foundation::Data { |
| 1320 | get |
| 1321 | } |
| 1322 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1323 | public var derRepresentation: Foundation::Data { |
| 1324 | get |
| 1325 | } |
| 1326 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1327 | public var pemRepresentation: Swift::String { |
| 1328 | get |
| 1329 | } |
| 1330 | } |
| 1331 | public struct PrivateKey : Swift::Sendable { |
| 1332 | public init(compactRepresentable: Swift::Bool = true) |
| 1333 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1334 | public init<Bytes>(rawRepresentation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1335 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1336 | public init(pemRepresentation: Swift::String) throws |
| 1337 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1338 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift::RandomAccessCollection, Bytes.Element == Swift::UInt8 |
| 1339 | public var publicKey: CryptoKit::P256.CryptoKit::KeyAgreement.CryptoKit::PublicKey { |
| 1340 | get |
| 1341 | } |
| 1342 | public var rawRepresentation: Foundation::Data { |
| 1343 | get |
| 1344 | } |
| 1345 | public var x963Representation: Foundation::Data { |
| 1346 | get |
| 1347 | } |
| 1348 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1349 | public var derRepresentation: Foundation::Data { |
| 1350 | get |
| 1351 | } |
| 1352 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1353 | public var pemRepresentation: Swift::String { |
| 1354 | get |
| 1355 | } |
| 1356 | } |
| 1357 | } |
| 1358 | } |
| 1359 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1360 | extension CryptoKit::P384 { |
| 1361 | public enum Signing : Swift::Sendable { |
| 1362 | public struct PublicKey : Swift::Sendable { |
| 1363 | public init<D>(rawRepresentation: D) throws where D : Foundation::ContiguousBytes |
| 1364 | public init<Bytes>(compactRepresentation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1365 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1366 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1367 | public init<Bytes>(compressedRepresentation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1368 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1369 | public init(pemRepresentation: Swift::String) throws |
| 1370 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1371 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift::RandomAccessCollection, Bytes.Element == Swift::UInt8 |
| 1372 | public var compactRepresentation: Foundation::Data? { |
| 1373 | get |
| 1374 | } |
| 1375 | public var rawRepresentation: Foundation::Data { |
| 1376 | get |
| 1377 | } |
| 1378 | public var x963Representation: Foundation::Data { |
| 1379 | get |
| 1380 | } |
| 1381 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1382 | public var compressedRepresentation: Foundation::Data { |
| 1383 | get |
| 1384 | } |
| 1385 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1386 | public var derRepresentation: Foundation::Data { |
| 1387 | get |
| 1388 | } |
| 1389 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1390 | public var pemRepresentation: Swift::String { |
| 1391 | get |
| 1392 | } |
| 1393 | } |
| 1394 | public struct PrivateKey : Swift::Sendable { |
| 1395 | public init(compactRepresentable: Swift::Bool = true) |
| 1396 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1397 | public init<Bytes>(rawRepresentation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1398 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1399 | public init(pemRepresentation: Swift::String) throws |
| 1400 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1401 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift::RandomAccessCollection, Bytes.Element == Swift::UInt8 |
| 1402 | public var publicKey: CryptoKit::P384.CryptoKit::Signing.CryptoKit::PublicKey { |
| 1403 | get |
| 1404 | } |
| 1405 | public var rawRepresentation: Foundation::Data { |
| 1406 | get |
| 1407 | } |
| 1408 | public var x963Representation: Foundation::Data { |
| 1409 | get |
| 1410 | } |
| 1411 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1412 | public var derRepresentation: Foundation::Data { |
| 1413 | get |
| 1414 | } |
| 1415 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1416 | public var pemRepresentation: Swift::String { |
| 1417 | get |
| 1418 | } |
| 1419 | } |
| 1420 | } |
| 1421 | } |
| 1422 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1423 | extension CryptoKit::P384 { |
| 1424 | public enum KeyAgreement : Swift::Sendable { |
| 1425 | public struct PublicKey : Swift::Sendable { |
| 1426 | public init<D>(rawRepresentation: D) throws where D : Foundation::ContiguousBytes |
| 1427 | public init<Bytes>(compactRepresentation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1428 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1429 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1430 | public init<Bytes>(compressedRepresentation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1431 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1432 | public init(pemRepresentation: Swift::String) throws |
| 1433 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1434 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift::RandomAccessCollection, Bytes.Element == Swift::UInt8 |
| 1435 | public var compactRepresentation: Foundation::Data? { |
| 1436 | get |
| 1437 | } |
| 1438 | public var rawRepresentation: Foundation::Data { |
| 1439 | get |
| 1440 | } |
| 1441 | public var x963Representation: Foundation::Data { |
| 1442 | get |
| 1443 | } |
| 1444 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1445 | public var compressedRepresentation: Foundation::Data { |
| 1446 | get |
| 1447 | } |
| 1448 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1449 | public var derRepresentation: Foundation::Data { |
| 1450 | get |
| 1451 | } |
| 1452 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1453 | public var pemRepresentation: Swift::String { |
| 1454 | get |
| 1455 | } |
| 1456 | } |
| 1457 | public struct PrivateKey : Swift::Sendable { |
| 1458 | public init(compactRepresentable: Swift::Bool = true) |
| 1459 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1460 | public init<Bytes>(rawRepresentation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1461 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1462 | public init(pemRepresentation: Swift::String) throws |
| 1463 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1464 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift::RandomAccessCollection, Bytes.Element == Swift::UInt8 |
| 1465 | public var publicKey: CryptoKit::P384.CryptoKit::KeyAgreement.CryptoKit::PublicKey { |
| 1466 | get |
| 1467 | } |
| 1468 | public var rawRepresentation: Foundation::Data { |
| 1469 | get |
| 1470 | } |
| 1471 | public var x963Representation: Foundation::Data { |
| 1472 | get |
| 1473 | } |
| 1474 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1475 | public var derRepresentation: Foundation::Data { |
| 1476 | get |
| 1477 | } |
| 1478 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1479 | public var pemRepresentation: Swift::String { |
| 1480 | get |
| 1481 | } |
| 1482 | } |
| 1483 | } |
| 1484 | } |
| 1485 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1486 | extension CryptoKit::P521 { |
| 1487 | public enum Signing : Swift::Sendable { |
| 1488 | public struct PublicKey : Swift::Sendable { |
| 1489 | public init<D>(rawRepresentation: D) throws where D : Foundation::ContiguousBytes |
| 1490 | public init<Bytes>(compactRepresentation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1491 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1492 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1493 | public init<Bytes>(compressedRepresentation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1494 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1495 | public init(pemRepresentation: Swift::String) throws |
| 1496 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1497 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift::RandomAccessCollection, Bytes.Element == Swift::UInt8 |
| 1498 | public var compactRepresentation: Foundation::Data? { |
| 1499 | get |
| 1500 | } |
| 1501 | public var rawRepresentation: Foundation::Data { |
| 1502 | get |
| 1503 | } |
| 1504 | public var x963Representation: Foundation::Data { |
| 1505 | get |
| 1506 | } |
| 1507 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1508 | public var compressedRepresentation: Foundation::Data { |
| 1509 | get |
| 1510 | } |
| 1511 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1512 | public var derRepresentation: Foundation::Data { |
| 1513 | get |
| 1514 | } |
| 1515 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1516 | public var pemRepresentation: Swift::String { |
| 1517 | get |
| 1518 | } |
| 1519 | } |
| 1520 | public struct PrivateKey : Swift::Sendable { |
| 1521 | public init(compactRepresentable: Swift::Bool = true) |
| 1522 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1523 | public init<Bytes>(rawRepresentation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1524 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1525 | public init(pemRepresentation: Swift::String) throws |
| 1526 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1527 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift::RandomAccessCollection, Bytes.Element == Swift::UInt8 |
| 1528 | public var publicKey: CryptoKit::P521.CryptoKit::Signing.CryptoKit::PublicKey { |
| 1529 | get |
| 1530 | } |
| 1531 | public var rawRepresentation: Foundation::Data { |
| 1532 | get |
| 1533 | } |
| 1534 | public var x963Representation: Foundation::Data { |
| 1535 | get |
| 1536 | } |
| 1537 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1538 | public var derRepresentation: Foundation::Data { |
| 1539 | get |
| 1540 | } |
| 1541 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1542 | public var pemRepresentation: Swift::String { |
| 1543 | get |
| 1544 | } |
| 1545 | } |
| 1546 | } |
| 1547 | } |
| 1548 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1549 | extension CryptoKit::P521 { |
| 1550 | public enum KeyAgreement : Swift::Sendable { |
| 1551 | public struct PublicKey : Swift::Sendable { |
| 1552 | public init<D>(rawRepresentation: D) throws where D : Foundation::ContiguousBytes |
| 1553 | public init<Bytes>(compactRepresentation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1554 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1555 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1556 | public init<Bytes>(compressedRepresentation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1557 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1558 | public init(pemRepresentation: Swift::String) throws |
| 1559 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1560 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift::RandomAccessCollection, Bytes.Element == Swift::UInt8 |
| 1561 | public var compactRepresentation: Foundation::Data? { |
| 1562 | get |
| 1563 | } |
| 1564 | public var rawRepresentation: Foundation::Data { |
| 1565 | get |
| 1566 | } |
| 1567 | public var x963Representation: Foundation::Data { |
| 1568 | get |
| 1569 | } |
| 1570 | @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, *) |
| 1571 | public var compressedRepresentation: Foundation::Data { |
| 1572 | get |
| 1573 | } |
| 1574 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1575 | public var derRepresentation: Foundation::Data { |
| 1576 | get |
| 1577 | } |
| 1578 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1579 | public var pemRepresentation: Swift::String { |
| 1580 | get |
| 1581 | } |
| 1582 | } |
| 1583 | public struct PrivateKey : Swift::Sendable { |
| 1584 | public init(compactRepresentable: Swift::Bool = true) |
| 1585 | public init<Bytes>(x963Representation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1586 | public init<Bytes>(rawRepresentation: Bytes) throws where Bytes : Foundation::ContiguousBytes |
| 1587 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1588 | public init(pemRepresentation: Swift::String) throws |
| 1589 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1590 | public init<Bytes>(derRepresentation: Bytes) throws where Bytes : Swift::RandomAccessCollection, Bytes.Element == Swift::UInt8 |
| 1591 | public var publicKey: CryptoKit::P521.CryptoKit::KeyAgreement.CryptoKit::PublicKey { |
| 1592 | get |
| 1593 | } |
| 1594 | public var rawRepresentation: Foundation::Data { |
| 1595 | get |
| 1596 | } |
| 1597 | public var x963Representation: Foundation::Data { |
| 1598 | get |
| 1599 | } |
| 1600 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1601 | public var derRepresentation: Foundation::Data { |
| 1602 | get |
| 1603 | } |
| 1604 | @available(iOS 14.0, macOS 11.0, watchOS 7.0, tvOS 14.0, macCatalyst 14.0, *) |
| 1605 | public var pemRepresentation: Swift::String { |
| 1606 | get |
| 1607 | } |
| 1608 | } |
| 1609 | } |
| 1610 | } |
| 1611 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1612 | extension CryptoKit::P256.CryptoKit::KeyAgreement.CryptoKit::PrivateKey : CryptoKit::DiffieHellmanKeyAgreement { |
| 1613 | public func sharedSecretFromKeyAgreement(with publicKeyShare: CryptoKit::P256.CryptoKit::KeyAgreement.CryptoKit::PublicKey) throws -> CryptoKit::SharedSecret |
| 1614 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *) |
| 1615 | public typealias PublicKey = CryptoKit::P256.CryptoKit::KeyAgreement.CryptoKit::PublicKey |
| 1616 | } |
| 1617 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1618 | extension CryptoKit::P384.CryptoKit::KeyAgreement.CryptoKit::PrivateKey : CryptoKit::DiffieHellmanKeyAgreement { |
| 1619 | public func sharedSecretFromKeyAgreement(with publicKeyShare: CryptoKit::P384.CryptoKit::KeyAgreement.CryptoKit::PublicKey) throws -> CryptoKit::SharedSecret |
| 1620 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *) |
| 1621 | public typealias PublicKey = CryptoKit::P384.CryptoKit::KeyAgreement.CryptoKit::PublicKey |
| 1622 | } |
| 1623 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1624 | extension CryptoKit::P521.CryptoKit::KeyAgreement.CryptoKit::PrivateKey : CryptoKit::DiffieHellmanKeyAgreement { |
| 1625 | public func sharedSecretFromKeyAgreement(with publicKeyShare: CryptoKit::P521.CryptoKit::KeyAgreement.CryptoKit::PublicKey) throws -> CryptoKit::SharedSecret |
| 1626 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *) |
| 1627 | public typealias PublicKey = CryptoKit::P521.CryptoKit::KeyAgreement.CryptoKit::PublicKey |
| 1628 | } |
| 1629 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1630 | extension CryptoKit::P256.CryptoKit::Signing { |
| 1631 | public struct ECDSASignature : Foundation::ContiguousBytes, Swift::Sendable { |
| 1632 | public var rawRepresentation: Foundation::Data |
| 1633 | public init<D>(rawRepresentation: D) throws where D : Foundation::DataProtocol |
| 1634 | public init<D>(derRepresentation: D) throws where D : Foundation::DataProtocol |
| 1635 | public func withUnsafeBytes<R>(_ body: (Swift::UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 1636 | public var derRepresentation: Foundation::Data { |
| 1637 | get |
| 1638 | } |
| 1639 | } |
| 1640 | } |
| 1641 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1642 | extension CryptoKit::P256.CryptoKit::Signing.CryptoKit::PrivateKey { |
| 1643 | public func signature<D>(for digest: D) throws -> CryptoKit::P256.CryptoKit::Signing.CryptoKit::ECDSASignature where D : CryptoKit::Digest |
| 1644 | } |
| 1645 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1646 | extension CryptoKit::P256.CryptoKit::Signing.CryptoKit::PrivateKey { |
| 1647 | public func signature<D>(for data: D) throws -> CryptoKit::P256.CryptoKit::Signing.CryptoKit::ECDSASignature where D : Foundation::DataProtocol |
| 1648 | } |
| 1649 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1650 | extension CryptoKit::P256.CryptoKit::Signing.CryptoKit::PublicKey { |
| 1651 | public func isValidSignature<D>(_ signature: CryptoKit::P256.CryptoKit::Signing.CryptoKit::ECDSASignature, for digest: D) -> Swift::Bool where D : CryptoKit::Digest |
| 1652 | } |
| 1653 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1654 | extension CryptoKit::P256.CryptoKit::Signing.CryptoKit::PublicKey { |
| 1655 | public func isValidSignature<D>(_ signature: CryptoKit::P256.CryptoKit::Signing.CryptoKit::ECDSASignature, for data: D) -> Swift::Bool where D : Foundation::DataProtocol |
| 1656 | } |
| 1657 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1658 | extension CryptoKit::P384.CryptoKit::Signing { |
| 1659 | public struct ECDSASignature : Foundation::ContiguousBytes, Swift::Sendable { |
| 1660 | public var rawRepresentation: Foundation::Data |
| 1661 | public init<D>(rawRepresentation: D) throws where D : Foundation::DataProtocol |
| 1662 | public init<D>(derRepresentation: D) throws where D : Foundation::DataProtocol |
| 1663 | public func withUnsafeBytes<R>(_ body: (Swift::UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 1664 | public var derRepresentation: Foundation::Data { |
| 1665 | get |
| 1666 | } |
| 1667 | } |
| 1668 | } |
| 1669 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1670 | extension CryptoKit::P384.CryptoKit::Signing.CryptoKit::PrivateKey { |
| 1671 | public func signature<D>(for digest: D) throws -> CryptoKit::P384.CryptoKit::Signing.CryptoKit::ECDSASignature where D : CryptoKit::Digest |
| 1672 | } |
| 1673 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1674 | extension CryptoKit::P384.CryptoKit::Signing.CryptoKit::PrivateKey { |
| 1675 | public func signature<D>(for data: D) throws -> CryptoKit::P384.CryptoKit::Signing.CryptoKit::ECDSASignature where D : Foundation::DataProtocol |
| 1676 | } |
| 1677 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1678 | extension CryptoKit::P384.CryptoKit::Signing.CryptoKit::PublicKey { |
| 1679 | public func isValidSignature<D>(_ signature: CryptoKit::P384.CryptoKit::Signing.CryptoKit::ECDSASignature, for digest: D) -> Swift::Bool where D : CryptoKit::Digest |
| 1680 | } |
| 1681 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1682 | extension CryptoKit::P384.CryptoKit::Signing.CryptoKit::PublicKey { |
| 1683 | public func isValidSignature<D>(_ signature: CryptoKit::P384.CryptoKit::Signing.CryptoKit::ECDSASignature, for data: D) -> Swift::Bool where D : Foundation::DataProtocol |
| 1684 | } |
| 1685 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1686 | extension CryptoKit::P521.CryptoKit::Signing { |
| 1687 | public struct ECDSASignature : Foundation::ContiguousBytes, Swift::Sendable { |
| 1688 | public var rawRepresentation: Foundation::Data |
| 1689 | public init<D>(rawRepresentation: D) throws where D : Foundation::DataProtocol |
| 1690 | public init<D>(derRepresentation: D) throws where D : Foundation::DataProtocol |
| 1691 | public func withUnsafeBytes<R>(_ body: (Swift::UnsafeRawBufferPointer) throws -> R) rethrows -> R |
| 1692 | public var derRepresentation: Foundation::Data { |
| 1693 | get |
| 1694 | } |
| 1695 | } |
| 1696 | } |
| 1697 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1698 | extension CryptoKit::P521.CryptoKit::Signing.CryptoKit::PrivateKey { |
| 1699 | public func signature<D>(for digest: D) throws -> CryptoKit::P521.CryptoKit::Signing.CryptoKit::ECDSASignature where D : CryptoKit::Digest |
| 1700 | } |
| 1701 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1702 | extension CryptoKit::P521.CryptoKit::Signing.CryptoKit::PrivateKey { |
| 1703 | public func signature<D>(for data: D) throws -> CryptoKit::P521.CryptoKit::Signing.CryptoKit::ECDSASignature where D : Foundation::DataProtocol |
| 1704 | } |
| 1705 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1706 | extension CryptoKit::P521.CryptoKit::Signing.CryptoKit::PublicKey { |
| 1707 | public func isValidSignature<D>(_ signature: CryptoKit::P521.CryptoKit::Signing.CryptoKit::ECDSASignature, for digest: D) -> Swift::Bool where D : CryptoKit::Digest |
| 1708 | } |
| 1709 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1710 | extension CryptoKit::P521.CryptoKit::Signing.CryptoKit::PublicKey { |
| 1711 | public func isValidSignature<D>(_ signature: CryptoKit::P521.CryptoKit::Signing.CryptoKit::ECDSASignature, for data: D) -> Swift::Bool where D : Foundation::DataProtocol |
| 1712 | } |
| 1713 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1714 | extension CryptoKit::SecureEnclave { |
| 1715 | public enum MLKEM768 : Swift::Sendable { |
| 1716 | public struct PrivateKey : CryptoKit::KEMPrivateKey, Swift::Sendable { |
| 1717 | public let publicKey: CryptoKit::MLKEM768.CryptoKit::PublicKey |
| 1718 | public let dataRepresentation: Foundation::Data |
| 1719 | public static func generate() throws -> CryptoKit::SecureEnclave.CryptoKit::MLKEM768.CryptoKit::PrivateKey |
| 1720 | public init(accessControl: Security::SecAccessControl = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, [], nil)!, authenticationContext: LocalAuthentication::LAContext? = nil) throws |
| 1721 | public init<D>(dataRepresentation: D, authenticationContext: LocalAuthentication::LAContext? = nil) throws where D : Foundation::DataProtocol |
| 1722 | public func decapsulate<D>(_ encapsulated: D) throws -> CryptoKit::SymmetricKey where D : Foundation::DataProtocol |
| 1723 | @available(macOS 26.0, iOS 26.0, tvOS 26.0, watchOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1724 | public typealias PublicKey = CryptoKit::MLKEM768.CryptoKit::PublicKey |
| 1725 | } |
| 1726 | } |
| 1727 | } |
| 1728 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1729 | extension CryptoKit::SecureEnclave { |
| 1730 | public enum MLKEM1024 : Swift::Sendable { |
| 1731 | public struct PrivateKey : CryptoKit::KEMPrivateKey, Swift::Sendable { |
| 1732 | public let publicKey: CryptoKit::MLKEM1024.CryptoKit::PublicKey |
| 1733 | public let dataRepresentation: Foundation::Data |
| 1734 | public static func generate() throws -> CryptoKit::SecureEnclave.CryptoKit::MLKEM1024.CryptoKit::PrivateKey |
| 1735 | public init(accessControl: Security::SecAccessControl = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, [], nil)!, authenticationContext: LocalAuthentication::LAContext? = nil) throws |
| 1736 | public init<D>(dataRepresentation: D, authenticationContext: LocalAuthentication::LAContext? = nil) throws where D : Foundation::DataProtocol |
| 1737 | public func decapsulate<D>(_ encapsulated: D) throws -> CryptoKit::SymmetricKey where D : Foundation::DataProtocol |
| 1738 | @available(macOS 26.0, iOS 26.0, tvOS 26.0, watchOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1739 | public typealias PublicKey = CryptoKit::MLKEM1024.CryptoKit::PublicKey |
| 1740 | } |
| 1741 | } |
| 1742 | } |
| 1743 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1744 | extension CryptoKit::SHA3_256 : CryptoKit::HashFunction {} |
| 1745 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1746 | extension CryptoKit::SHA3_384 : CryptoKit::HashFunction {} |
| 1747 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1748 | extension CryptoKit::SHA3_512 : CryptoKit::HashFunction {} |
| 1749 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1750 | extension CryptoKit::KEM.CryptoKit::Errors : Swift::Equatable {} |
| 1751 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1752 | extension CryptoKit::KEM.CryptoKit::Errors : Swift::Hashable {} |
| 1753 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1754 | extension CryptoKit::SHA256 : CryptoKit::HashFunction {} |
| 1755 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1756 | extension CryptoKit::SHA384 : CryptoKit::HashFunction {} |
| 1757 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1758 | extension CryptoKit::SHA512 : CryptoKit::HashFunction {} |
| 1759 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1760 | extension CryptoKit::Insecure.CryptoKit::SHA1 : CryptoKit::HashFunction {} |
| 1761 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1762 | extension CryptoKit::Insecure.CryptoKit::MD5 : CryptoKit::HashFunction {} |
| 1763 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 1764 | extension CryptoKit::HPKE.CryptoKit::Errors : Swift::Equatable {} |
| 1765 | @available(iOS 17.0, macOS 14.0, watchOS 10.0, tvOS 17.0, macCatalyst 17.0, *) |
| 1766 | extension CryptoKit::HPKE.CryptoKit::Errors : Swift::Hashable {} |
| 1767 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1768 | extension CryptoKit::SHA256Digest : CryptoKit::Digest {} |
| 1769 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1770 | extension CryptoKit::SHA384Digest : CryptoKit::Digest {} |
| 1771 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1772 | extension CryptoKit::SHA512Digest : CryptoKit::Digest {} |
| 1773 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1774 | extension CryptoKit::Insecure.CryptoKit::SHA1Digest : CryptoKit::Digest {} |
| 1775 | @available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, macCatalyst 13.0, *) |
| 1776 | extension CryptoKit::Insecure.CryptoKit::MD5Digest : CryptoKit::Digest {} |
| 1777 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1778 | extension CryptoKit::SHA3_256Digest : CryptoKit::Digest {} |
| 1779 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1780 | extension CryptoKit::SHA3_384Digest : CryptoKit::Digest {} |
| 1781 | @available(iOS 26.0, macOS 26.0, watchOS 26.0, tvOS 26.0, macCatalyst 26.0, visionOS 26.0, *) |
| 1782 | extension CryptoKit::SHA3_512Digest : CryptoKit::Digest {} |