mirror of
https://github.com/apple/swift-crypto
synced 2026-11-23 04:34:21 +00:00
Motivation The init(derRepresentation:) and init(pemRepresentation:) constructors for RSA public keys support both PKCS#8 and PKCS#1 key formats on Darwin. This support was missing from Linux, with only PKCS#8 support. This patch brings the two platforms into parity. Modifications Add code to try both versions on Linux. Add tests. Results PKCS#1 keys are supported on Linux too!