Open joey-gm opened 1 year ago
Can you copy-paste the test output please?
Can you copy-paste the test output please?
swift-crypto % swift test
Building for debugging...
swift-crypto/Tests/CryptoExtrasTests/Utils/BytesUtil.swift:74:20: warning: 'init(bytesNoCopy:length:encoding:freeWhenDone:)' was deprecated in macOS 13: String does not support no-copy initialization
return String(bytesNoCopy: ptr, length: hexLen, encoding: .utf8, freeWhenDone: true)!
^
swift-crypto/Tests/CryptoTests/Utils/XCTestUtils.swift:20:18: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
func wrapper
swift-crypto % swift -v
Apple Swift version 5.9 (swiftlang-5.9.0.114.10 clang-1500.0.29.1)
Target: arm64-apple-macosx13.0
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-help intro
This is a change in the beta SDKs. Applying an appropriate fix will want to return something byte-aligned from keySizeInBits
, which can be done using SecKeyGetBlockSize
instead of the current use of SecKeyCopyAttributes
and kSecAttrKeySizeInBits
. Would you be interested in fixing that up?
The following 6 "awkward RSA Keys" tests failed (XCTAssertEqual failed: threw error "incorrectParameterSize") when built with Swift 5.9 - Apple Swift version 5.9 (swiftlang-5.9.0.114.10 clang-1500.0.29.1)
https://github.com/apple/swift-crypto/blob/c433cd3341e14590ba7efccb0836cd3cd0a0c055/Tests/_CryptoExtrasTests/TestRSASigning.swift#L512-L517