swift-crypto icon indicating copy to clipboard operation
swift-crypto copied to clipboard

Open-source implementation of a substantial portion of the API of Apple CryptoKit suitable for use on Linux platforms.

Results 66 swift-crypto issues
Sort by recently updated
recently updated
newest added

### New Regression Checklist - [x] I'm using the latest version of Swift Crypto (master branch) - [x] I read the [Contribution Guidelines](https://github.com/apple/swift-crypto/blob/master/CONTRIBUTING.md) - [x] I searched for [existing GitHub...

### Motivation: The test code has utility extensions for converting bytes to and from hex strings. However, the `hexString` computed property only returned half the bytes it should because it...

### Motivation RFC 9474 defines the RSA Blind Signatures protocol[^0], which are a useful building block of privacy-preserving schemes. ### Modifications This PR adds the following public API surface, implementing...

🔼 needs-minor-version-bump

In version 3.4, the `_RSA.Encryption.PublicKey` introduced a set of unsafe APIs to handle cases where `keySizeInBits` is less than 2048. However, in the implementation, the boundary check for `keySizeInBits` in...

🔨 semver/patch

New Issue Checklist I'm using the latest version of Swift Crypto (main branch) I read the [Contribution Guidelines](https://github.com/apple/swift-crypto/blob/master/CONTRIBUTING.md) I searched for [existing GitHub issues](https://github.com/apple/swift-crypto/issues) Expected behavior Build to succeed Actual...

This PR reduces the number of heap allocations needed to compute a hash digest from 7 to 1. ### Checklist - [x] I've run tests to see all new and...

### New Issue Checklist - [X] I'm using the latest version of Swift Crypto (`main` branch) - [X] I read the [Contribution Guidelines](https://github.com/apple/swift-crypto/blob/master/CONTRIBUTING.md) - [X] I searched for [existing GitHub...

### Motivation When an error occurs in a BoringSSL call, we typically embed the packed error code in a `CryptoKitError.underlyingCoreCryptoError(error: Int32)`. This packed error code consists of the library and...

swift 5.9.0, in ci/cd I have this error

### Motivation: At times we might need to get the raw elements of an RSA key, e.g when debugging. ### Modifications: Add a `getKeyPrimitives` method to the RSA (public and...

🔼 needs-minor-version-bump