mirror of
https://github.com/apple/swift-crypto
synced 2026-11-24 04:37:48 +00:00
Provides a typealias for `CryptoKitError` to hide the implementation detail of CryptoKit. Resolves #274 ### Motivation: CryptoKit is an implementation detail on Apple platforms - this makes it clearer for users coming from other platforms ### Modifications: Added a type alias and updated documentation Co-authored-by: Cory Benfield <lukasa@apple.com>
19 lines
720 B
Swift
19 lines
720 B
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the SwiftCrypto open source project
|
|
//
|
|
// Copyright (c) 2019-2025 Apple Inc. and the SwiftCrypto project authors
|
|
// Licensed under Apache License v2.0
|
|
//
|
|
// See LICENSE.txt for license information
|
|
// See CONTRIBUTORS.txt for the list of SwiftCrypto project authors
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
@available(iOS 13.0, macOS 10.15, watchOS 6.0, tvOS 13.0, *)
|
|
public typealias CryptoError = CryptoKitError
|
|
@available(iOS 14, macOS 11, tvOS 14, watchOS 7, *)
|
|
public typealias CryptoASN1Error = CryptoKitASN1Error
|