mirror of
https://github.com/apple/swift-crypto
synced 2026-11-24 04:37:48 +00:00
Motivation: Some critical use-cases require RSA signing support. This is most commonly required when interacting with legacy systems. While RSA is an older and less efficient cryptosystem than the elliptic-curve algorithms supported by Swift Crypto already, those interop use-cases are unavoidable. This version of the patch does not promote RSA to supported API at this time, as we'd like to let the API bake somewhat. Users are free to use it, but these APIs are not covered by semantic versioning at this time and may break in future. Modifications: - Defined new RSA API - Implemented on top of `Security` when available - Implemented on top of BoringSSL when `Security` is unavailable Result: Users can do RSA if needed.
18 lines
573 B
Swift
18 lines
573 B
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the SwiftCrypto open source project
|
|
//
|
|
// Copyright (c) 2019-2021 Apple Inc. and the SwiftCrypto project authors
|
|
// Licensed under Apache License v2.0
|
|
//
|
|
// See LICENSE.txt for license information
|
|
// See CONTRIBUTORS.md for the list of SwiftCrypto project authors
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
public enum _CryptoRSAError: Error {
|
|
case invalidPEMDocument
|
|
}
|