mirror of
https://github.com/apple/swift-crypto
synced 2026-11-25 04:47:47 +00:00
Improve DocC landing pages by mimicking Apple's CryptoKit docs
### Motivation:
Right now the DocC docs group all APIs by protocols, structures and
enums.
By adding a topics section in the landing page we can group them by type
("Ciphers", "Public key cryptography", etc.) exactly in the way Apple
does in [CryptoKit
docs](https://developer.apple.com/documentation/cryptokit/).
### Modifications:
- Fix DocC compilation errors in `_CryptoExtras`
- Add topics section in `_CryptoExtras` landing page
- Add topics section in `Crypto` landing page
### Result:
APIs will be grouped by type.
---------
Co-authored-by: Cory Benfield <lukasa@apple.com>
1.3 KiB
1.3 KiB
Crypto
A cryptography library for Swift.
Overview
Swift Crypto provides a Swift library for common cryptographic operations. It is available as a Swift package and provides two main libraries:
Crypto- an open-source implementation of a substantial portion of the API of Apple CryptoKit suitable for use on Linux platforms. It enables cross-platform or server applications with the advantages of CryptoKit.CryptoExtras- a collection of additional cryptographic primitives and utilities that are not part of CryptoKit but useful in a server environment.
Swift Crypto is built on top of BoringSSL, Google's fork of OpenSSL. The current features of Swift Crypto cover key exchange, key derivation, encryption and decryption, hashing, message authentication, and more.
Topics
Cryptographically secure hashes
HashFunctionSHA512SHA384SHA256
Message authentication codes
HMACSymmetricKeySymmetricKeySize
Ciphers
AESChaChaPoly
Public key cryptography
Curve25519P521P384P256SharedSecretHPKE
Key derivation functions
HKDF
Errors
CryptoKitErrorCryptoKitASN1Error
Legacy algorithms
Insecure