Build Information
Successful build of SwiftDilithium, reference 3.5.0 (e5d439
), with Swift 6.0 for macOS (SPM) on 5 Apr 2025 14:28:27 UTC.
Swift 6 data race errors: 4
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/leif-ibsen/SwiftDilithium.git
Reference: 3.5.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/leif-ibsen/SwiftDilithium
* tag 3.5.0 -> FETCH_HEAD
HEAD is now at e5d4392 Release 3.5.0
Cloned https://github.com/leif-ibsen/SwiftDilithium.git
Revision (git rev-parse @):
e5d4392af75f6c6094e5a15ec90f432eff9eb733
SUCCESS checkout https://github.com/leif-ibsen/SwiftDilithium.git at 3.5.0
Fetching https://github.com/leif-ibsen/BigInt
Fetching https://github.com/leif-ibsen/ASN1
Fetching https://github.com/leif-ibsen/Digest
[1/2427] Fetching asn1
[26/5020] Fetching asn1, digest
[1056/10536] Fetching asn1, digest, bigint
Fetched https://github.com/leif-ibsen/BigInt from cache (1.35s)
Fetched https://github.com/leif-ibsen/Digest from cache (1.35s)
Fetched https://github.com/leif-ibsen/ASN1 from cache (1.35s)
Computing version for https://github.com/leif-ibsen/Digest
Computed https://github.com/leif-ibsen/Digest at 1.13.0 (0.44s)
Computing version for https://github.com/leif-ibsen/BigInt
Computed https://github.com/leif-ibsen/BigInt at 1.21.0 (0.43s)
Computing version for https://github.com/leif-ibsen/ASN1
Computed https://github.com/leif-ibsen/ASN1 at 2.7.0 (3.26s)
Creating working copy for https://github.com/leif-ibsen/ASN1
Working copy of https://github.com/leif-ibsen/ASN1 resolved at 2.7.0
Creating working copy for https://github.com/leif-ibsen/BigInt
Working copy of https://github.com/leif-ibsen/BigInt resolved at 1.21.0
Creating working copy for https://github.com/leif-ibsen/Digest
Working copy of https://github.com/leif-ibsen/Digest resolved at 1.13.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swiftdilithium",
"name": "SwiftDilithium",
"url": "https://github.com/leif-ibsen/SwiftDilithium.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftDilithium",
"dependencies": [
{
"identity": "asn1",
"name": "ASN1",
"url": "https://github.com/leif-ibsen/ASN1",
"version": "2.7.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ASN1",
"dependencies": [
{
"identity": "bigint",
"name": "BigInt",
"url": "https://github.com/leif-ibsen/BigInt",
"version": "1.21.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BigInt",
"dependencies": [
]
}
]
},
{
"identity": "bigint",
"name": "BigInt",
"url": "https://github.com/leif-ibsen/BigInt",
"version": "1.21.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BigInt",
"dependencies": [
]
},
{
"identity": "digest",
"name": "Digest",
"url": "https://github.com/leif-ibsen/Digest",
"version": "1.13.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Digest",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/leif-ibsen/SwiftDilithium.git
[17/1683] Fetching swiftdilithium
Fetched https://github.com/leif-ibsen/SwiftDilithium.git from cache (1.74s)
Fetching https://github.com/leif-ibsen/ASN1 from cache
Fetching https://github.com/leif-ibsen/Digest from cache
Fetching https://github.com/leif-ibsen/BigInt from cache
Fetched https://github.com/leif-ibsen/BigInt from cache (0.45s)
Fetched https://github.com/leif-ibsen/Digest from cache (0.45s)
Fetched https://github.com/leif-ibsen/ASN1 from cache (0.45s)
Computing version for https://github.com/leif-ibsen/Digest
Computed https://github.com/leif-ibsen/Digest at 1.13.0 (0.02s)
Computing version for https://github.com/leif-ibsen/BigInt
Computed https://github.com/leif-ibsen/BigInt at 1.21.0 (0.03s)
Computing version for https://github.com/leif-ibsen/ASN1
Computed https://github.com/leif-ibsen/ASN1 at 2.7.0 (0.02s)
Creating working copy for https://github.com/leif-ibsen/SwiftDilithium.git
Working copy of https://github.com/leif-ibsen/SwiftDilithium.git resolved at 3.5.0 (e5d4392)
Creating working copy for https://github.com/leif-ibsen/BigInt
Working copy of https://github.com/leif-ibsen/BigInt resolved at 1.21.0
Creating working copy for https://github.com/leif-ibsen/ASN1
Working copy of https://github.com/leif-ibsen/ASN1 resolved at 2.7.0
Creating working copy for https://github.com/leif-ibsen/Digest
Working copy of https://github.com/leif-ibsen/Digest resolved at 1.13.0
warning: '.resolve-product-dependencies': dependency 'swiftdilithium' is not used by any target
Found 3 product dependencies
- ASN1
- BigInt
- Digest
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/leif-ibsen/SwiftDilithium.git
https://github.com/leif-ibsen/SwiftDilithium.git
{
"dependencies" : [
{
"identity" : "asn1",
"requirement" : {
"range" : [
{
"lower_bound" : "2.7.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/leif-ibsen/ASN1"
},
{
"identity" : "bigint",
"requirement" : {
"range" : [
{
"lower_bound" : "1.21.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/leif-ibsen/BigInt"
},
{
"identity" : "digest",
"requirement" : {
"range" : [
{
"lower_bound" : "1.13.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/leif-ibsen/Digest"
}
],
"manifest_display_name" : "SwiftDilithium",
"name" : "SwiftDilithium",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftDilithium",
"targets" : [
"SwiftDilithium"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftDilithiumTests",
"module_type" : "SwiftTarget",
"name" : "SwiftDilithiumTests",
"path" : "Tests/SwiftDilithiumTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftDilithiumTests/Resources/katTestKeyGen.rsp",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftDilithiumTests/Resources/katTestSign.rsp",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftDilithiumTests/Resources/katTestVerify.rsp",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"BitPacktest.swift",
"ContextTest.swift",
"DecomposeTest.swift",
"EncodeDecodeTest.swift",
"ExceptionTest.swift",
"ExpandTest.swift",
"HintBitTest.swift",
"KATTestKeyGen.swift",
"KATTestSign.swift",
"KATTestVerify.swift",
"MakeHintTest.swift",
"NTTTest.swift",
"PEMTest.swift",
"Power2RoundTest.swift",
"SampleInBallTest.swift",
"SignVerifyTest.swift",
"Util.swift"
],
"target_dependencies" : [
"SwiftDilithium"
],
"type" : "test"
},
{
"c99name" : "SwiftDilithium",
"module_type" : "SwiftTarget",
"name" : "SwiftDilithium",
"path" : "Sources/SwiftDilithium",
"product_dependencies" : [
"BigInt",
"ASN1",
"Digest"
],
"product_memberships" : [
"SwiftDilithium"
],
"sources" : [
"ByteSlice.swift",
"Dilithium.swift",
"Exception.swift",
"Kind.swift",
"Matrix.swift",
"Parameters.swift",
"Polynomial.swift",
"PreHash.swift",
"PublicKey.swift",
"SecretKey.swift",
"Vector.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-5BDAB9E9C0126B9D.txt
[6/27] Compiling Digest SHAKE.swift
[7/28] Compiling BigInt ExpMod.swift
[8/29] Compiling BigInt GCD.swift
[9/29] Compiling BigInt Factorial.swift
[10/29] Compiling Digest XOF.swift
[11/29] Compiling Digest SHA2.swift
[12/29] Compiling Digest SHA1.swift
[13/29] Compiling Digest HMAC.swift
[14/29] Compiling Digest KDF.swift
[15/29] Compiling Digest MD.swift
[16/29] Compiling Digest SHA3.swift
[17/29] Compiling BigInt FFT.swift
[18/29] Compiling BigInt CRT.swift
[19/29] Compiling BigInt Karatsuba.swift
[20/29] Compiling BigInt Limbs.swift
[21/29] Compiling BigInt ToomCook.swift
[22/29] Compiling BigInt BitSieve.swift
[23/29] Compiling BigInt BurnikelZiegler.swift
[24/29] Compiling Digest BLAKE.swift
[25/29] Emitting module Digest
[26/29] Compiling Digest Base64.swift
[27/29] Emitting module BigInt
[28/29] Compiling BigInt BigFrac.swift
[29/29] Compiling BigInt BigInt.swift
[30/50] Emitting module ASN1
[31/52] Compiling ASN1 ASN1Time.swift
[32/52] Compiling ASN1 ASN1UTCTime.swift
[33/52] Compiling ASN1 ASN1UTF8String.swift
[34/52] Compiling ASN1 InputStream.swift
[35/52] Compiling ASN1 ASN1IA5String.swift
[36/52] Compiling ASN1 ASN1Integer.swift
[37/52] Compiling ASN1 ASN1Exception.swift
[38/52] Compiling ASN1 ASN1GeneralizedTime.swift
[39/52] Compiling ASN1 ASN1Sequence.swift
[40/52] Compiling ASN1 ASN1Set.swift
[41/52] Compiling ASN1 ASN1SimpleType.swift
[42/52] Compiling ASN1 ASN1T61String.swift
[43/52] Compiling ASN1 ASN1OctetString.swift
[44/52] Compiling ASN1 ASN1PrintableString.swift
[45/52] Compiling ASN1 ASN1Boolean.swift
[46/52] Compiling ASN1 ASN1Collection.swift
[47/52] Compiling ASN1 ASN1Ctx.swift
[48/52] Compiling ASN1 ASN1Null.swift
[49/52] Compiling ASN1 ASN1ObjectIdentifier.swift
[50/52] Compiling ASN1 ASN1.swift
[51/52] Compiling ASN1 ASN1BMPString.swift
[52/52] Compiling ASN1 ASN1BitString.swift
[53/63] Compiling SwiftDilithium PublicKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:42:16: warning: static property 'DSA44' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
40 |
41 | // Dilithium 2 parameters
42 | static let DSA44 = Parameters(tau: 39, entr: 192, lambda: 128, gamma1: 1 << 17, gamma2: 95232, k: 4, l: 4, eta: 2, beta: 78, omega: 80,
| |- warning: static property 'DSA44' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'DSA44' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | sigSize: 2420, pkSize: 1312, skSize: 2560, oid: ASN1ObjectIdentifier("2.16.840.1.101.3.4.3.17")!)
44 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:46:16: warning: static property 'DSA65' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
44 |
45 | // Dilithium 3 parameters
46 | static let DSA65 = Parameters(tau: 49, entr: 225, lambda: 192, gamma1: 1 << 19, gamma2: 261888, k: 6, l: 5, eta: 4, beta: 196, omega: 55,
| |- warning: static property 'DSA65' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'DSA65' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | sigSize: 3309, pkSize: 1952, skSize: 4032, oid: ASN1ObjectIdentifier("2.16.840.1.101.3.4.3.18")!)
48 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:50:16: warning: static property 'DSA87' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
48 |
49 | // Dilithium 5 parameters
50 | static let DSA87 = Parameters(tau: 60, entr: 257, lambda: 256, gamma1: 1 << 19, gamma2: 261888, k: 8, l: 7, eta: 2, beta: 120, omega: 75,
| |- warning: static property 'DSA87' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'DSA87' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | sigSize: 4627, pkSize: 2592, skSize: 4896, oid: ASN1ObjectIdentifier("2.16.840.1.101.3.4.3.19")!)
52 |
[54/63] Compiling SwiftDilithium SecretKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:42:16: warning: static property 'DSA44' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
40 |
41 | // Dilithium 2 parameters
42 | static let DSA44 = Parameters(tau: 39, entr: 192, lambda: 128, gamma1: 1 << 17, gamma2: 95232, k: 4, l: 4, eta: 2, beta: 78, omega: 80,
| |- warning: static property 'DSA44' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'DSA44' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | sigSize: 2420, pkSize: 1312, skSize: 2560, oid: ASN1ObjectIdentifier("2.16.840.1.101.3.4.3.17")!)
44 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:46:16: warning: static property 'DSA65' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
44 |
45 | // Dilithium 3 parameters
46 | static let DSA65 = Parameters(tau: 49, entr: 225, lambda: 192, gamma1: 1 << 19, gamma2: 261888, k: 6, l: 5, eta: 4, beta: 196, omega: 55,
| |- warning: static property 'DSA65' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'DSA65' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | sigSize: 3309, pkSize: 1952, skSize: 4032, oid: ASN1ObjectIdentifier("2.16.840.1.101.3.4.3.18")!)
48 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:50:16: warning: static property 'DSA87' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
48 |
49 | // Dilithium 5 parameters
50 | static let DSA87 = Parameters(tau: 60, entr: 257, lambda: 256, gamma1: 1 << 19, gamma2: 261888, k: 8, l: 7, eta: 2, beta: 120, omega: 75,
| |- warning: static property 'DSA87' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'DSA87' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | sigSize: 4627, pkSize: 2592, skSize: 4896, oid: ASN1ObjectIdentifier("2.16.840.1.101.3.4.3.19")!)
52 |
[55/64] Compiling SwiftDilithium Vector.swift
[56/64] Compiling SwiftDilithium PreHash.swift
[57/64] Compiling SwiftDilithium Parameters.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:29:16: warning: static property 'params' is not concurrency-safe because non-'Sendable' type '[Parameters]' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
27 | // Figures from [DILITHIUM] section 4
28 |
29 | static let params: [Parameters] = [
| |- warning: static property 'params' is not concurrency-safe because non-'Sendable' type '[Parameters]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'params' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | // Dilithium 2 parameters
31 | Parameters(tau: 39, entr: 192, lambda: 128, gamma1: 1 << 17, gamma2: 95232, k: 4, l: 4, eta: 2, beta: 78, omega: 80,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:42:16: warning: static property 'DSA44' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
40 |
41 | // Dilithium 2 parameters
42 | static let DSA44 = Parameters(tau: 39, entr: 192, lambda: 128, gamma1: 1 << 17, gamma2: 95232, k: 4, l: 4, eta: 2, beta: 78, omega: 80,
| |- warning: static property 'DSA44' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'DSA44' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | sigSize: 2420, pkSize: 1312, skSize: 2560, oid: ASN1ObjectIdentifier("2.16.840.1.101.3.4.3.17")!)
44 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:46:16: warning: static property 'DSA65' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
44 |
45 | // Dilithium 3 parameters
46 | static let DSA65 = Parameters(tau: 49, entr: 225, lambda: 192, gamma1: 1 << 19, gamma2: 261888, k: 6, l: 5, eta: 4, beta: 196, omega: 55,
| |- warning: static property 'DSA65' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'DSA65' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | sigSize: 3309, pkSize: 1952, skSize: 4032, oid: ASN1ObjectIdentifier("2.16.840.1.101.3.4.3.18")!)
48 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:50:16: warning: static property 'DSA87' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
48 |
49 | // Dilithium 5 parameters
50 | static let DSA87 = Parameters(tau: 60, entr: 257, lambda: 256, gamma1: 1 << 19, gamma2: 261888, k: 8, l: 7, eta: 2, beta: 120, omega: 75,
| |- warning: static property 'DSA87' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'DSA87' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | sigSize: 4627, pkSize: 2592, skSize: 4896, oid: ASN1ObjectIdentifier("2.16.840.1.101.3.4.3.19")!)
52 |
[58/64] Compiling SwiftDilithium Matrix.swift
[59/64] Compiling SwiftDilithium Exception.swift
[60/64] Compiling SwiftDilithium Kind.swift
[61/64] Emitting module SwiftDilithium
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:29:16: warning: static property 'params' is not concurrency-safe because non-'Sendable' type '[Parameters]' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
27 | // Figures from [DILITHIUM] section 4
28 |
29 | static let params: [Parameters] = [
| |- warning: static property 'params' is not concurrency-safe because non-'Sendable' type '[Parameters]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'params' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | // Dilithium 2 parameters
31 | Parameters(tau: 39, entr: 192, lambda: 128, gamma1: 1 << 17, gamma2: 95232, k: 4, l: 4, eta: 2, beta: 78, omega: 80,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:42:16: warning: static property 'DSA44' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
40 |
41 | // Dilithium 2 parameters
42 | static let DSA44 = Parameters(tau: 39, entr: 192, lambda: 128, gamma1: 1 << 17, gamma2: 95232, k: 4, l: 4, eta: 2, beta: 78, omega: 80,
| |- warning: static property 'DSA44' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'DSA44' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | sigSize: 2420, pkSize: 1312, skSize: 2560, oid: ASN1ObjectIdentifier("2.16.840.1.101.3.4.3.17")!)
44 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:46:16: warning: static property 'DSA65' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
44 |
45 | // Dilithium 3 parameters
46 | static let DSA65 = Parameters(tau: 49, entr: 225, lambda: 192, gamma1: 1 << 19, gamma2: 261888, k: 6, l: 5, eta: 4, beta: 196, omega: 55,
| |- warning: static property 'DSA65' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'DSA65' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | sigSize: 3309, pkSize: 1952, skSize: 4032, oid: ASN1ObjectIdentifier("2.16.840.1.101.3.4.3.18")!)
48 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:50:16: warning: static property 'DSA87' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
48 |
49 | // Dilithium 5 parameters
50 | static let DSA87 = Parameters(tau: 60, entr: 257, lambda: 256, gamma1: 1 << 19, gamma2: 261888, k: 8, l: 7, eta: 2, beta: 120, omega: 75,
| |- warning: static property 'DSA87' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'DSA87' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | sigSize: 4627, pkSize: 2592, skSize: 4896, oid: ASN1ObjectIdentifier("2.16.840.1.101.3.4.3.19")!)
52 |
[62/64] Compiling SwiftDilithium Polynomial.swift
[63/64] Compiling SwiftDilithium ByteSlice.swift
[64/64] Compiling SwiftDilithium Dilithium.swift
Build complete! (26.66s)
Build complete.
{
"dependencies" : [
{
"identity" : "asn1",
"requirement" : {
"range" : [
{
"lower_bound" : "2.7.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/leif-ibsen/ASN1"
},
{
"identity" : "bigint",
"requirement" : {
"range" : [
{
"lower_bound" : "1.21.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/leif-ibsen/BigInt"
},
{
"identity" : "digest",
"requirement" : {
"range" : [
{
"lower_bound" : "1.13.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/leif-ibsen/Digest"
}
],
"manifest_display_name" : "SwiftDilithium",
"name" : "SwiftDilithium",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftDilithium",
"targets" : [
"SwiftDilithium"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftDilithiumTests",
"module_type" : "SwiftTarget",
"name" : "SwiftDilithiumTests",
"path" : "Tests/SwiftDilithiumTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftDilithiumTests/Resources/katTestKeyGen.rsp",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftDilithiumTests/Resources/katTestSign.rsp",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftDilithiumTests/Resources/katTestVerify.rsp",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"BitPacktest.swift",
"ContextTest.swift",
"DecomposeTest.swift",
"EncodeDecodeTest.swift",
"ExceptionTest.swift",
"ExpandTest.swift",
"HintBitTest.swift",
"KATTestKeyGen.swift",
"KATTestSign.swift",
"KATTestVerify.swift",
"MakeHintTest.swift",
"NTTTest.swift",
"PEMTest.swift",
"Power2RoundTest.swift",
"SampleInBallTest.swift",
"SignVerifyTest.swift",
"Util.swift"
],
"target_dependencies" : [
"SwiftDilithium"
],
"type" : "test"
},
{
"c99name" : "SwiftDilithium",
"module_type" : "SwiftTarget",
"name" : "SwiftDilithium",
"path" : "Sources/SwiftDilithium",
"product_dependencies" : [
"BigInt",
"ASN1",
"Digest"
],
"product_memberships" : [
"SwiftDilithium"
],
"sources" : [
"ByteSlice.swift",
"Dilithium.swift",
"Exception.swift",
"Kind.swift",
"Matrix.swift",
"Parameters.swift",
"Polynomial.swift",
"PreHash.swift",
"PublicKey.swift",
"SecretKey.swift",
"Vector.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Done.